Closed
Bug 909102
Opened 12 years ago
Closed 8 years ago
Middle click on folder in Library left panel is broken
Categories
(Firefox :: Bookmarks & History, defect, P3)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
FIXED
Firefox 55
People
(Reporter: tabmix.onemen, Assigned: standard8)
References
Details
(Keywords: regression)
Attachments
(1 file)
Middle click on folder in Library left panel doesn't work
Error: ReferenceError: selectedNode is not defined
Source File: chrome://browser/content/places/places.js
Line: 295
This function was broken by bug 675902
Updated•12 years ago
|
Keywords: regression
Updated•11 years ago
|
Blocks: fxdesktopbacklog
Updated•11 years ago
|
Whiteboard: [triage]
Updated•11 years ago
|
Updated•11 years ago
|
Whiteboard: [triage] → p=0
Updated•11 years ago
|
Updated•11 years ago
|
Assignee: nobody → mano
Updated•11 years ago
|
Assignee: mano → nobody
Points: --- → 2
Flags: qe-verify?
Whiteboard: p=2
Updated•9 years ago
|
Priority: -- → P3
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•8 years ago
|
||
mozreview-review |
Comment on attachment 8842824 [details]
Bug 909102 - Fix middle-clicking on a folder in the left panel of the Library (to open all items within the folder).
https://reviewboard.mozilla.org/r/116602/#review118220
I came across this as eslint picked it up when looking at enabling the no-undef rule. The fix is simple, the test was the longest bit ;-)
::: browser/components/places/tests/browser/browser_library_left_pane_middleclick.js:1
(Diff revision 1)
> +/* vim:set ts=2 sw=2 sts=2 et: */
This file is based on the existing browser_library_middleclick.js
Comment 3•8 years ago
|
||
mozreview-review |
Comment on attachment 8842824 [details]
Bug 909102 - Fix middle-clicking on a folder in the left panel of the Library (to open all items within the folder).
https://reviewboard.mozilla.org/r/116602/#review118644
::: browser/components/places/tests/browser/browser_library_left_pane_middleclick.js:1
(Diff revision 1)
> +/* vim:set ts=2 sw=2 sts=2 et: */
fwiw, since this only contains a single test case it could be far simpler, for example all the sub-harness to run multiple tests may go.
That said, I understand this is not critical and you are working on other more important stuff, so I'm not going to ask to rewrite the whole thing.
We'll do one day, in the remote future :)
::: browser/components/places/tests/browser/browser_library_left_pane_middleclick.js:118
(Diff revision 1)
> +// ------------------------------------------------------------------------------
> +
> +function test() {
> + waitForExplicitFinish();
> + // Increase timeout, this test can be quite slow due to waitForFocus calls.
> + requestLongerTimeout(2);
This is probably not needed, it may be needed in browser_library_middleclick.js because it runs 3 sub-tests. Here we only have one.
Attachment #8842824 -
Flags: review?(mak77) → review+
Comment hidden (mozreview-request) |
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/55d9a513c90e
Fix middle-clicking on a folder in the left panel of the Library (to open all items within the folder). r=mak
I had to back this out for failures like https://treeherder.mozilla.org/logviewer.html#?job_id=81506913&repo=autoland
https://hg.mozilla.org/integration/autoland/rev/7b8d033f7717
Flags: needinfo?(standard8)
Comment hidden (mozreview-request) |
Assignee | ||
Comment 8•8 years ago
|
||
I've fixed the failures - I had to make the test double-click on the "Other Bookmarks" entry a second time, so that it was closed & didn't affect other tests.
Pushing the fix to try, just to make sure.
Flags: needinfo?(standard8)
Comment 9•8 years ago
|
||
In general this method of clicking on a given entry is not really "safe", for example if we'd add something else to the left pane, all of this would start failing.
You could probably use a combination of library.PlacesOrganizer.selectLeftPaneQuery("UnfiledBookmarks"); library.PlacesOrganizer._places.selectedNode.containerOpen = true/false, and library.PlacesOrganizer._places.view.treeIndexForNode(node)
That may also simplify your double-click needs (you could just set containerOpen)
Comment hidden (mozreview-request) |
Assignee | ||
Comment 11•8 years ago
|
||
Thanks for the hints, that's much nicer!
Comment 12•8 years ago
|
||
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/15fa3319c37f
Fix middle-clicking on a folder in the left panel of the Library (to open all items within the folder). r=mak
Comment 13•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Comment 14•8 years ago
|
||
Seems like a pretty low-risk fix if we wanted to consider it for 53/54 backport (OTOH, probably not horribly urgent given its age if the answer is no). What are your thoughts, Mark?
status-firefox22:
affected → ---
status-firefox23:
affected → ---
status-firefox24:
affected → ---
status-firefox25:
affected → ---
status-firefox26:
affected → ---
status-firefox52:
--- → wontfix
status-firefox53:
--- → affected
status-firefox54:
--- → affected
status-firefox-esr52:
--- → wontfix
Flags: needinfo?(standard8)
Flags: in-testsuite+
Assignee | ||
Comment 15•8 years ago
|
||
It is a regression, and a simple fix, but I think due to the age issue (and no dups) we can just let it ride the trains.
Flags: needinfo?(standard8)
You need to log in
before you can comment on or make changes to this bug.
Description
•