Open Bug 1846549 Opened 1 year ago Updated 1 year ago

Window closed due to all its tab(s) moving to another window should not end up in the "Reopen Closed ..." stack

Categories

(Firefox :: Session Restore, defect, P3)

Firefox 116
defect

Tracking

()

ASSIGNED
Tracking Status
firefox-esr102 --- unaffected
firefox-esr115 --- unaffected
firefox116 --- affected
firefox117 --- affected
firefox118 --- affected

People

(Reporter: yoasif, Assigned: sclements)

References

Details

Steps to reproduce:

  1. Open Firefox
  2. Open any two new pages - I control-clicked two random Pocket Stories on the new tab page
  3. detach any of the tabs opened in step 2 into a new window (drag out the tab)
  4. drag the tab you detached back into the window you initially dragged it from
  5. do "control-shift-t"

What happens:

The reattached tab (from step 4) is detached again, AND we have the reattached tab in the window that I initially opened when opening Firefox. The tab has been duplicated.

Expected result:

reopen closed tab does nothing.

mozregression:

 4:49.97 INFO: Narrowed integration regression window from [f1fb2652, 15a57a8c] (3 builds) to [f1fb2652, a44656c2] (2 builds) (~1 steps left)
 4:49.97 INFO: No more integration revisions, bisection finished.
 4:49.97 INFO: Last good revision: f1fb26526a2e8e7d9539b3f975817b0578e1bc0c
 4:49.97 INFO: First bad revision: a44656c2ad83d278286aa51507864e53a3911df3
 4:49.97 INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=f1fb26526a2e8e7d9539b3f975817b0578e1bc0c&tochange=a44656c2ad83d278286aa51507864e53a3911df3
Has STR: --- → yes
Keywords: regression
Regressed by: 1833416

Set release status flags based on info from the regressing bug 1833416

:sclements, since you are the author of the regressor, bug 1833416, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Priority: -- → P1
Whiteboard: [fidefe-firefox-view]
Assignee: nobody → sclements
Status: NEW → ASSIGNED

I don't think this is a bug, its a side effect of the behavior for the ctrl|cmd + shift + T shortcut changing in 116 to reopen the last closed tab or window, in the order closed.

Technically, you closed a window when you dragged the tab out to a window, and then back to the original window. The exact same behavior happens if you use repeat those steps and use the ctrl|cmd + shift + N shortcut to reopen the last closed window.

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Flags: needinfo?(sclements)
Resolution: --- → WONTFIX

(In reply to Sarah Clements [:sclements] from comment #2)

Technically, you closed a window when you dragged the tab out to a window, and then back to the original window. The exact same behavior happens if you use repeat those steps and use the ctrl|cmd + shift + N shortcut to reopen the last closed window.

Thanks for investigating! So this kind of makes sense technically, but from a user's perspective the window wasn't really closed in the sense that you might want to reopen it, it was rather merged into another window. I think we should treat the current behavior as a bug, albeit not a high-priority one and not a regression. Wdyt?

Depends on: 1833416
Flags: needinfo?(sclements)
Keywords: regression
No longer regressed by: 1833416

(In reply to Dão Gottwald [:dao] from comment #3)

(In reply to Sarah Clements [:sclements] from comment #2)

Technically, you closed a window when you dragged the tab out to a window, and then back to the original window. The exact same behavior happens if you use repeat those steps and use the ctrl|cmd + shift + N shortcut to reopen the last closed window.

Thanks for investigating! So this kind of makes sense technically, but from a user's perspective the window wasn't really closed in the sense that you might want to reopen it, it was rather merged into another window. I think we should treat the current behavior as a bug, albeit not a high-priority one and not a regression. Wdyt?

hrm, if we want to treat it as not a deliberate window closure we should probably apply it to the ctrl|cmd + shift + N shortcut as well, otherwise that would be inconsistent.

Flags: needinfo?(sclements)

(In reply to Sarah Clements [:sclements] from comment #4)

(In reply to Dão Gottwald [:dao] from comment #3)

(In reply to Sarah Clements [:sclements] from comment #2)

Technically, you closed a window when you dragged the tab out to a window, and then back to the original window. The exact same behavior happens if you use repeat those steps and use the ctrl|cmd + shift + N shortcut to reopen the last closed window.

Thanks for investigating! So this kind of makes sense technically, but from a user's perspective the window wasn't really closed in the sense that you might want to reopen it, it was rather merged into another window. I think we should treat the current behavior as a bug, albeit not a high-priority one and not a regression. Wdyt?

hrm, if we want to treat it as not a deliberate window closure we should probably apply it to the ctrl|cmd + shift + N shortcut as well, otherwise that would be inconsistent.

Yes.

Assignee: sclements → nobody
Status: RESOLVED → REOPENED
Priority: P1 → P3
Resolution: WONTFIX → ---
Summary: Reopening closed tab after moving detached tab into window where tab was detached from results in duplicated tab → Window closed due to all its tab(s) moving to another window should not end up in the "Reopen Closed ..." stack
Severity: -- → S3
Whiteboard: [fidefe-firefox-view]

I can probably look into this but it won't be anytime soon. I'll assign it to myself so I don't forget, but if anyone wants to take it (and would like guidance on a fix) lmk.

Assignee: nobody → sclements
Status: REOPENED → ASSIGNED
See Also: → 1847617
You need to log in before you can comment on or make changes to this bug.