Closed
Bug 913494
Opened 11 years ago
Closed 11 years ago
Remove enablePrivilege usage from tests for password manager
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla26
People
(Reporter: emk, Assigned: emk)
References
Details
Attachments
(1 file)
44.45 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
- Bare nsIObserver didn't work well with SpecialPowers. I replaced it with SpecialPowers.addObserver/removeObserver.
- Looks like removeObserver is confused by the custom QueryInterface
implementation on the observer. Fortunately I could just remove it.
- Replaced some instanceof checks with SpecialPowers.call_Instanceof.
- Uncommented a test expecting that enablePrivilege is NOT used.
Feel free to redirect if you think a password manager module owner should review this.
Attachment #800798 -
Flags: review?(bobbyholley+bmo)
Assignee | ||
Updated•11 years ago
|
OS: Windows 8 → All
Hardware: x86_64 → All
Comment 1•11 years ago
|
||
Comment on attachment 800798 [details] [diff] [review]
patch
Review of attachment 800798 [details] [diff] [review]:
-----------------------------------------------------------------
\o/
::: toolkit/components/passwordmgr/test/test_bug_627616.html
@@ +21,5 @@
> QueryInterface : function (iid) {
> const interfaces = [Ci.nsIProtocolProxyCallback, Ci.nsISupports];
>
> if (!interfaces.some( function(v) { return iid.equals(v) } ))
> + throw SpecialPowers.wrap(SpecialPowers.Components).results.NS_ERROR_NO_INTERFACE;
SpecialPowers.Cr?
Attachment #800798 -
Flags: review?(bobbyholley+bmo) → review+
Assignee | ||
Comment 2•11 years ago
|
||
Assignee: nobody → VYV03354
Status: NEW → ASSIGNED
Flags: in-testsuite+
Comment 3•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
You need to log in
before you can comment on or make changes to this bug.
Description
•