Closed
Bug 821170
Opened 12 years ago
Closed 12 years ago
gPluginHandler.handlePluginScripted should not call a private method of PopupNotifications
Categories
(Toolkit :: General, defect)
Toolkit
General
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: jaws, Assigned: keeler)
References
Details
Attachments
(2 files)
(deleted),
patch
|
jaws
:
review+
Gavin
:
feedback-
|
Details | Diff | Splinter Review |
(deleted),
patch
|
keeler
:
feedback+
|
Details | Diff | Splinter Review |
See http://hg.mozilla.org/mozilla-central/annotate/c574f7f68309/browser/base/content/browser-plugins.js#l283.
Underscored methods are considered private and are not expected to be called outside of their module.
This line of code will need to be changed to not depend on this private method. I haven't tested it yet, but I think a call to PopupNotifications.show() can be used here instead of the update.
Comment 1•12 years ago
|
||
(In reply to Jared Wein [:jaws] from comment #0)
> This line of code will need to be changed to not depend on this private
> method. I haven't tested it yet, but I think a call to
> PopupNotifications.show() can be used here instead of the update.
Another option is to expose a public "update()" method on PopupNotifications (which may just call _update(), but at least then the expectations are clear that it's a publicly exposed method and meant to be "supported" for that use).
Assignee | ||
Comment 2•12 years ago
|
||
Something like this?
Reporter | ||
Comment 3•12 years ago
|
||
Comment on attachment 698954 [details] [diff] [review]
patch
Review of attachment 698954 [details] [diff] [review]:
-----------------------------------------------------------------
Yeah, that looks good to me.
Attachment #698954 -
Flags: review?(jaws) → review+
Assignee | ||
Comment 4•12 years ago
|
||
Comment 5•12 years ago
|
||
I guess it's debatable whether this should get super-review, but it surely needs review from a toolkit peer...
Product: Firefox → Toolkit
Comment 6•12 years ago
|
||
Comment on attachment 698954 [details] [diff] [review]
patch
"reshow" is an odd external API - it's a bit confusing what it would do, and why it takes an anchor. On the other hand, notification.reshow() is pretty straightforward. So we can probably just have the Notification method call the internal PopupNotifications method, and not expose anything "public" on PopupNotifications.
Attachment #698954 -
Flags: feedback-
Comment 7•12 years ago
|
||
We should also update https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/PopupNotifications.jsm#The_Notification_object .
David, could you land this if you have no objections?
Attachment #699536 -
Flags: feedback?(dkeeler)
Comment 8•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Assignee | ||
Comment 9•12 years ago
|
||
Comment on attachment 699536 [details] [diff] [review]
like this
Thanks, Gavin!
Attachment #699536 -
Flags: feedback?(dkeeler) → feedback+
Assignee | ||
Comment 10•12 years ago
|
||
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 11•12 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•