Closed Bug 877524 Opened 11 years ago Closed 11 years ago

Add comment to browser.xul about default placements arrays

Categories

(Firefox :: Toolbars and Customization, defect)

x86
All
defect
Not set
trivial

Tracking

()

RESOLVED FIXED
Firefox 28

People

(Reporter: mconley, Assigned: Gijs)

References

(Blocks 1 open bug)

Details

(Whiteboard: [Australis:M6])

Attachments

(1 file)

The relationship between the nodes in the toolbars and their defaultset's have changed. It used to be when a developer added a new default toolbar button to a toolbar, they needed to update the defaultset attribute of that toolbar as well.

That's changing with the new CustomizableUI module. Each toolbar has their own default placements defined in there, and we should add a comment to browser.xul to mention this for devs who might not be familiar with CustomizableUI.jsm.
Attached patch Add commentSplinter Review
I'm guessing you mean this.

In this case, shouldn't we get rid of the defaultset attribute, too, to avoid confusion?
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Attachment #755878 - Flags: review?(mconley)
Attachment #755878 - Attachment is patch: true
Attachment #755878 - Attachment mime type: text/x-patch → text/plain
Comment on attachment 755878 [details] [diff] [review]
Add comment

Review of attachment 755878 [details] [diff] [review]:
-----------------------------------------------------------------

I have no problem with removing defaultset. Can you please file a (non-Australis-blocking) bug for that?

Thanks for the comment!

::: browser/base/content/browser.xul
@@ +500,5 @@
>  
> +    <!--
> +           CAVEAT EMPTOR
> +           Should you need to add items to the toolbar here, make sure to also add them
> +           to the default sets of buttons in CustomizableUI.jsm, so the customization code

let's use placements here instead of "sets", since that seems to be the nomenclature within CustomizableUI.jsm.
Attachment #755878 - Flags: review?(mconley) → review+
Pushed, filed bug 877856 as a followup.
Whiteboard: [Australis:M?] → [Australis:M6][fixed-in-ux]
Please include the changeset URL when you push :)

https://hg.mozilla.org/projects/ux/rev/4484d3d0525b
https://hg.mozilla.org/mozilla-central/rev/4484d3d0525b
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:M6][fixed-in-ux] → [Australis:M6]
Target Milestone: --- → Firefox 28
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: