Closed
Bug 841411
Opened 12 years ago
Closed 12 years ago
Remove enablePrivilege from tests added in bug 790475
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bholley, Assigned: mconley)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
|
1.83 KB,
patch
|
Details | Diff | Splinter Review |
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?
| Reporter | ||
Comment 2•12 years ago
|
||
(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
| Assignee | ||
Comment 3•12 years ago
|
||
Uses SpecialPowers instead of enablePrivilege("UniversalXPConnect").
| Assignee | ||
Updated•12 years ago
|
Attachment #713947 -
Flags: review?(ehsan)
Comment 4•12 years ago
|
||
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+
| Assignee | ||
Comment 5•12 years ago
|
||
Good call - thanks.
Attachment #713947 -
Attachment is obsolete: true
| Assignee | ||
Comment 6•12 years ago
|
||
Comment 7•12 years ago
|
||
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.
Description
•