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)

56 Branch
defect

Tracking

(Not tracked)

People

(Reporter: robwu, Unassigned)

Details

Attachments

(1 file)

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.
Priority: -- → P5
Product: Toolkit → WebExtensions
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: