Closed
Bug 1364029
Opened 8 years ago
Closed 8 years ago
Match patterns should also match top-level domain with "*" wildcard
Categories
(WebExtensions :: General, defect)
WebExtensions
General
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1362849
People
(Reporter: kernp25, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0
Build ID: 20170504105526
Steps to reproduce:
webRequest.onBeforeRequest.addListener(
processRequest,
{urls: ["*://*/*"], types: ["main_frame", "sub_frame"]},
["blocking"]
);
In processRequest i do:
var url = details.url;
if (/^https?:\/\/www\.google\.[a-z.]+\/url\?.+&url=/.test(url)) {
url = /&url=([^&]+)/.exec(url)[1];
}
Expected results:
webRequest.onBeforeRequest.addListener(
processRequest,
{urls: ["*://www.google.*/url?*&url=*"], types: ["main_frame", "sub_frame"]},
["blocking"]
);
This matches:
https://www.google.com/url?...&url=...
https://www.google.de/url?...&url=...
Updated•8 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•