Closed Bug 1390183 Opened 7 years ago Closed 7 years ago

certificate error pages: firefox doesn't notice when the system time has been corrected

Categories

(Firefox :: Security, defect)

57 Branch
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: cgroswird, Unassigned)

Details

Attachments

(2 files)

      No description provided.
Flags: needinfo?(ekr)
Additional notes (per conversation with Cate)

1. This was after a reboot with an apparent system update (apple + status bar)
2. Problem went away after browser restart.

Keeler, bouncing this to you for now.
Flags: needinfo?(ekr) → needinfo?(dkeeler)
Summary: Cant connect (security issue) → Incorrect time in Firefox (doesn't match system clock) leads to cert errors
Version: unspecified → 57 Branch
Hmmm - I suspect this happened something like this:

1. system update/reboot -> clock gets set to some time in the past
2. Firefox tries to connect to a site, certificate verification fails due to the clock
3. Firefox puts together the error page, asks for the system time ( https://dxr.mozilla.org/mozilla-central/rev/5322c03f4c8587fe526172d3f87160031faa6d75/browser/base/content/content.js#471 )
4. ntp or the equivalent kicks in and sets the system time to the correct value
5. Firefox displays a certificate error page with out-of-date information, given that the system clock has been corrected
(6. viewing the system clock widget indicates that it now has the correct time)

At that point, refreshing the page should work - perhaps we could add something to the error page that refreshes it when the system clock changes (more than due to the passage of time, that is)?

In any case, I'm pretty sure this is a front-end issue (rather than PSM).
Component: Security: PSM → Security
Flags: needinfo?(dkeeler)
Product: Core → Firefox
Summary: Incorrect time in Firefox (doesn't match system clock) leads to cert errors → certificate error pages: firefox doesn't notice when the system time has been corrected
You're right, we should have reloaded. Too late now, though.
I set my date back a couple years,
loaded a secure site 
   ==> got an error equivalent to the screenshot,
turned automatic datetime setting on my system,
refreshed page
   ==> site loaded fine

This is working fine. not worth having the error page poll the clock on the chance it can auto-refresh. Most of the time the clock is that wrong it's going to stay that wrong.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: