"network.fetchError" event is not sent when "fetch" request gets immediately aborted
Categories
(Remote Protocol :: WebDriver BiDi, defect, P2)
Tracking
(firefox124 fixed)
| Tracking | Status | |
|---|---|---|
| firefox124 | --- | fixed |
People
(Reporter: whimboo, Assigned: jdescottes)
References
(Blocks 1 open bug)
Details
(Whiteboard: [webdriver:m10], [wptsync upstream])
Attachments
(2 files)
There is the following Puppeteer test which loads a page and triggers a fetch request by clicking a button:
https://github.com/puppeteer/puppeteer/blob/b99d478cd48adc261878836e04eac55ecc2890f2/test/src/page.spec.ts#L921-L935
https://github.com/puppeteer/puppeteer/blob/main/test/assets/abort-request.html
Hereby the fetch request gets immediately aborted via an AbortController. When using Chrome the network.fetchError event is correctly sent out but in Firefox we only raise a log.entryAdded error for the abort() call. I recorded a Gecko Profile for this test and as it looks like this specific network request still awaits a response.
https://share.firefox.dev/3Shy0bd
Not sure if that is related to some of our code or at the network layer.
| Assignee | ||
Updated•1 year ago
|
| Reporter | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
Requests which are blocked really do not receive further updates after the creation of the network event. DevTools handles this use case specifically at https://searchfox.org/mozilla-central/rev/896042a1a71066254ceb5291f016ca3dbca21cb7/devtools/server/actors/resources/network-events.js#318-325
We can probably do the same in NetworkEventRecord.
| Assignee | ||
Comment 2•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 3•1 year ago
|
||
Depends on D200873
| Reporter | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
Comment 6•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/709e6b31df0f
https://hg.mozilla.org/mozilla-central/rev/bd25bd316fa4
| Assignee | ||
Comment 7•1 year ago
|
||
Reminder to move https://github.com/puppeteer/puppeteer/pull/11867 out of draft status when the patch is in Nightly.
| Assignee | ||
Updated•1 year ago
|
| Reporter | ||
Updated•1 year ago
|
Description
•