Open Bug 1567900 Opened 5 years ago Updated 2 years ago

browser.proxy.onRequest.addListener() doesn't receive FTP requests if 'requestHeaders' is used as extraInfoSpec.

Categories

(WebExtensions :: General, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: baku, Unassigned)

References

Details

Maybe this is the desired behavior, but, if 'requestHeaders' is used as extraInfoSpec, FTP requests are not received by the extension because of this:

https://searchfox.org/mozilla-central/rev/b9041f813de0a05bf6de95a145d4e25004499517/toolkit/components/extensions/webrequest/ChannelWrapper.cpp#324-325

Probably it's better to remove these 2 lines, and pass an empty array as requestHeaders.

Flags: needinfo?(mixedpuppy)

Or dont use it with non-http channels here...

https://searchfox.org/mozilla-central/rev/b9041f813de0a05bf6de95a145d4e25004499517/toolkit/components/extensions/ProxyScriptContext.jsm#418

Since a workaround is to just use a second listener for ftp that doesn't ask for requestheaders, giving this a low priority.

Flags: needinfo?(mixedpuppy)
Priority: -- → P3

FTP support has been removed (bug 1574475) but it seems like this bug concerns any non-http protocols.

Severity: normal → S3
See Also: → 1799411
See Also: → 1790270
You need to log in before you can comment on or make changes to this bug.