New issue
Advanced search Search tips

Issue 725821 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Jun 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

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:
 

Comment 1 by defan...@gmail.com, May 24 2017

I tried to debug it, and found chrome.tabs.onUpdated is not fired at all. 
Labels: Needs-Triage-M58
Please provide a sample extension / reproducible testcase for further investigation.
Components: Platform>Extensions
Labels: Needs-Feedback
Project Member

Comment 4 by sheriffbot@chromium.org, Jun 26 2017

Status: Archived (was: Unconfirmed)
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