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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: jaws, Assigned: keeler)

References

Details

Attachments

(2 files)

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.
(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).
Attached patch patch (deleted) — Splinter Review
Something like this?
Assignee: nobody → dkeeler
Status: NEW → ASSIGNED
Attachment #698954 - Flags: review?(jaws)
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+
I guess it's debatable whether this should get super-review, but it surely needs review from a toolkit peer...
Product: Firefox → Toolkit
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-
Attached patch like this (deleted) — Splinter Review
Attachment #699536 - Flags: feedback?(dkeeler)
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Comment on attachment 699536 [details] [diff] [review] like this Thanks, Gavin!
Attachment #699536 - Flags: feedback?(dkeeler) → feedback+
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: