Closed
Bug 1291346
Opened 8 years ago
Closed 8 years ago
LoginManagerParent.updateLoginAnchor mistake converting from countLogins to searchLoginsWithObject
Categories
(Toolkit :: Password Manager, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla51
Tracking | Status | |
---|---|---|
firefox48 | --- | unaffected |
firefox49 | --- | fixed |
firefox50 | --- | fixed |
firefox51 | --- | fixed |
People
(Reporter: MattN, Assigned: MattN)
References
()
Details
(Keywords: regression)
Attachments
(1 file)
(deleted),
text/x-review-board-request
|
Dolske
:
review+
ritu
:
approval-mozilla-aurora+
ritu
:
approval-mozilla-beta+
|
Details |
The change below was incorrect since countLogins would ignore the "" for formSubmitURL but searchLogins does not and therefore this only returns form logins that literally have "" for the saved action.
https://hg.mozilla.org/mozilla-central/diff/da82605a18d6/toolkit/components/passwordmgr/LoginManagerParent.jsm#l1.120
The search should specify `httpRealm: null` instead of `formSubmitURL: ""` but this reveals an issue in that the MP prompt appears when a login is found. This is probably a real user-facing issue and is caught by test_master_password.html with this fix.
Assignee | ||
Comment 1•8 years ago
|
||
It's possible to write a test for this but that's already covered by bug 1164018 and this code should be removed in bug 1286718.
Review commit: https://reviewboard.mozilla.org/r/68690/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/68690/
Attachment #8777102 -
Flags: review?(dolske)
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → MattN+bmo
Status: NEW → ASSIGNED
Comment 2•8 years ago
|
||
Comment on attachment 8777102 [details]
Bug 1291346 - Fix updateLoginAnchor's search for form logins and delay it until the pref check.
https://reviewboard.mozilla.org/r/68690/#review66128
::: toolkit/components/passwordmgr/LoginManagerParent.jsm:520
(Diff revision 1)
> + // Once this preference is removed, this version of the fill doorhanger
> + // should be enabled for Desktop only, and not for Android or B2G.
> + if (!Services.prefs.getBoolPref("signon.ui.experimental")) {
> + return;
Any reason not to just move the pref check to the very top of the function?
Attachment #8777102 -
Flags: review?(dolske) → review+
Assignee | ||
Comment 3•8 years ago
|
||
https://reviewboard.mozilla.org/r/68690/#review66128
> Any reason not to just move the pref check to the very top of the function?
Nope, I guess not. Fixed.
Assignee | ||
Comment 4•8 years ago
|
||
Comment on attachment 8777102 [details]
Bug 1291346 - Fix updateLoginAnchor's search for form logins and delay it until the pref check.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/68690/diff/1-2/
Pushed by mozilla@noorenberghe.ca:
https://hg.mozilla.org/integration/fx-team/rev/f54fea6078dd
Fix updateLoginAnchor's search for form logins and delay it until the pref check. r=dolske
Comment 6•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
Matt, can you request uplift for this fix? Thanks!
Flags: needinfo?(MattN+bmo)
Assignee | ||
Comment 8•8 years ago
|
||
Comment on attachment 8777102 [details]
Bug 1291346 - Fix updateLoginAnchor's search for form logins and delay it until the pref check.
Approval Request Comment
[Feature/regressing bug #]: Bug 667233
[User impact if declined]: Useless work done when a non-default feature is disabled. Non-default feature would be missing most logins if it was enabled (not recommended)
[Describe test coverage new/current, TreeHerder]: It's possible to write a test for this but that's already covered by bug 1164018 and this code should be removed in bug 1286718 so I didn't write a new test. It's also a trivial change.
[Risks and why]: Low risk trivial changes and automated tests for other functionality didn't seem to regress.
[String/UUID change made/needed]: N/A
Flags: needinfo?(MattN+bmo)
Attachment #8777102 -
Flags: approval-mozilla-beta?
Attachment #8777102 -
Flags: approval-mozilla-aurora?
Comment on attachment 8777102 [details]
Bug 1291346 - Fix updateLoginAnchor's search for form logins and delay it until the pref check.
Fixes a regression, Aurora50+, Beta49+
Attachment #8777102 -
Flags: approval-mozilla-beta?
Attachment #8777102 -
Flags: approval-mozilla-beta+
Attachment #8777102 -
Flags: approval-mozilla-aurora?
Attachment #8777102 -
Flags: approval-mozilla-aurora+
Comment 10•8 years ago
|
||
bugherder uplift |
Comment 11•8 years ago
|
||
bugherder uplift |
Updated•8 years ago
|
Version: unspecified → 49 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•