Closed
Bug 972267
Opened 11 years ago
Closed 11 years ago
Australis: StarUI not responding after toggle position
Categories
(Firefox :: Toolbars and Customization, defect)
Tracking
()
VERIFIED
FIXED
Firefox 30
People
(Reporter: alice0775, Assigned: Gijs)
References
(Blocks 1 open bug)
Details
(Whiteboard: [Australis:P2])
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
Unfocused
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Steps To Reproduce:
1. Start Firefox[A]
2. Open New Window[B]
3. Click StarUI on Window[B]
--- bookmarked
4. Right click on StarUI And Move to Menu
5. Switch window[A]
6. Open PanelUI and Right click on StarUI and Move to Toolbar
7. Switch window[B]
8. Click StarUI
Actual Results:
Australis: StarUI not responding
Assignee | ||
Updated•11 years ago
|
Whiteboard: [Australis:P2]
Assignee | ||
Comment 2•11 years ago
|
||
However... this will affect anyone else relying on the customizationchange event as well, as the basic issue is that the context menu methods only transmit that event in one window. I can do a patch for that bug in here, and that should also fix the issue.
Assignee | ||
Comment 3•11 years ago
|
||
This still needs a test, but other than that, what do you think, Jared?
Attachment #8376572 -
Flags: review?(jaws)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Comment 4•11 years ago
|
||
Comment on attachment 8376572 [details] [diff] [review]
adjust Australis' dispatching of customization events so customizationchange fires on all windows,
Review of attachment 8376572 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/components/customizableui/content/toolbar.xml
@@ +534,5 @@
> this._updateMigratedSet();
> // We will now have moved stuff around; kick off an aftercustomization event
> // so add-ons know we've just moved their stuff:
> if (window.gCustomizeMode) {
> + CustomizableUI.dispatchToolboxEvent("customizationchange", {}, window);
Why do we still need the window.gCustomizeMode check here?
Assignee | ||
Comment 5•11 years ago
|
||
(In reply to Jared Wein [:jaws] from comment #4)
> Comment on attachment 8376572 [details] [diff] [review]
> adjust Australis' dispatching of customization events so customizationchange
> fires on all windows,
>
> Review of attachment 8376572 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: browser/components/customizableui/content/toolbar.xml
> @@ +534,5 @@
> > this._updateMigratedSet();
> > // We will now have moved stuff around; kick off an aftercustomization event
> > // so add-ons know we've just moved their stuff:
> > if (window.gCustomizeMode) {
> > + CustomizableUI.dispatchToolboxEvent("customizationchange", {}, window);
>
> Why do we still need the window.gCustomizeMode check here?
Because in customize mode, _onUIChange sends this event.
Comment 6•11 years ago
|
||
Comment on attachment 8376572 [details] [diff] [review]
adjust Australis' dispatching of customization events so customizationchange fires on all windows,
Clearing review request because Gijs said on IRC that this 'if (window.gCustomizeMode)' check is broken and will need to be investigated further.
<Gijs> it will need tweaking to actually check if we're not in customize mode, though
Attachment #8376572 -
Flags: review?(jaws)
Updated•11 years ago
|
Attachment #8376572 -
Flags: feedback+
Assignee | ||
Comment 7•11 years ago
|
||
With that bit fixed + a test
Attachment #8378482 -
Flags: review?(jaws)
Assignee | ||
Updated•11 years ago
|
Attachment #8376572 -
Attachment is obsolete: true
Comment 8•11 years ago
|
||
Comment on attachment 8378482 [details] [diff] [review]
adjust Australis' dispatching of customization events so customizationchange fires on all windows,
Review of attachment 8378482 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/components/customizableui/src/CustomizableUI.jsm
@@ +1759,5 @@
> },
>
> + _dispatchToolboxEventToWindow: function(aEventType, aDetails, aWindow) {
> + let evt = aWindow.document.createEvent("CustomEvent");
> + evt.initCustomEvent(aEventType, true, true, aDetails);
createEvent() is deprecated - use the CustomEvent constructor:
let event = new aWindow.defaultView.CustomEvent(aEventType, {
bubbles: true,
cancelable: true,
details: aDetails
});
Attachment #8378482 -
Flags: review?(jaws) → review+
Assignee | ||
Comment 9•11 years ago
|
||
w/ nit fixed,
remote: https://hg.mozilla.org/integration/fx-team/rev/7c7963536edb
Flags: in-testsuite+
Whiteboard: [Australis:P2] → [Australis:P2][fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:P2][fixed-in-fx-team] → [Australis:P2]
Target Milestone: --- → Firefox 30
Assignee | ||
Comment 11•11 years ago
|
||
Comment on attachment 8378482 [details] [diff] [review]
adjust Australis' dispatching of customization events so customizationchange fires on all windows,
[Approval Request Comment]
Bug caused by (feature/regressing bug #): Australis
User impact if declined: bookmarks button breaks if it's moved about
Testing completed (on m-c, etc.): on m-c, has automated test
Risk to taking this patch (and alternatives if risky): very low
String or IDL/UUID changes made by this patch: none
Attachment #8378482 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
status-firefox29:
--- → affected
status-firefox30:
--- → fixed
Updated•11 years ago
|
Attachment #8378482 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 12•11 years ago
|
||
Updated•11 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•