Open Bug 2093967 Opened 15 days ago Updated 9 days ago

Strict-Transport-Security parse warning is not logged when the response comes from the HTTP cache

Categories

(Core :: Networking: HTTP, defect, P3)

defect

Tracking

()

People

(Reporter: jdescottes, Unassigned)

References

Details

(Whiteboard: [necko-triaged][necko-priority-next])

If a response has an invalid Strict-Transport-Security header, Firefox logs a warning in the console. This only happens when the response comes from the network. If the same resource is later loaded from the HTTP cache, no warning is logged. So if the console was not open during the first load, the user never sees the warning.

We quickly discussed fixing this while looking at the test repeat issue in bug 2090983, but the suggestion was to handle this in a followup.

Steps to reproduce:

  • Use an HTTPS page that loads a script. Serve the script with a header that cannot be parsed, for example Strict-Transport-Security: invalid, and let it be cached.
  • Load the page once with the console closed.
  • Open the console and reload the page normally, so the script comes from the cache.

ER: The console shows "Strict-Transport-Security: The site specified a header that could not be parsed successfully."
AR: The console shows no warning.

Per discussion on the previous bug, this warning is mostly useful when there is a network connection, and it doesn't look like an easy fix. So this might be WONTFIX, but still filing the bug according to the conversation over there. Also this might make more sense in Core: Security, feel free to move. The message we show comes from necko, so I filed it here...

Severity: -- → S4
Priority: -- → P3
Whiteboard: [necko-triaged][necko-priority-next]
You need to log in before you can comment on or make changes to this bug.