A new tab that is loaded, discarded, selected, updated to a different url, and then discarded will return the initial url when queried.
Categories
(Firefox :: Session Restore, defect, P3)
Tracking
()
People
(Reporter: anonymous30901032, Unassigned)
References
(Blocks 2 open bugs)
Details
User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0
Steps to reproduce:
-
Install a discard/unload extension like 'Tab Unloader'.
-
Install an extension with tabs permission like 'Ublock Origin'.
-
In about:debugging, open the debug console under the extension with tabs permissions (like 'Ublock Origin').
-
Close every tab, except about:debugging.
-
Create a new tab and navigate to "https://www.google.com".
-
Deselect tab and discard/unload it.
-
Reselect tab and wait for it to load and then navigate to "https://www.mozilla.com".
-
Deselect tab after it has loaded and then discard/unload it.
-
In the console, execute the following:
browser.tabs.query({}).then(tabs => {
for (let t of tabs) {
console.log("tab " + t.id + " - " + "title: " + t.title);
console.log("tab " + t.id + " - " + "url: " + t.url);
}
});
Actual results:
The url of the tab that had been discarded multiple times will show "https://google.com", instead of "https://www.mozilla.com".
Updated•6 years ago
|
This bug also happens if a new discarded tab is created. If a user selects it to load, navigates to a new url, then discards it, the first url will be returned when queried.
This bug is very close to another I reported:
https://bugzilla.mozilla.org/show_bug.cgi?id=1498432
It may even be a duplicate.
Updated•6 years ago
|
Similar situation is here:
https://bugzilla.mozilla.org/show_bug.cgi?id=1624083
The only difference is the way the tab was made not active (by browser restart in Bug 1624083, or by discard extension in this bug - Bug 1522184).
Updated•4 years ago
|
Description
•