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)
SeaMonkey
Tabbed Browser
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: neil, Assigned: neil)
Details
(Keywords: regression)
Attachments
(1 file)
|
934 bytes,
patch
|
iannbugzilla
:
review+
misak.bugzilla
:
review+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•15 years ago
|
||
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)
| Assignee | ||
Comment 2•15 years ago
|
||
Misak, I don't suppose that this is something that you can write a test for?
Comment 3•15 years ago
|
||
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+
| Assignee | ||
Comment 4•15 years ago
|
||
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.
Comment 5•15 years ago
|
||
Ah, I'm starring to the code two days to find how it should work. Thanks for explanation :)
| Assignee | ||
Comment 6•15 years ago
|
||
(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+
| Assignee | ||
Comment 7•15 years ago
|
||
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.
Description
•