Closed
Bug 928640
Opened 12 years ago
Closed 12 years ago
Opening 'recent closed tabs' item with middle-click is broken
Categories
(Firefox :: Session Restore, defect)
Tracking
()
RESOLVED
FIXED
Firefox 27
| Tracking | Status | |
|---|---|---|
| firefox26 | --- | unaffected |
| firefox27 | + | fixed |
People
(Reporter: alice0775, Assigned: Gijs)
References
Details
(Keywords: regression, Whiteboard: [good first verify])
Attachments
(1 file)
|
4.31 KB,
patch
|
jaws
:
review+
|
Details | Diff | Splinter Review |
Build Identifier:
http://hg.mozilla.org/mozilla-central/rev/e25e62d174ed
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 ID:20131019030204
Steps To Reproduce:
1. Close several tabs
2. History -> Recently close tabs -> mid-click on any 'recent closed tab'
Actual Results:
Nothing happens
Expected Results:
Should open in a 'new tab'
Regression window:
http://hg.mozilla.org/integration/fx-team/pushloghtml?fromchange=50abdc9ee405&tochange=1dd4cd4890fc
| Assignee | ||
Comment 1•12 years ago
|
||
http://hg.mozilla.org/integration/fx-team/rev/082357277604#l2.63
2.63 + element.addEventListener("click", this._undoCloseMiddleClick, false);
Except there is no this._undoCloseMiddleClick.
This will also be broken on UX, I'd imagine.
Comment 2•12 years ago
|
||
Restore All Tabs is also broken
> Error: undoCloseTab is not defined
> Source File: resource://app/modules/sessionstore/RecentlyClosedTabsAndWindowsMenuUtils.jsm
> Line: 70
getTabsFragment use addEventListener for "click" and "command" - undoCloseTab and this._undoCloseMiddleClick are both not defined.
getWindowsFragment use "oncommand" and the reference for undoCloseWindow is in string that only use form browser window
| Assignee | ||
Comment 3•12 years ago
|
||
This fixes things for me, and seems to make sense...
Attachment #819500 -
Flags: review?(jaws)
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Comment 4•12 years ago
|
||
The patch from bug 927917 needs to be merged to m-c, and then this patch can build on top of that one.
Comment 5•12 years ago
|
||
(In reply to Jared Wein [:jaws] from comment #4)
> The patch from bug 927917 needs to be merged to m-c, and then this patch can
> build on top of that one.
This was completely incorrect, as the patch in that bug only touched UX-specific code.
Comment 6•12 years ago
|
||
Comment on attachment 819500 [details] [diff] [review]
middle click open recent tabs and restore all tabs broken,
Review of attachment 819500 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/components/sessionstore/src/RecentlyClosedTabsAndWindowsMenuUtils.jsm
@@ +133,5 @@
> + * Used for a middle click.
> + * @param aEvent
> + * The event when the user clicks the menu item
> + */
> + _undoCloseMiddleClick: function PHM__undoCloseMiddleClick(aEvent) {
PHM__ doesn't make any sense here. Since this is in a JSM, we can also remove the underscore prefix from the function name.
Attachment #819500 -
Flags: review?(jaws) → review+
| Assignee | ||
Comment 7•12 years ago
|
||
(In reply to Jared Wein [:jaws] from comment #6)
> Comment on attachment 819500 [details] [diff] [review]
> middle click open recent tabs and restore all tabs broken,
>
> Review of attachment 819500 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> :::
> browser/components/sessionstore/src/RecentlyClosedTabsAndWindowsMenuUtils.jsm
> @@ +133,5 @@
> > + * Used for a middle click.
> > + * @param aEvent
> > + * The event when the user clicks the menu item
> > + */
> > + _undoCloseMiddleClick: function PHM__undoCloseMiddleClick(aEvent) {
>
> PHM__ doesn't make any sense here. Since this is in a JSM, we can also
> remove the underscore prefix from the function name.
I've removed the function name, like the other functions in that object.
https://hg.mozilla.org/integration/fx-team/rev/f77442b18813
Whiteboard: [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 27
Updated•12 years ago
|
Updated•12 years ago
|
Whiteboard: [good first verify]
You need to log in
before you can comment on or make changes to this bug.
Description
•