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)

60 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1312460

People

(Reporter: bill, Unassigned)

Details

(Keywords: parity-chrome, testcase)

Attachments

(1 file)

Attached file testext.zip —
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.
Status: UNCONFIRMED → RESOLVED
Has STR: --- → yes
Closed: 8 years ago
Component: Untriaged → Request Handling
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.

Attachment

General

Created:
Updated:
Size: