Closed
Bug 711291
Opened 14 years ago
Closed 14 years ago
Add custom icon property to PopupNotifications.show() options
Categories
(Toolkit :: General, defect)
Toolkit
General
Tracking
()
RESOLVED
FIXED
mozilla11
People
(Reporter: fabrice, Assigned: dao)
References
Details
(Keywords: dev-doc-needed)
Attachments
(1 file)
5.20 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
It can be useful to dynamically specify the icon of a popup notification and not rely on a CSS id rule.
This can be done by adding an |icon| property to the |options| parameter of PopupNotifications.show()
Assignee | ||
Comment 1•14 years ago
|
||
(In reply to Fabrice Desré [:fabrice] from comment #0)
> It can be useful to dynamically specify the icon of a popup notification and
> not rely on a CSS id rule.
I expected the goal of this bug to be that you don't need a custom XBL binding when putting an icon inside the popup.
Comment 2•14 years ago
|
||
Yes, that is the goal. There currently is an icon in the popup, you just can't easily change it's source without using CSS.
Product: Firefox → Toolkit
QA Contact: general → general
Assignee | ||
Comment 3•14 years ago
|
||
So basically you want this API to follow notification bars? That design is flawed, see bug 415400. The icon lives in the theme, it makes sense to set it there as well.
Assignee | ||
Comment 4•14 years ago
|
||
Ah, the icon property would be optional. Makes sense.
I chose popupIconURL rather than iconURL since there's also the anchor icon.
Updated•14 years ago
|
Attachment #582535 -
Flags: review?(gavin.sharp) → review+
Assignee | ||
Comment 5•14 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/229cbb8cf0b5
Need to update https://developer.mozilla.org/en/JavaScript_code_modules/PopupNotifications.jsm#Notification_options
Keywords: dev-doc-needed
Target Milestone: --- → mozilla11
Comment 6•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 7•13 years ago
|
||
The webapp icon needs to be enforced a maximum size:
.popup-notification-icon{
max-width:64px;
max-height:64px}
Now webapps can have very large icons and thereby blowing up the notification panel.
Comment 8•13 years ago
|
||
Given that the pop-up notification no longer shows an icon, is this bug still valid? If so, could you clarify why?
Comment 9•13 years ago
|
||
Not sure what you mean - this bug is FIXED. It added some capabilities that we're no longer using, but I don't see any pressing need to back them out.
Comment 10•13 years ago
|
||
Okay. So is there no way then to verify this from an end-user perspective? If there isn't, as long as the code change is in then, we'll marked this verified then.
Comment 11•13 years ago
|
||
There is currently no user of this API in Firefox, right.
You need to log in
before you can comment on or make changes to this bug.
Description
•