Closed Bug 545383 Opened 15 years ago Closed 15 years ago

Tabbed browser doesn't tell session restore to disable undo close tab

Categories

(SeaMonkey :: Tabbed Browser, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: neil, Assigned: neil)

Details

(Keywords: regression)

Attachments

(1 file)

The tabbed browser's removeTab method has an aDisableUndo argument but that only disables the tabbrowser's undo and not the session restore undo close tab. This has become significant because of bug 530735 which allows the session restore undo close tab to operate on the tab.
Attached patch Proposed patchSplinter Review
The session store code already expects a UIEvent with a detail anyway.
Assignee: nobody → neil
Status: NEW → ASSIGNED
Attachment #426231 - Flags: review?(misak)
Attachment #426231 - Flags: review?(iann_bugzilla)
Misak, I don't suppose that this is something that you can write a test for?
Comment on attachment 426231 [details] [diff] [review] Proposed patch I think i should add code to handle aDisableUndo in sessionrestore.
Attachment #426231 - Flags: review?(misak) → review+
It's already there in line 419 of nsSessionStore.js: if (!aEvent.detail) this.onTabClose(win, aEvent.originalTarget); Its purpose was originally to deal with switching tabs between browsers, where you also want to disable undo.
Ah, I'm starring to the code two days to find how it should work. Thanks for explanation :)
(In reply to comment #5) > Ah, I'm starring to the code two days to find how it should work. Thanks for > explanation :) No, starring is what you do to non-green Tinderboxes ;-) (Mind you, many developers seem to be staring at the non-green Tinderboxes, not that it helps!)
Attachment #426231 - Flags: review?(iann_bugzilla) → review+
Whoops, forgot to update the bug when I pushed the patch a couple of weeks ago. Pushed changeset b4e566c1043b to comm-central.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: