Closed Bug 1611878 Opened 5 years ago Closed 4 years ago

Issues when loading tabs are discarded.

Categories

(WebExtensions :: Frontend, defect)

73 Branch
defect
Not set
normal

Tracking

(firefox73 affected, firefox74 affected, firefox75 affected)

RESOLVED DUPLICATE of bug 1630167
Tracking Status
firefox73 --- affected
firefox74 --- affected
firefox75 --- affected

People

(Reporter: anonymous30901032, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0

Steps to reproduce:

  1. Install the 'Unload Tab' extension. Some tab discarding extensions will not discard loading tabs, but this one will.
  2. Open a bookmark that takes a while to load in a background tab.
  3. Select 'Unload Tab' in that tabs menu while it is loading (after the tab title has updated).

Actual results:

Once the tab has been discarded in step #3, the tab throbber continues to stay active even though the page is no longer loading. This can be checked with a network monitor. Retrieving the tab details though a get or query will show the tab status as "loading" and the discarded property as false. If the tab is clicked on, it will reload like a tab that has been discarded.

Expected results:

A webNavigation.onErrorOccurred event should probably fire, signaling that the pages navigation has been aborted (it currently doesn't fire). The tab status should be "complete" and the discarded property should be true. The loading animation should no longer continue.

There are also problems if the tab is discarded really fast, like through the following command:

browser.tabs.create({url: "https://www.google.com", active: false}).then(tab => browser.tabs.discard(tab.id));

In most cases the tab loading animation doesn't happen, the tab status is "complete" and the discarded property is false, though the tab behaves like a discarded tab when clicked. However, in some cases the tab throbber will show the loading animation, the tab status will be "loading", and the discarded property will be true. The previous situation will also occur when discarding a tab that will have a network connection timeout error, like when loading http://example.com:81/ .

See Also: → 1450371
Flags: needinfo?(mixedpuppy)

Hi,

Is this the extension you refer to? https://addons.mozilla.org/es/firefox/addon/unload-tabs/

Thanks for the details. I was able to reproduce on Windows 10 pro, on the following versions

Firefox Nightly version 75.0a1 (2020-02-14) (64-bit),d
Beta 74.0b3 (64-bit)
Release 73.0 (64-bit)

I will move this over to a component so developers can take a look over it. (If is not the correct component please feel free to change it to an appropriate one.)

Thanks for the report.
Best,
Clara

Component: Untriaged → Frontend
Status: UNCONFIRMED → NEW
Ever confirmed: true

Copied from here:

Steps to reproduce:

Note that this is not a theoretical case I can trigger it by doing F5 and unloading the tab with an extension that adds a context menu entry to do that.

Actual results:

Tab is discarded but the loading spinner doesn’t go away.

await browser.tabs.get(tabId); reports the tab as both discarded: true and status: loading.

Expected results:

– Discarded tab get back its favicon, instead of the loading spinner.
– WebExtensions API reports its status as complete instead of loading like for other discarded tabs.

Depends on: 1630167

unable to reproduce, much of the STR looks the same as bug 1630167

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(mixedpuppy)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.