Closed
Bug 870452
Opened 12 years ago
Closed 12 years ago
When the Subscribe toolbaritem is in the panel, it should show a subview if there are more than 1 available feeds
Categories
(Firefox :: Toolbars and Customization, defect)
Firefox
Toolbars and Customization
Tracking
()
RESOLVED
FIXED
Firefox 28
People
(Reporter: jaws, Assigned: Gijs)
References
(Blocks 1 open bug)
Details
(Whiteboard: [Australis:M6])
Attachments
(1 file, 2 obsolete files)
|
19.12 KB,
patch
|
mconley
:
review+
|
Details | Diff | Splinter Review |
STR:
Open CNN.com
Put the Subscribe button in the panel
Click on the Subscribe button
Expected:
Since there are more than one feeds available, there should be a subview shown
Actual:
Need to click and hold to get a popup to show the feeds, and accessing the popup is awkward.
Updated•12 years ago
|
Blocks: australis-cust
| Assignee | ||
Comment 1•12 years ago
|
||
I'll try taking a stab at this.
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•12 years ago
|
||
So this fixes the issue by migrating to the widget API. Changes to the API:
- widget.onCreated to be notified once a widget is created. Our existing infrastructure takes care of updating the button's disabled state on navigation, however, I believe we can get rid of calling FeedHandler.updateFeeds after customization. I've not added that change in here because I'd like someone to sanity check that assumption of mine.
- widget.onCommand's handler should be called handleWidgetCommand, and we should support handleWidgetClick for cases where toolbar buttons want to handle eg. middle click. This is now widget.onClick (I know, surprising).
- widget.onViewShowing can call preventDefault() on its event and have the view not shown.
Change for the feed button: this now means we show a panel rather than a popup menu in the case of multiple items. As we're doing that for the downloads manager anyway, I think this isn't a big deal, but maybe people disagree! :-)
(NB: note for the Europeans about comment #0: you want http://us.cnn.com/. http://edition.cnn.com (?!) which is the international version only has 1 feed. Surprise!)
Attachment #757538 -
Flags: review?(mconley)
| Assignee | ||
Comment 3•12 years ago
|
||
Unbitrotting after l10n updates; also including l10n strings rather than hardcoding them...
Attachment #757538 -
Attachment is obsolete: true
Attachment #757538 -
Flags: review?(mconley)
Attachment #758569 -
Flags: review?(mconley)
Comment 4•12 years ago
|
||
Comment on attachment 758569 [details] [diff] [review]
Patch v1.1 (unbitrotted)
This appears to be the wrong patch.
Attachment #758569 -
Flags: review?(mconley) → review-
| Assignee | ||
Comment 5•12 years ago
|
||
Why are all these bugs I'm working on having similar bug numbers (they both started with 8704!)
Attachment #758569 -
Attachment is obsolete: true
Attachment #758730 -
Flags: review?(mconley)
Comment 6•12 years ago
|
||
Comment on attachment 758730 [details] [diff] [review]
Correct patch
Review of attachment 758730 [details] [diff] [review]:
-----------------------------------------------------------------
This was surprisingly straight-forward. Great job, Gijs!
Just two suggestions.
::: browser/components/customizableui/src/CustomizableUI.jsm
@@ +767,5 @@
> node.setAttribute("acceltext", shortcut);
> }
> node.setAttribute("class", "toolbarbutton-1 chromeclass-toolbar-additional");
>
> + let handler = this.handleWidgetCommand.bind(this, aWidget, node);
Let's call this commandHandler.
::: browser/components/customizableui/src/CustomizableWidgets.jsm
@@ +482,5 @@
> + aEvent.stopPropagation();
> + return;
> + }
> + },
> + onCreated: function() {
I think I want onCreated to get passed the node that's created, as opposed to having it be this. I think that's more in tune with the other functions we can declare here.
Attachment #758730 -
Flags: review?(mconley) → review+
| Assignee | ||
Comment 7•12 years ago
|
||
Whiteboard: [Australis:M6] → [Australis:M6][fixed-in-ux]
| Assignee | ||
Comment 8•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 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.
Description
•