Closed
Bug 1344095
Opened 8 years ago
Closed 8 years ago
webrequest does not redirect a URL
Categories
(WebExtensions :: Request Handling, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1334918
People
(Reporter: fengyc.work, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:51.0) Gecko/20100101 Firefox/51.0
Build ID: 20170125094131
Steps to reproduce:
Using webrequest api and add a listener to webRequest.onBeforeRequest:
browser.webRequest.onBeforeRequest.addListener(
handleRedirect,
{urls: ["<all_urls>"]},
["blocking"]
);
In function handleRedirect, I try to redirect a url "https://addons.mozilla.org/zh-CN/firefox/addon/omnisidebar/?src=hp-dl-featured" to "https://addons.mozilla.org/zh-CN/firefox/addon/omnisidebar" (remove "/?src=hp-dl-featured"), but it does not work.
Actual results:
Redirect a url "https://addons.mozilla.org/zh-CN/firefox/addon/omnisidebar/?src=hp-dl-featured" to "https://addons.mozilla.org/zh-CN/firefox/addon/omnisidebar" (remove "/?src=hp-dl-featured"), the actual result in the address bar does not change.
Expected results:
Redirect to https://addons.mozilla.org/zh-CN/firefox/addon/omnisidebar
Component: Untriaged → WebExtensions: Request Handling
Product: Firefox → Toolkit
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
•