Closed Bug 821140 Opened 13 years ago Closed 12 years ago

nsIDOMWindowUtils APIs still say they require "UniversalXPConnect privileges", when they should say "chrome privileges"

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: dholbert, Assigned: nsm)

References

Details

Attachments

(1 file)

Bug 804174 changed nsDOMWindowUtils to replace a bunch of "IsUniversalXPConnectCapable()" checks with "IsCallerChrome()" checks. It didn't update the documentation for those methods, though, so nsIDOMWindowUtils still has a bunch of documentation that mentions "UniversalXPConnect privileges". I think all references to UniversalXPConnect in that IDL file should probably be replaced with references to "chrome privileges" (at least, for the functions that bug 804174 converted). MXR link: https://mxr.mozilla.org/mozilla-central/search?string=UniversalXPConnect&find=nsIDOMWindowUtils.idl&findi=&filter=^[^\0]*%24&hitlimit=&tree=mozilla-central/base/nsIDOMWindowUtils.idl#83
Only comment updates
Attachment #693010 - Flags: review?(continuation)
Attachment #693010 - Flags: checkin?(continuation)
Comment on attachment 693010 [details] [diff] [review] Update comments to say chrome privileges Review of attachment 693010 [details] [diff] [review]: ----------------------------------------------------------------- Thanks! I'll fix the nit and land it. ::: dom/interfaces/base/nsIDOMWindowUtils.idl @@ +617,5 @@ > * Suppresses/unsuppresses user initiated event handling in window's document > * and subdocuments. > * > + * @throw NS_ERROR_DOM_SECURITY_ERR if called without chrome privileges and > + * NS_ERROR_FAILURE if window doesn't have a document. nit: it looks like this should be indented.
Attachment #693010 - Flags: review?(continuation) → review+
Assignee: nobody → nsm.nikhil
OS: Linux → All
Hardware: x86_64 → All
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Attachment #693010 - Flags: checkin?(continuation)
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: