Media loaded via TLS displayed as unencrypted
Categories
(Firefox :: Security, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | unaffected |
firefox70 | --- | unaffected |
firefox71 | --- | wontfix |
firefox72 | --- | wontfix |
firefox73 | --- | verified |
firefox74 | --- | verified |
People
(Reporter: sven-mozilla, Assigned: johannh)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
1.60 MB,
image/png
|
Details | |
47 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details | Review |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:71.0) Gecko/20100101 Firefox/71.0
Steps to reproduce:
- Open a direct link to an image via an https-URL (e. g. https://www.faceandfeet-lounge.de/images/banner.jpg)
- Open page information (ctrl/cmd + I)
- Go to tab security
Actual results:
- Page is shown as not encrypted in spite is was delivered via HTTPS by the server.
- Button to show certificate is not displayed
(see attached screenshot)
Expected results:
Show how the truth about the HTTPS connection and let users see the certificate chain.
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Wennie, could you help us triage and find an owner for this regression in 71 please? Thanks
Hi J.C, please take a look at this bug. Thanks!
Comment 4•6 years ago
|
||
We have shipped our last beta for 71, so this is wontfix for 71.
Comment 6•6 years ago
|
||
Johann - the path of my suspicion for this one is the changes from Bug 1468222 to nsITransportSecurityInfo
.
Assignee | ||
Comment 7•6 years ago
|
||
Huh, so, the regression range is wrong?
Comment 8•6 years ago
|
||
Uhhh, no, probably not. Nevermind.
Comment 9•6 years ago
|
||
Reproduced on latest Nightly 73.0a1 (2019-12-03) (64-bit) on Windows 10. Also did the regression range and indeed Bug 1576960 regressed this.
Comment 10•6 years ago
|
||
We could still potentially get a fix into 72, Johann is it something you may be able to work on in the next week or should I wontfix for 72?
Updated•6 years ago
|
Assignee | ||
Comment 12•6 years ago
|
||
So the issue seems to be that Document::GetSecurityInfo will sometimes return null even though the corresponding channel has a valid securityInfo object. I suspect the reason is that we're only updating mSecurityInfo for HTML documents, not media documents (so videos are affected by this bug, too)
I suspect that we can just move that code to Document::StartDocumentLoad...
Assignee | ||
Comment 13•6 years ago
|
||
In StartDocumentLoad we copy the securityInfo reference from the load channel into a document
member variable. This used to happen only for HTML documents, but other documents (e.g. media)
can be loaded via secure channels, too and thus should have securityInfos. We're using the
securityInfo object to display information in the UI, which would previously fail for images and videos.
Comment 14•6 years ago
|
||
Comment 15•6 years ago
|
||
bugherder |
Comment 16•6 years ago
|
||
Please nominate this for Beta approval if you think it's worth doing.
Assignee | ||
Comment 17•6 years ago
|
||
Comment on attachment 9119736 [details]
Bug 1597029 - Set securityInfo for all document types. r=baku
Beta/Release Uplift Approval Request
- User impact if declined: Missing security information on page info for some document types (images, videos)
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: See description, but please also try opening a video in the browser
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Simple, tested patch that moves setting a member attribute on the document to a parent method
- String changes made/needed: None
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 18•6 years ago
|
||
Comment on attachment 9119736 [details]
Bug 1597029 - Set securityInfo for all document types. r=baku
Fixes missing security information for some pages. Approved for 73.0b5.
Comment 19•6 years ago
|
||
bugherder uplift |
Comment 20•6 years ago
|
||
Managed to reproduce the issue using Fx73.0b4.
The issue is verified fixed using the latest Fx74.0a1 and Fx73.0b5 (treeherder build) on Windows 10, Ubuntu 18 and macOS 10.13. The connection now appears as encrypted and the View Certificate button is displayed.
Description
•