Open Bug 1522184 Opened 9 months ago Updated 16 days ago

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)

65 Branch
defect

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:

  1. Install a discard/unload extension like 'Tab Unloader'.

  2. Install an extension with tabs permission like 'Ublock Origin'.

  3. In about:debugging, open the debug console under the extension with tabs permissions (like 'Ublock Origin').

  4. Close every tab, except about:debugging.

  5. Create a new tab and navigate to "https://www.google.com".

  6. Deselect tab and discard/unload it.

  7. Reselect tab and wait for it to load and then navigate to "https://www.mozilla.com".

  8. Deselect tab after it has loaded and then discard/unload it.

  9. 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".

Component: Untriaged → Tabbed Browser

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.

Component: Tabbed Browser → Session Restore
See Also: → 1498432
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
See Also: → 1528895
See Also: → 1511756
You need to log in before you can comment on or make changes to this bug.