Closed Bug 1081711 Opened 10 years ago Closed 10 years ago

"Remember this decision" does not work for choosing a client certificate on Firefox for Android

Categories

(Firefox for Android Graveyard :: General, defect)

32 Branch
ARM
Android
defect
Not set
normal

Tracking

(firefox33 wontfix, firefox34 verified, firefox35 verified, firefox36 verified, firefox37 verified, fennec+)

VERIFIED FIXED
Firefox 36
Tracking Status
firefox33 --- wontfix
firefox34 --- verified
firefox35 --- verified
firefox36 --- verified
firefox37 --- verified
fennec + ---

People

(Reporter: scriptjunkie, Assigned: mgoodwin)

References

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
Build ID: 20140923175406

Steps to reproduce:

1. Visit site to issue certificate (https://scriptjunkie.us/getacert)
2. Tap the Generate button to get a certificate (and you are issued one)
3. Tap the link to https://www.scriptjunkie.us/auth/verifycert to use your certificate
"User Identification Request" prompt shows up, lists our certificate, has checkbox to "Remember this decision".
4. Leave checkbox selected to remember this decision and tap OK
5. Wait a few seconds.
6. Refresh the page or close tab and re-open or go back to the getacert page and tap the link to the verifycert page and you'll be prompted again to make the same decision.


Actual results:

You get prompted to choose a certificate every time you visit a site or URL that requests one.


Expected results:

Firefox should have remembered your choice, since you selected remember.
Component: General → Search Activity
OS: Windows 8.1 → Android
Hardware: x86_64 → ARM
Component: Search Activity → General
tracking-fennec: --- → ?
Assignee: nobody → mgoodwin
I actually took a look at it yesterday. The bug is on this line [1], | response.rememberBox | is true, but true != "true" in JS, so the comparison fails. Really simple to fix.

http://mxr.mozilla.org/mozilla-central/source/mobile/android/components/NSSDialogService.js?rev=313e5dcdfcb8#203
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attached patch bug1081711Splinter Review
changed "true" to true as per comment #1
Attachment #8509767 - Flags: review?(wjohnston)
Attachment #8509767 - Flags: review?(wjohnston) → review+
Once this bakes a bit, we should ask for approval on aurora and beta
tracking-fennec: ? → +
https://hg.mozilla.org/mozilla-central/rev/04a67df19cd2
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 36
[Tracking Requested - why for this release]: consider this for uplift into beta
Pretty simple one-line fix, not sure we need to track this since it's not clear this is a regression instead of a long term issue.  Please nominate for approval uplift so it can be considered on the basis of stability and risk.
Flags: needinfo?(mgoodwin)
Comment on attachment 8509767 [details] [diff] [review]
bug1081711

Approval Request Comment
[Feature/regressing bug #]: 1081711
[User impact if declined]: Users will have to re-select client certs for each visit to a site
[Describe test coverage new/current, TBPL]: No new or existing test coverage
[Risks and why]: Minimal; single line change to a line of code that never worked anyway.
[String/UUID change made/needed]: no.
Flags: needinfo?(mgoodwin)
Attachment #8509767 - Flags: approval-mozilla-beta?
Attachment #8509767 - Flags: approval-mozilla-aurora?
Attachment #8509767 - Flags: approval-mozilla-beta?
Attachment #8509767 - Flags: approval-mozilla-beta+
Attachment #8509767 - Flags: approval-mozilla-aurora?
Attachment #8509767 - Flags: approval-mozilla-aurora+
Verified as fixed on all Firefox channels on Nexus 5(Android 5.0)
Trust SSL may be also correct.
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: