Closed
Bug 1023193
Opened 11 years ago
Closed 11 years ago
Loop doesn't get automatically added to the toolbar for existing profiles that have had toolbars customized
Categories
(Hello (Loop) :: Client, defect, P1)
Hello (Loop)
Client
Tracking
(firefox34 verified)
VERIFIED
FIXED
mozilla34
Tracking | Status | |
---|---|---|
firefox34 | --- | verified |
People
(Reporter: standard8, Assigned: mikedeboer)
References
Details
(Whiteboard: [mozilla33 carry over])
Attachments
(1 file)
6.66 KB,
patch
|
mconley
:
review+
|
Details | Diff | Splinter Review |
Somehow missed this previously - the loop button isn't getting added to the toolbar for existing profiles. It does get added for new profiles.
I'll dig into it this afternoon to at least try and figure out what needs to happen.
Reporter | ||
Updated•11 years ago
|
Priority: -- → P1
Target Milestone: --- → mozilla33
Reporter | ||
Comment 1•11 years ago
|
||
Bug 1005065 should have done this, but missed this case.
Depends on: 1005065
Reporter | ||
Comment 2•11 years ago
|
||
Ok, if I'm reading this line correctly:
http://hg.mozilla.org/mozilla-central/annotate/9dc0ffca10f4/browser/components/customizableui/src/CustomizableUI.jsm#l272
Then there's no pre-existing functionality in the customizable UI to upgrade a user's "currentset" of icons when we change the "defaultset".
To fix this bug, we'd need to write this code.
Assignee: standard8 → nobody
Reporter | ||
Comment 3•11 years ago
|
||
I've just been talking to Gijs on irc. He has suggested that we need to move from a hard-coded XUL button to a CUI.createWidget. Docs on this are here:
https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/CustomizableUI.jsm/API-provided_widgets
https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/CustomizableUI.jsm
See also http://mxr.mozilla.org/mozilla-central/source/browser/components/customizableui/src/CustomizableWidgets.jsm#336
Assignee: nobody → standard8
Summary: Loop doesn't get automatically added to the toolbar for existing profiles → Loop doesn't get automatically added to the toolbar for existing profiles that have had toolbars customized
Comment 4•11 years ago
|
||
I don't believe that just switching to an API-created widget will fix this issue - the "New e10s window" button, for example, suffered the same issue as the Loop button, and was only in the menu panel by default in uncustomized profiles.
Comment 5•11 years ago
|
||
likely happening with mike connely on the dependent bug - as needed in Fx team fix. using this bug for loop team investigation/collaboration.
Whiteboard: p=0, investigation
Reporter | ||
Comment 6•11 years ago
|
||
I took a look at implementing a customisable widget instead of the xul button as part of bug 1011392.
Our "requirements" for the Loop panel are roughly:
- It has an iframe, that is only created once when the user opens the panel
- Since only one panel can be visible at any one time, the iframe is shared across locations and different windows.
The main issues that I remember coming up against were:
- There wasn't enough notifications on customisable widgets to support moving an iframe as part of a panel from one dom location to another.
This is what SharedFrame currently does for us.
- Using a "custom" widget type, I generally found it was creating the widget on startup, as it was creating the actual button, although I could probably attach a panel to it, creating the iframe at that stage was still too early.
There may already be ways around these - moving to a customisable widget originally seemed easy (and that it may have fixed some of our issues), but having already had a patch for bug 1011392 almost complete, I decided to complete that as it seemed easier.
Whiteboard: p=0, investigation → [p=0][browser]
Reporter | ||
Updated•11 years ago
|
Assignee: standard8 → nobody
Whiteboard: [p=0][browser] → [p=?, depends on work required after bug 1023304][browser]
Comment 7•11 years ago
|
||
Is there an update on this one?
It seems we should have this one fixed for internal promotion or at least communicate the procedure for existing nightly users with customized toolbars.
Comment 8•11 years ago
|
||
I believe what we need to do is get bug 1023304 selected during the Firefox backlog triage. If gavin, chad, or madhava know how important bug 1023304 is to Loop, then I think it's more likely to get selected.
I'll put a needinfo in that bug to see if we can get it queued.
Updated•11 years ago
|
Whiteboard: [p=?, depends on work required after bug 1023304][browser] → --do_not_change-- [mozilla33 carry over]
Target Milestone: mozilla33 → mozilla34
Updated•11 years ago
|
Whiteboard: --do_not_change-- [mozilla33 carry over] → [mozilla33 carry over]
Reporter | ||
Comment 9•11 years ago
|
||
From Mike Conley, this is what should be needed to fix this bug, now that bu 1023304 is fixed:
* Switch the Loop button from a xul button in browser.xul to a button defined in CustomizableWidget
* Set "introducedInVersion: 1" on the button
* Bump kVersion in CustomisableUI.jsm from 0 to 1.
<quote>and that _should_ kick it off</quote>
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → mdeboer
Status: NEW → ASSIGNED
Assignee | ||
Comment 10•11 years ago
|
||
Hi Mike! Are you comfortable reviewing this? Thanks in advance!
Attachment #8464639 -
Flags: review?(mconley)
Comment 11•11 years ago
|
||
Comment on attachment 8464639 [details] [diff] [review]
Patch v1: make a customizableWidget out the Loop toolbar button
Review of attachment 8464639 [details] [diff] [review]:
-----------------------------------------------------------------
So this works, so long as you remove the underscore before _introducedInVersion. When I manually edited the code to not have the underscore, everything worked as expected.
See also my note about the const.
r=me with those things fixed.
::: browser/components/customizableui/CustomizableUI.jsm
@@ +51,5 @@
> /**
> * The current version. We can use this to auto-add new default widgets as necessary.
> * (would be const but isn't because of testing purposes)
> */
> +let kVersion = 1;
Not your doing, but I just noticed - I guess this should be a constant instead?
::: browser/components/customizableui/CustomizableWidgets.jsm
@@ +904,5 @@
> + // XXX Bug 1013989 will provide a label for the button
> + label: "loop-call-button.label",
> + tooltiptext: "loop-call-button.tooltiptext",
> + defaultArea: CustomizableUI.AREA_NAVBAR,
> + _introducedInVersion: 1,
Ah, this doesn't need to be underscored here - it gets translated to the underscored property in the generated widget.
Attachment #8464639 -
Flags: review?(mconley) → review+
Assignee | ||
Comment 12•11 years ago
|
||
Thanks Mike!
Pushed to fx-team with comment addressed: https://hg.mozilla.org/integration/fx-team/rev/909162b20502
Comment 13•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 14•11 years ago
|
||
Tracking for QA -- I'll add a smoketest for this to make sure it doesn't regress.
QA Contact: anthony.s.hughes
Whiteboard: [mozilla33 carry over] → [mozilla33 carry over][qa+]
Flags: qe-verify+
Whiteboard: [mozilla33 carry over][qa+] → [mozilla33 carry over]
Comment 15•11 years ago
|
||
Paul, can you please do some regression testing to verify this is fixed in Firefox 34?
Flags: needinfo?(paul.silaghi)
QA Contact: anthony.s.hughes → paul.silaghi
Comment 16•11 years ago
|
||
I'm not sure exactly what this bug covers, but here is what I did:
1. Start FF 20b1 with a new profile
2. Pave over install of FF 34b1
3. Start FF 34b1 with the same profile
AR: No Loop button
Thoughts ?
Flags: needinfo?(paul.silaghi) → needinfo?(standard8)
Comment 17•11 years ago
|
||
You're seeing the throttle code in effect in Beta. With loop.throttled set to true (which it is in Beta), you have a 90% chance of not seeing the Loop button. If you flip loop.throttled to "true", you should see it.
Flags: needinfo?(standard8)
Comment 18•11 years ago
|
||
loop.throttled is set to FALSE (I'm using 34b1 build 1, bug 1081192 didn't make it here, it will enter only in build 2, if I understood correctly)
Comment 19•11 years ago
|
||
Bug 1081192 moved the button from the default toolbar to the palette for Beta 34. Appearing in the toolbar will happen for 35; although it will be similarly throttled.
Comment 20•11 years ago
|
||
ah, my apologies, Pauly. You're right loop.throttled wouldn't be a factor until build 2.
Can you test this first on Nightly and tell us what you see?
Comment 21•11 years ago
|
||
It seems to work fine when upgrading Nightly 2013-01-03 to latest. I'll wait for 34b1 build 2 and re-test.
Comment 22•11 years ago
|
||
Everything is fine in FF 34b1 build2.
Status: RESOLVED → VERIFIED
status-firefox34:
--- → verified
You need to log in
before you can comment on or make changes to this bug.
Description
•