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)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: dholbert, Assigned: nsm)
References
Details
Attachments
(1 file)
20.52 KB,
patch
|
mccr8
:
review+
|
Details | Diff | Splinter Review |
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
Assignee | ||
Comment 1•13 years ago
|
||
Only comment updates
Attachment #693010 -
Flags: review?(continuation)
Attachment #693010 -
Flags: checkin?(continuation)
Comment 2•13 years ago
|
||
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+
Comment 3•13 years ago
|
||
Assignee: nobody → nsm.nikhil
OS: Linux → All
Hardware: x86_64 → All
Comment 4•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Updated•12 years ago
|
Attachment #693010 -
Flags: checkin?(continuation)
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•