Closed
Bug 887438
Opened 12 years ago
Closed 12 years ago
Add currentset setter shim for all toolbars
Categories
(Firefox :: Toolbars and Customization, defect)
Firefox
Toolbars and Customization
Tracking
()
RESOLVED
FIXED
Firefox 28
People
(Reporter: Gijs, Assigned: Gijs)
References
(Blocks 1 open bug)
Details
(Whiteboard: [Australis:M8])
Attachments
(1 file)
|
10.30 KB,
patch
|
jaws
:
review+
|
Details | Diff | Splinter Review |
As just discussed, it's probably a good idea to have a backwards compatibility thing for the currentSet setter.
| Assignee | ||
Comment 1•12 years ago
|
||
Attachment #771616 -
Flags: review?(jaws)
| Assignee | ||
Comment 2•12 years ago
|
||
Comment on attachment 771616 [details] [diff] [review]
Patch with tests
>diff --git a/browser/components/customizableui/test/head.js b/browser/components/customizableui/test/head.js
> function getAreaWidgetIds(areaId) {
>- let widgetAry = CustomizableUI.getWidgetsInArea(areaId);
>- return widgetAry.map(x => x.id);
>+ return CustomizableUI.getWidgetIdsInArea(areaId);
> }
I guess this is unrelated because I didn't really use it in this test, but now that we have an API for this I figured we should probably not wrap and unwrap these in our tests... it's a little silly.
| Assignee | ||
Updated•12 years ago
|
Status: NEW → ASSIGNED
Comment 3•12 years ago
|
||
Comment on attachment 771616 [details] [diff] [review]
Patch with tests
Review of attachment 771616 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/components/customizableui/content/toolbar.xml
@@ +133,4 @@
> ]]></getter>
> </property>
>
> <property name="currentSet" readonly="true">
Now that there is a setter, readonly=true seems wrong.
::: browser/components/customizableui/test/browser_887438_currentset_shim.js
@@ +34,5 @@
> + is(newCurrentSet, navbar.currentSet, "Current set should match expected current set.");
> + let feedBtn = document.getElementById("feed-button");
> + let syncBtn = document.getElementById("sync-button");
> + ok(feedBtn, "Feed button should have been added.");
> + ok(syncBtn, "Sync button should have been added.");
Please add a check that feedBtn.nextElementSibling == syncBtn as well as syncBtn.nextElementSibling == homeButton.
Attachment #771616 -
Flags: review?(jaws) → review+
| Assignee | ||
Comment 4•12 years ago
|
||
Pushed with the issues from comment #3 fixed: https://hg.mozilla.org/projects/ux/rev/1b4535123806
Whiteboard: [Australis:M?] → [Australis:M8][fixed-in-ux]
| Assignee | ||
Comment 5•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:M8][fixed-in-ux] → [Australis:M8]
Target Milestone: --- → Firefox 28
You need to log in
before you can comment on or make changes to this bug.
Description
•