Closed Bug 1913354 Opened 1 year ago Closed 3 days ago

The "restore session" tab is not a normal tab

Categories

(Firefox :: Session Restore, defect)

Firefox 128
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: mprops, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0

Steps to reproduce:

I develop an extension to manage tabs. I've always had this problem when I launch a firefox that was killed for some reason and the "restore session" option appears. This tab is not normal as it will not react normally to user events through my extension. For instance when I trigger an unload it won't show feedback properly like the rest of normal tabs.

What kind of tab is this? I'm wondering how I can adapt my extension to avoid this strange behavior.

Actual results:

Here's a way to reproduce the issue if somebody wants to check:

  1. Install Grasshopper extension : https://addons.mozilla.org/en-US/firefox/addon/grasshopper-urls/

  2. Open firefox with a few tabs normally

  3. Force kill firefox to trigger the restore session prompt. I can do this on linux by using 'xkill' and clicking on the firefox window.

  4. Restart firefox. You should see the restore session prompt as the only tab open. Don't click restore or the other option, just write something like to perform a google search or just open any other url normally.

  5. Open grasshopper's popup or sidebar, and middle click the "x" button that is used to close the tabs in the extension, this is on the right. Or alternatively right click the tab in the extension, click More at the bottom, and click Unload.

Expected results:

Normally when you unload a tab it will show the unloaded icon because the tab emits the signal that it is now unloaded, so my extension catches that. However as you might see with the steps above, the icon is never shown, as if the event is never emitted or something strange happens.

You can try unloading other normal tabs to see how it looks under normal tabs, an icon appears.

This issue can confuse users and might make them think the extension is broken. And it might as well be a bug.

Thanks.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

I don't mean the restore session dialog. I mean reusing the tab when you don't restore a session by going to a website manually. The tab remains different from the other tabs.

Component: Widget: Gtk → Session Restore
Product: Core → Firefox

The severity field is not set for this bug.
:dwalker, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(dwalker)
Severity: -- → S3
Flags: needinfo?(dwalker)

I tried to follow the steps provided, but I'm still not fully sure I understand the issue. Could you share a screen recording showing what happens when you try to unload the tab? Thank you.

Flags: needinfo?(mprops)

A needinfo is requested from the reporter, however, the reporter is inactive on Bugzilla. Given that the bug is still UNCONFIRMED, closing the bug as incomplete.

For more information, please visit BugBot documentation.

Status: UNCONFIRMED → RESOLVED
Closed: 3 days ago
Flags: needinfo?(mprops)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.