Closed Bug 1806794 Opened 1 year ago Closed 1 year ago

Support "network.responseStarted" for cached responses

Categories

(Remote Protocol :: WebDriver BiDi, task, P1)

task
Points:
5

Tracking

(firefox113 fixed)

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [webdriver:m6], [wptsync upstream] [webdriver:relnote])

Attachments

(2 files)

Handling cached responses for the network.responseStarted event depends on proposed changes for the fetch spec at https://whatpr.org/fetch/1540.html#concept-http-fetch

We have been rediscussing where the trigger should take place for cached response, and most likely this will happen before step 10 of https://whatpr.org/fetch/1540.html#http-network-or-cache-fetch if response is not null

For the initial implementation we will focus on the trigger for non-cached responses (in https://whatpr.org/fetch/1540.html#http-network-fetch)

Points: --- → 5
Priority: -- → P1
Whiteboard: [webdriver:m6]
Blocks: 1806802
Blocks: 1806803
No longer blocks: 1790362

This fixes two issues:

  • the transferred size was missing from cached responseStarted events
  • the fromCache flag needs to be read on the initial network event payload from devtools, because relying on the isFromCache logic used to build the addResponseStart payload does not properly detect all cached responses (eg for a cached 301)
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/02a176fbbb0b
Support "network.response" events for cached responses r=webdriver-reviewers,whimboo,devtools-reviewers,ochameau
https://hg.mozilla.org/integration/autoland/rev/58784e71c915
[wdspec] Add wdspec test for cached responseStarted events r=webdriver-reviewers,whimboo,jgraham
https://hg.mozilla.org/integration/autoland/rev/07ab28076e34
1806802: apply code formatting via Lando
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/39030 for changes under testing/web-platform/tests
Whiteboard: [webdriver:m6] → [webdriver:m6], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch

(In reply to Web Platform Test Sync Bot (Matrix: #interop:mozilla.org) from comment #4)

Created web-platform-tests PR
https://github.com/web-platform-tests/wpt/pull/39030 for changes under
testing/web-platform/tests

Julian, can you please check the upstream CI checks? Something failed for Chrome and as such the PR cannot be merged.

Flags: needinfo?(jdescottes)

I restarted the jobs, but I see Azure Pipelines (infrastructure/ tests: macOS) failing on several PRs, maybe there is an infra issue?

Flags: needinfo?(jdescottes)
Upstream PR merged by jgraham
Whiteboard: [webdriver:m6], [wptsync upstream] → [webdriver:m6], [wptsync upstream] [webdriver:relnote]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: