Open Bug 1522184 Opened 2 years ago Updated 8 months ago

A new tab that is loaded, discarded, selected, updated to a different url, and then discarded will return the initial url when queried.


(Firefox :: Session Restore, defect, P3)

65 Branch




(Reporter: anonymous30901032, Unassigned)


(Blocks 2 open bugs)


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

  6. Deselect tab and discard/unload it.

  7. Reselect tab and wait for it to load and then navigate to "".

  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 " + + " - " + "title: " + t.title);
    console.log("tab " + + " - " + "url: " + t.url);

Actual results:

The url of the tab that had been discarded multiple times will show "", instead of "".

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:

It may even be a duplicate.

Component: Tabbed Browser → Session Restore
See Also: → 1498432
Ever confirmed: true
Priority: -- → P3
See Also: → 1528895
See Also: → 1511756
See Also: → 1624083

Similar situation is here:

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).

You need to log in before you can comment on or make changes to this bug.