Closed
Bug 1089591
Opened 10 years ago
Closed 10 years ago
"Restore defaults" breaks customize mode
Categories
(Firefox :: Toolbars and Customization, defect)
Firefox
Toolbars and Customization
Tracking
()
Tracking | Status | |
---|---|---|
firefox33 | --- | unaffected |
firefox34 | --- | unaffected |
firefox35 | + | verified |
firefox36 | --- | verified |
People
(Reporter: noni, Assigned: alexbardas)
References
Details
(Keywords: regression)
Attachments
(2 files, 6 obsolete files)
1.12 MB,
image/gif
|
Details | |
2.95 KB,
patch
|
alexbardas
:
review+
Gavin
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
This issue is reproducing on Windows 7 64-bit, Ubuntu 14.04 and Mac OS X 10.9 using: Latest Nightly, build ID: 20141026030205. Latest Aurora, build ID: 20141026004001. STR: 1. Open Firefox 2. Click on the Menu Panel and enter Customize Mode. 3. Reorder a few items in the panel. 4. Select Restore Defaults. 5. Try to reorder items again. Expected Results: All of the items can be correctly reordered. Actual Results: After selecting "Restore defaults", the customize mode is broken.
Comment 1•10 years ago
|
||
[Tracking Requested - why for this release]: serious functionality regression
Severity: normal → critical
Points: --- → 3
status-firefox33:
--- → unaffected
status-firefox34:
--- → unaffected
status-firefox35:
--- → affected
status-firefox36:
--- → affected
tracking-firefox35:
--- → ?
Flags: qe-verify+
Flags: in-testsuite?
Flags: firefox-backlog+
Keywords: regression,
regressionwindow-wanted
Comment 2•10 years ago
|
||
Regression window(fx) Good: https://hg.mozilla.org/integration/fx-team/rev/9ef1c5956a05 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0 ID:20140904093341 Bad: https://hg.mozilla.org/integration/fx-team/rev/ca57c19e84c5 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0 ID:20140904094337 Pushlog: https://hg.mozilla.org/integration/fx-team/pushloghtml?fromchange=9ef1c5956a05&tochange=ca57c19e84c5 Rgressed by: ca57c19e84c5 Alex Bardas — Bug 979041 - Wrap an area (area_tabstrip) synchronously before the transition and use requestAnimationFrame. r=mconley
Blocks: 979041
Keywords: regressionwindow-wanted
Comment 3•10 years ago
|
||
Hey Alex - do you think you have some cycles to figure out what broke here?
Flags: needinfo?(abardas)
Assignee | ||
Comment 4•10 years ago
|
||
(In reply to Mike Conley (:mconley) - Needinfo me! from comment #3) > Hey Alex - do you think you have some cycles to figure out what broke here? I think I figured it out. Before we were doing this.areas = [] at the beginning of each wrapToolbarItems. We don't want to do this anymore now, but we should clear this.areas when we call unwrapToolbarItems. I have a 1 line patch which fixes this. Let me come with a regression test for it and make everyone happy.
Flags: needinfo?(abardas)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → abardas
Status: NEW → ASSIGNED
Updated•10 years ago
|
Iteration: --- → 36.2
Assignee | ||
Comment 5•10 years ago
|
||
Attachment #8513033 -
Flags: review?(mconley)
Comment 6•10 years ago
|
||
Comment on attachment 8513033 [details] [diff] [review] v1 Clear areas Set after unwrapping toolbar items + regression test Review of attachment 8513033 [details] [diff] [review]: ----------------------------------------------------------------- You forgot to add the test file. :-)
Attachment #8513033 -
Flags: review?(mconley)
Assignee | ||
Comment 7•10 years ago
|
||
Added the test :)
Attachment #8513033 -
Attachment is obsolete: true
Attachment #8513039 -
Flags: review?(mconley)
Comment 8•10 years ago
|
||
Comment on attachment 8513039 [details] [diff] [review] v1.1 Clear areas Set after unwrapping toolbar items + regression test Review of attachment 8513039 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/components/customizableui/test/browser_1089591_still_customizable_after_reset.js @@ +1,3 @@ > +/* This Source Code Form is subject to the terms of the Mozilla Public > + * License, v. 2.0. If a copy of the MPL was not distributed with this > + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ Nit: Unless you don't like to make this public domain, no need for a license header. @@ +9,5 @@ > + yield startCustomizing(); > + let historyButton = document.getElementById("wrapper-history-panelmenu"); > + let devButton = document.getElementById("wrapper-developer-button"); > + > + ok(historyButton && devButton, "Stuff should exist"); Nit: slightly more descriptive string than "stuff" ? :D @@ +12,5 @@ > + > + ok(historyButton && devButton, "Stuff should exist"); > + simulateItemDrag(historyButton, devButton); > + gCustomizeMode.reset(); > + yield waitForCondition(function() !gCustomizeMode.resetting); Nit: () => !gCustomizeMode.resetting (we'll deprecate the function() foo syntax at some point, hopefully sooner rather than later) @@ +18,5 @@ > + > + historyButton = document.getElementById("wrapper-history-panelmenu"); > + devButton = document.getElementById("wrapper-developer-button"); > + simulateItemDrag(historyButton, devButton); > + ok(historyButton && devButton, "Stuff should exist"); Nit: same string here. This should probably come before the item drag, which will fail if either is null, I think...
Attachment #8513039 -
Flags: review?(mconley) → review+
Assignee | ||
Comment 9•10 years ago
|
||
I've removed the license header. I only test panelmenu and not other areas, but I think it's enough for this regression.
Attachment #8513039 -
Attachment is obsolete: true
Attachment #8513058 -
Flags: review?(gijskruitbosch+bugs)
Comment 10•10 years ago
|
||
Comment on attachment 8513058 [details] [diff] [review] v2 Clear areas Set after unwrapping toolbar items + regression test Review of attachment 8513058 [details] [diff] [review]: ----------------------------------------------------------------- r=me, thanks!
Attachment #8513058 -
Flags: review?(gijskruitbosch+bugs) → review+
Comment 11•10 years ago
|
||
Comment on attachment 8513058 [details] [diff] [review] v2 Clear areas Set after unwrapping toolbar items + regression test Review of attachment 8513058 [details] [diff] [review]: ----------------------------------------------------------------- Where does this fail without your patch? The simulateItemDrag calls shouldn't fail... will it fail because the wrappers will not exist? If so, r=me (and no need for another round of review on this). ::: browser/components/customizableui/test/browser_1089591_still_customizable_after_reset.js @@ +1,3 @@ > +"use strict"; > + > +// Dragging again the elements after a reset should work nit: "Dragging again the elements" -> "Dragging the elements again" @@ +1,4 @@ > +"use strict"; > + > +// Dragging again the elements after a reset should work > +add_task(function() { function* since this is a generator. @@ +18,5 @@ > + simulateItemDrag(historyButton, devButton); > + yield endCustomizing(); > +}); > + > +add_task(function asyncCleanup() { function *
Assignee | ||
Comment 12•10 years ago
|
||
Added Gijs as reviewer. Will push to try when it opens.
Attachment #8513058 -
Attachment is obsolete: true
Attachment #8513071 -
Flags: review+
Assignee | ||
Comment 13•10 years ago
|
||
Applied Mike's suggestions. Without the fix in the module, the test would fail because it doesn't find the wrappers.
Attachment #8513071 -
Attachment is obsolete: true
Attachment #8513087 -
Flags: review+
Assignee | ||
Comment 14•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=dc13ce2487a3
Assignee | ||
Comment 15•10 years ago
|
||
There were some nits, mostly because of copy-paste, but try run looks good. I'm marking it for checkin.
Keywords: checkin-needed
Comment 16•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/e6c622c61207
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 17•10 years ago
|
||
sorry had to back this out for test failures like https://treeherder.mozilla.org/ui/logviewer.html#?job_id=1031907&repo=fx-team
Whiteboard: [fixed-in-fx-team]
Assignee | ||
Comment 18•10 years ago
|
||
(In reply to Carsten Book [:Tomcat] from comment #17) > sorry had to back this out for test failures like > https://treeherder.mozilla.org/ui/logviewer.html#?job_id=1031907&repo=fx-team I made a small change to the test (triggering the reset again before calling endCustomizing()). I'll trigger the bc1 multiple times, hopefully we'll get rid of the oranges.
Assignee | ||
Comment 19•10 years ago
|
||
I couldn't reproduce the error but I added the reset at the end of the test and re-ran the try run tests (also re-triggered bc1 multiple times): https://tbpl.mozilla.org/?tree=Try&rev=7581c3732077
Attachment #8513087 -
Attachment is obsolete: true
Attachment #8514055 -
Flags: review?(gijskruitbosch+bugs)
Comment 20•10 years ago
|
||
Comment on attachment 8514055 [details] [diff] [review] v3 Clear areas Set after unwrapping toolbar items + regression test Please reland the earlier patch; I think the failures were nothing to do with this patch. See bug 1091135, bug 1091437, bug 1091561.
Attachment #8514055 -
Flags: review?(gijskruitbosch+bugs)
Assignee | ||
Comment 21•10 years ago
|
||
Ok, uploading again the previous version because the try error was unrelated to this patch.
Attachment #8514055 -
Attachment is obsolete: true
Attachment #8514400 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 22•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/c24ae4a27f86
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 23•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c24ae4a27f86
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite? → in-testsuite+
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 36
Reporter | ||
Comment 24•10 years ago
|
||
Confirming this fix on latest Nightly, build ID: 20141102030204.
Assignee | ||
Comment 25•10 years ago
|
||
Comment on attachment 8514400 [details] [diff] [review] Clear areas Set after unwrapping toolbar items + regression test Approval Request Comment [Feature/regressing bug #]: 979041 [User impact if declined]: Affects users which press "Restore Defaults" on customize mode. After that, drag & drop doesn't work anymore. [Describe test coverage new/current, TBPL]: 1 new test file + was manually tested & verified [Risks and why]: Almost none, only one line of production code was added. [String/UUID change made/needed]: None
Attachment #8514400 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
Attachment #8514400 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•10 years ago
|
Reporter | ||
Comment 27•10 years ago
|
||
The "Restore Defaults" button no longer breaks customize mode in Firefox 35.0a2, build ID: 20141116004002.
You need to log in
before you can comment on or make changes to this bug.
Description
•