Closed Bug 798844 Opened 12 years ago Closed 11 years ago

Metro should unfork its old copy of password manager

Categories

(Toolkit :: Password Manager, defect)

All
Windows 8.1
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: rnewman, Assigned: mbrubeck)

References

Details

(Whiteboard: [mvp])

Attachments

(1 file)

As observed in Bug 798835:

Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface] Stack trace: resource://services-sync/engines/passwords.js:84

Relevant code:

84:    return Services.logins.QueryInterface(Ci.nsIInterfaceRequestor)
                      .getInterface(Ci.mozIStorageConnection);
Whiteboard: [metro-mvp?]
Can someone explain why we need this for v1? What is the impact of having or not having it?
Unless I'm mistaken, passwords won't sync, instead logging an exception.
Well, that's kind of important :)  Blocking the sync tracker for now. If we're going to sync in v1, we should certainly try to sync the passwords.
Blocks: metro-sync
Summary: Password manager doesn't implement mozIStorageConnection on Metro → work - Password manager doesn't implement mozIStorageConnection on Metro
Whiteboard: [metro-mvp?] → [mvp]
Blocks: 831615
No longer blocks: metro-sync
Blocks: 849312
No longer blocks: 831615
Blocks: 833130
No longer blocks: 849312
Summary: work - Password manager doesn't implement mozIStorageConnection on Metro → Work - Password manager doesn't implement mozIStorageConnection on Metro
This should be a straightforward fix -- jettison the password mananger fork that came over with fennec/xul, and just use the existing toolkit version. IIRC, the fork was intended to be a temporary measure to get the password manager working in E10S fennec when that was in omgship-mode.
I'm just going to morph, as my last comment suggests. That will both fix the mozIStorageConnection issue, and allow Metro Firefox to take advantage of significant upcoming password manager changes (856470 and 853549).
Blocks: 856470, 853549
Summary: Work - Password manager doesn't implement mozIStorageConnection on Metro → Metro should unfork it's old copy of password manager
We might need some slight changes to our nsILoginManagerPrompter to make sure it implements the correct interface and works with toolkit's nsILoginManager implementation.  Or maybe we can use toolkit's prompter code, and just override its strings and use CSS to change the labels and buttons.
Attached patch patch (deleted) — Splinter Review
I decided to go with the path of least resistance and keep our LoginManagerPrompter for now.  We use somewhat different UX for our notifications, and just overriding the toolkit strings would be a pain if we ever want to make changes that require updating the property names.

The new code here is copied from toolkit, to bring our LoginManagerPrompter more in line with theirs.
Assignee: nobody → mbrubeck
Status: NEW → ASSIGNED
Attachment #731976 - Flags: review?(netzen)
Attachment #731976 - Flags: review?(netzen) → review+
https://hg.mozilla.org/mozilla-central/rev/9437f13fa3d2
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
Summary: Metro should unfork it's old copy of password manager → Metro should unfork its old copy of password manager
OS: Windows 8 Metro → Windows 8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: