Channel may not have local and remote addresses accessible during nsISocketTransport::STATUS_WAITING_FOR
Categories
(Core :: Networking: HTTP, defect, P5)
Tracking
()
People
(Reporter: mayhemer, Unassigned)
References
Details
(Whiteboard: [necko-would-take])
| Reporter | ||
Comment 1•13 years ago
|
||
Comment 2•13 years ago
|
||
| Reporter | ||
Comment 3•13 years ago
|
||
| Reporter | ||
Updated•13 years ago
|
Updated•9 years ago
|
Comment 4•8 years ago
|
||
Comment 5•4 years ago
|
||
I believe I may be encountering this issue in the WebExtensions API when utilizing browser.webRequest.onResponseStarted.addListener().
Not yet sure about a shorter way to reproduce, but here's how I've been consistently seeing an issue so far:
- open about:debugging, load an addon which registers
onResponseStartedlistener to simply log the received parameters - open a second tab and load any website. For instance, https://hg.mozilla.org/mozilla-central/file/tip/toolkit/components/extensions/ext-toolkit.json -- in the logs you'll be able see the IP address in the
ipfield (as expected) - close the browser and reopen it so that it restores the previous browsing session and shows you about:debugging as an active tab
- load the same addon again (since temporary addons are removed at the end of session)
- ...
Now go to the second tab, this will trigger its loading. After this in the addon logs you'll consistently see ip field represented as null.
I was suspecting that it might be the case if the response was coming from cache, but I've noticed fromCache is usually set to false when ip === null in this case.
This behaviour is inconsistent with the Chromium implementation at the moment where it always returns the IP address to chrome.webRequest.onResponseStarted and other webRequest listeners.
If my hunch is right and this issue is the root cause this bug may need a higher priority.
Updated•3 years ago
|
Description
•