Closed
Bug 819507
Opened 12 years ago
Closed 12 years ago
password manager tests rely on deprecated XPConnect behavior
Categories
(Toolkit :: Password Manager, defect)
Toolkit
Password Manager
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: bholley, Assigned: bholley)
References
Details
Attachments
(1 file)
(deleted),
patch
|
Dolske
:
review+
|
Details | Diff | Splinter Review |
In toolkit/components/passwordmgr/test/unit/test_storage_mozStorage_6.js, test 11 creates a JS-implemented "wonkyLogin" object and monkeypatches it with XPCOM methods from "wonkyDelegate", a bonafide nsLoginInfo object. This assumes that the C++ methods know how to find the object on which they were defined even if invoked with a different |this| object.
I got rid of this behavior in quickstubs in january (bug 622301), and I'm finally getting rid of it for old-fashioned XPConnect calls in bug 658909.
The tests seem to pass with this check removed, so hopefully reviewers can tell me if there's any real password manager code that actually relies on this being possible.
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #689851 -
Flags: review?(dolske)
Comment 2•12 years ago
|
||
Comment on attachment 689851 [details] [diff] [review]
Stop relying on deprecated behavior in passwordmgr mozStorage tests. v1
Review of attachment 689851 [details] [diff] [review]:
-----------------------------------------------------------------
IIRC from bug 477917, the general purpose here was to try and not break any theoretical implementers of nsILoginInfo who didn't also implement nsILoginMetaInfo. And so I added this test with such an implementation to make sure it kept working.
I don't think that's actually useful to support (nor does, afaik, anyone actually do this). So let's just remove this (as you've done) and not look for an alternate way of testing.
Attachment #689851 -
Flags: review?(dolske) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Comment 4•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in
before you can comment on or make changes to this bug.
Description
•