Closed Bug 1540637 Opened 7 years ago Closed 7 years ago

Don't save persistent certificate exceptions in private browsing windows

Categories

(Firefox :: Security, enhancement, P2)

enhancement

Tracking

()

VERIFIED FIXED
Firefox 68
Tracking Status
firefox67 --- verified
firefox68 --- verified

People

(Reporter: johannh, Assigned: aqadri)

References

Details

Attachments

(1 file, 1 obsolete file)

Bug 1492498 made us permanently persist certificate exceptions by default, but as pointed out on Reddit we should probably not do that in private windows, to avoid persisting this part of user history.

Unfortunately I don't think there's currently a way we can contain the exception to only private windows, but making it temporary by default should be good enough.

Summary: Don't save persistent certificate exceptions in private browsing window → Don't save persistent certificate exceptions in private browsing windows

Hey :aqadri, sorry for missing you on IRC, would you be interested in this bug? The idea is that this variable https://searchfox.org/mozilla-central/rev/14dc5b7d8a6da1854b2f9f33f1da77a97368cd54/browser/base/content/browser.js#3196 should not be set to true if we're in a private browser.

Let me know if you have any questions.

Thanks!

Flags: needinfo?(asra.qadri)
Assignee: nobody → asra.qadri
Flags: needinfo?(asra.qadri)

(In reply to Johann Hofmann [:johannh] from comment #1)

Hey :aqadri, sorry for missing you on IRC, would you be interested in this bug? The idea is that this variable https://searchfox.org/mozilla-central/rev/14dc5b7d8a6da1854b2f9f33f1da77a97368cd54/browser/base/content/browser.js#3196 should not be set to true if we're in a private browser.

Let me know if you have any questions.

Thanks!

I'll start working on it. Thanks :)

Attachment #9056311 - Attachment is obsolete: true
Keywords: checkin-needed

Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/87ac760ffe88
Don't save persistent certificate exceptions in private browsing windows. r=johannh

Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68

Comment on attachment 9056587 [details]
Bug 1540637: Don't save persistent certificate exceptions in private browsing windows. r=johannh

Beta/Release Uplift Approval Request

  • Feature/Bug causing the regression: None
  • User impact if declined: When users add a certificate exception in a private window, that exception might last longer than they would expect to, potentially compromising the promise of private browsing.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: - Open a private window, navigate to https://expired.badssl.com/
  • Click "Advanced" -> "Accept the risk and continue"
  • You should see a big red page
  • Restart the browser
  • Open a private window, navigate to https://expired.badssl.com/
  • You should see the cert error again
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Single line patch that amends an existing if-condition.
  • String changes made/needed: None
Attachment #9056587 - Flags: approval-mozilla-beta?
Flags: qe-verify?

Let's get it verified by QA on Nightly before uplifting in beta.

Flags: qe-verify? → qe-verify+
QA Whiteboard: [qa-triaged]

Reproduced this issue using Fx 67.0b10 on Windows 10 x64.

Confirming the fix across platform using Latest Nightly, build ID 20190412093400.
Leaving the qe-verify+ flag until uplift/verification in beta.

Comment on attachment 9056587 [details]
Bug 1540637: Don't save persistent certificate exceptions in private browsing windows. r=johannh

Low risk and verified by QA in nightly, uplift approved for 67 beta 11, thanks.

Attachment #9056587 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Tried to uplift this and got a conflict:

mozilla@ubuntu ~/mozilla-unified beta(+4) $ hg graft -er 87ac760ffe88
grafting 534701:87ac760ffe88 "Bug 1540637: Don't save persistent certificate exceptions in private browsing windows. r=johannh"
merging browser/base/content/browser.js
warning: conflicts while merging browser/base/content/browser.js! (edit, then use 'hg resolve --mark')
abort: unresolved conflicts, can't continue
(use 'hg resolve' and 'hg graft --continue')

Flags: needinfo?(asra.qadri)

Also confirming this is fixed on Firefox 67.0b11, build ID: 20190415085659.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: