Closed
Bug 1427094
Opened 7 years ago
Closed 7 years ago
Move tab from a window to another corrupt tab information
Categories
(WebExtensions :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1398272
People
(Reporter: zepeuj, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
Build ID: 20171206182557
Steps to reproduce:
Open 2 windows.
Drag a tab from a window to another.
Click on refresh button or (F5)
Look at the logs
const onUpdatedTab = (tabId, changeInfo, tab) => {
console.log("ONUPDATEDTAB");
console.log("tab.url: " + tab.url);
console.log("tab.id: " + tab.id);
console.log("tabId: " + tabId); //not useful just to check if the information is also wrong
console.log(changeInfo);
};
chrome.tabs.onUpdated.addListener(onUpdatedTab);
Actual results:
The tab id of the moved tab is not consistent, it varies to a number to its n-1 value. Ex from my short code:
ONUPDATEDTAB background.js:50
"tab.url: https://www.reddit.com/" background.js:51
tab.id: 17 background.js:52
tabId: 17 background.js:53
Object { status: "loading" } background.js:55
ONUPDATEDTAB background.js:50
"tab.url: https://www.reddit.com/" background.js:51
tab.id: 18 background.js:52
tabId: 18 background.js:53
Object { title: "reddit.com/" } background.js:55
ONUPDATEDTAB background.js:50
"tab.url: https://www.reddit.com/" background.js:51
tab.id: 17 background.js:52
tabId: 17 background.js:53
Object { status: "loading", url: "https://www.reddit.com/" } background.js:55
ONUPDATEDTAB background.js:50
"tab.url: https://www.reddit.com/" background.js:51
tab.id: 18 background.js:52
tabId: 18 background.js:53
Object { title: "reddit: the front page of the inter…" } background.js:55
ONUPDATEDTAB background.js:50
"tab.url: https://www.reddit.com/" background.js:51
tab.id: 18 background.js:52
tabId: 18 background.js:53
Object { favIconUrl: "https://www.redditstatic.com/deskto…" } background.js:55
ONUPDATEDTAB background.js:50
"tab.url: https://www.reddit.com/" background.js:51
tab.id: 18 background.js:52
tabId: 18 background.js:53
Object { favIconUrl: "https://www.redditstatic.com/deskto…" } background.js:55
ONUPDATEDTAB background.js:50
"tab.url: https://www.reddit.com/" background.js:51
tab.id: 17 background.js:52
tabId: 17 background.js:53
Object { status: "complete" }
Expected results:
The tab id should not change.
Updated•7 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 7 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
•