Closed Bug 1815460 Opened 1 year ago Closed 1 year ago

NetworkObserver: group early response callbacks in addResponseStarted

Categories

(DevTools :: Netmonitor, task, P1)

task
Points:
2

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])

Attachments

(1 file, 1 obsolete file)

No description provided.
Points: --- → 2

Depends on D168791

resource ids are channel ids and should be incrementally generated. The current id is actually an actor id, meaning it is a string which will lead to incorrect comparisons (eg "Actor10" will be considered "lower" than "Actor2") and also fully depends on the order in which we create the actors.

On some platform / configurations we get identical timestamps for batches of requests, so the fallback mechanism should be reliable

Blocks: 1800831
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7765cf9b63f5
[devtools] Netmonitor waterfall sort should fallback to resource ids r=ochameau,bomsy,devtools-reviewers
https://hg.mozilla.org/integration/autoland/rev/14ac0e2bcccb
[devtools] Merge addRequestPostData, addResponseHeaders, addResponseCookies into addResponseStart r=webdriver-reviewers,ochameau,bomsy,devtools-reviewers,whimboo
Attachment #9316846 - Attachment is obsolete: true
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b7a170b0aa10
[devtools] Merge addRequestPostData, addResponseHeaders, addResponseCookies into addResponseStart r=webdriver-reviewers,ochameau,bomsy,devtools-reviewers,whimboo

I removed the patch Bug 1815460 - [devtools] Netmonitor waterfall sort should fallback to resource ids.

Weirdly this was avoiding issues on Windows 10 test platforms, but seems to create more issues on windows 11.
Overall the netmonitor tests are flaky because they assume a request order which is not actually guaranteed by the test, and windows platforms seem to very often "bundle" requests together and fire them at the exact same timestamps.

Flags: needinfo?(jdescottes)
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
Regressions: 1825916
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: