Closed Bug 841411 Opened 12 years ago Closed 12 years ago

Remove enablePrivilege from tests added in bug 790475

Categories

(Core :: Layout, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bholley, Assigned: mconley)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

I was just grepping through the commit log, and it appears that bug 790475 added some usage of enablePrivilege. That API is dangerous and deprecated, and per jst's decree new code may not add usage of enablePrivilege. The replacement API is SpecialPowers. :-) Mike, can you fix the test?
Sure, on it.
OS: Mac OS X → All
(In reply to Mike Conley (:mconley) from comment #1) > Sure, on it. Awesome, thanks :-)
Summary: Remove enablePrivilege rom tests added in bug 790475 → Remove enablePrivilege from tests added in bug 790475
Attached patch Patch v1 (obsolete) — Splinter Review
Uses SpecialPowers instead of enablePrivilege("UniversalXPConnect").
Attachment #713947 - Flags: review?(ehsan)
Comment on attachment 713947 [details] [diff] [review] Patch v1 Review of attachment 713947 [details] [diff] [review]: ----------------------------------------------------------------- ::: editor/libeditor/html/tests/test_bug790475.html @@ +32,5 @@ > + var editingSession = SpecialPowers.wrap(window) > + .QueryInterface(Ci.nsIInterfaceRequestor) > + .getInterface(Ci.nsIWebNavigation) > + .QueryInterface(Ci.nsIInterfaceRequestor) > + .getInterface(Ci.nsIEditingSession); Please fix indentation.
Attachment #713947 - Flags: review?(ehsan) → review+
Good call - thanks.
Attachment #713947 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 12 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: