chrome.tabs.onUpdated is not fired after call chrome.tabs.update
Reported by
defan...@gmail.com,
May 24 2017
|
||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Steps to reproduce the problem:
Create extension to intercept URL navigation like
chrome.webNavigation.onBeforeNavigate.addListener(replace URL);
chrome.tabs.onUpdated.addListener(removeTab);
replaceURL(details) {
chrome.tabs.update(details.tabId, { url: "http://www.google.com"});
}
removeTab(tabId, changeInfo, tab) {
chrome.tabs.remove(tabId);
}
1. Open Chrome.
2. load the unpacked extension as above.
3. Navigate to any URL other than "www.google.com"
What is the expected behavior?
The tab is removed.
What went wrong?
The tab navigates to "www.google.com", and ISNOT removed.
Did this work before? No
Does this work in other browsers? N/A
Chrome version: 58.0.3029.110 Channel: stable
OS Version: 10.0
Flash Version:
,
May 24 2017
Please provide a sample extension / reproducible testcase for further investigation.
,
May 25 2017
,
Jun 26 2017
No feedback was received in the last 30 days from reporter "defanary@gmail.com", so archiving this. Please re-open or file a new bug if this is still an issue. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
||||
►
Sign in to add a comment |
||||
Comment 1 by defan...@gmail.com
, May 24 2017