Closed
Bug 1471065
Opened 8 years ago
Closed 8 years ago
WebExtensions webRequest.onBeforeRequest listener doesn't trigger for FTP
Categories
(WebExtensions :: Request Handling, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1312460
People
(Reporter: bill, Unassigned)
Details
(Keywords: parity-chrome, testcase)
Attachments
(1 file)
|
876 bytes,
application/zip
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36
Steps to reproduce:
Install an extension with permissions:
```
"permissions": [
"webRequest",
"webRequestBlocking",
"*://*/*",
"ftp://*/*"
],
```
Actual results:
And set an onBeforeRequest hook for the FTP url:
```
function onBeforeRequest(details){
let uri = new URL(details.url);
console.log(uri.protocol);
}
chrome.webRequest.onBeforeRequest.addListener(onBeforeRequest, {urls: ["*://*/*", "ftp://*/*"]}, ["blocking"]);
```
Expected results:
It is never triggered, though http[s] URLs are.
I've included a proof of concept extension.
Updated•8 years ago
|
Status: UNCONFIRMED → RESOLVED
Has STR: --- → yes
Closed: 8 years ago
Component: Untriaged → Request Handling
Keywords: parity-chrome,
testcase
OS: Unspecified → All
Product: Firefox → WebExtensions
Hardware: Unspecified → All
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•