Open Bug 2057162 Opened 4 months ago Updated 16 days ago

Reopening closed tab opens window closed via JS instead

Categories

(Firefox :: Session Restore, defect)

Firefox 152
defect

Tracking

()

UNCONFIRMED

People

(Reporter: matej.mulej, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

Attached file firefox-reopen-tab-bug.html (obsolete) —

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

Steps to reproduce:

  1. Open attached html file
  2. Click "Open child window" button
  3. Close the parent tab (NOT the child window)
  4. The child window closes itself
  5. Hit the reopen last closed shortcut (Ctrl+Shift+T)

Actual results:

The child window reopens and closes itself immediately.

This keeps happening if you keep pressing the shortcut.

Expected results:

The manually closed tab should have reopened.

Chrome does this.

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

In case it helps, this has been happening since the (IMHO bad) change to the Ctrl+Shift+T shortcut, where it now reopens the latest closed tab or window, where before it only reopened closed tabs.

Component: Widget: Gtk → Tabbed Browser
Product: Core → Firefox

Update repro to work with existing query params, so that it works correctly if opened directly from the bug report.

Attachment #9615082 - Attachment is obsolete: true
Attachment #9615604 - Attachment mime type: text/plain → text/html
Component: Tabbed Browser → Session Restore

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

For more information, please visit BugBot documentation.

Flags: needinfo?(sthompson)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: