chrome.webRequest.onBeforeSendHeaders filter for tabId -1 should remove all requests tabId != -1 |
|||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36
Steps to reproduce the problem:
1. Use the following code inside of a chrome extension background page:
chrome.webRequest.onBeforeSendHeaders.addListener(
function(details) {
if (details.tabId !== -1) {
console.log("I'm here")
}
return { requestHeaders: details.requestHeaders };
},
{
urls: ['https://google.com/*'],
tabId: -1
},
['blocking', 'requestHeaders']
);
2. Inside any other normal tab:
fetch("https://google.com/")
What is the expected behavior?
background page has nothing logged because the listener should filter out any tabId != -1
What went wrong?
the background page logs "I'm here" because the "tabId: -1" filter does nothing
Did this work before? N/A
Does this work in other browsers? Yes
Chrome version: 60.0.3112.101 Channel: stable
OS Version: OS X 10.12.6
Flash Version:
,
Aug 29 2017
,
Oct 10 2017
Closing the issue as did not hear back from user again. Please feel free to raise a new issue or reopen if it still persists. Thanks.!
,
Dec 7 2017
Hi there, This issue definitely still exists. Please see duplicate: https://bugs.chromium.org/p/chromium/issues/detail?id=612967 |
|||
►
Sign in to add a comment |
|||
Comment 1 by brajkumar@chromium.org
, Aug 29 2017Components: Platform>Extensions
Labels: Needs-Triage-M60 Needs-Feedback