Open
Bug 1420917
Opened 7 years ago
Updated 3 years ago
webRequest.onErrorOccurred unexpectedly fires with NS_ERROR_NET_ON_RECEIVING_FROM when a listener is added in onHeadersReceived while the devtools is open
Categories
(WebExtensions :: Request Handling, defect, P5)
Tracking
(Not tracked)
NEW
People
(Reporter: robwu, Unassigned)
Details
Attachments
(1 file)
3.62 KB,
application/zip
|
Details |
STR:
1. Download the attached extension.
2. The zip file contains repro.py and server.pem. Extract these to the same directory and start repro.py
3. Visit https://localhost:4433/ and confirm the security exception.
4. Open the devtools for the tab (this is needed to reproduce the bug, you don't need to interact with it).
5. Reload the page.
6. Look at the global JS console or the extension's background page's console.
Expected:
onHeadersReceived
Actual:
onHeadersReceived
onErrorOccurred NS_ERROR_NET_ON_RECEIVING
This only happens when I add the first onErrorOccurred event listener from the onHeadersReceived event and then keep the request suspended.
If I register a listener for onErrorOccurred before initating a request (uncomment the code in the attached background.js), then the bug does not occur.
Updated•7 years ago
|
Priority: -- → P5
Updated•7 years ago
|
Product: Toolkit → WebExtensions
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•