Closed Bug 1839233 Opened 3 years ago Closed 2 years ago

Firefox not sending a referer header for a logo img while Chrome and Safari do

Categories

(Core :: DOM: Security, defect, P5)

defect

Tracking

()

RESOLVED FIXED
Webcompat Priority P2

People

(Reporter: twisniewski, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: webcompat:platform-bug, Whiteboard: [domsecurity-backlog3])

Attachments

(1 file)

The logo at https://lutheransforlife-canada.ca/ does not load in Firefox, because Firefox is not sending a referer header, and the site expects one. As Chrome and Safari do send the header, this is a webcompat issue (as reported at https://github.com/webcompat/web-bugs/issues/123583)

Component: Networking → DOM: Security

According to DevTools, the Referrer Policy is the standard strict-origin-when-cross-origin, and we think the request is same-origin (Sec-Fetch-Site: same-origin) so we should definitely be sending a referrer. As far as I can tell Referrer Policy is doing the right thing so maybe there's something going on in Networking?

Component: DOM: Security → Networking: HTTP

As far as I can tell, the Favicon loader is correctly setting a policy but the computed referrer is empty, so we return early here.

I believe this has something to do with the content-security-policy upgrade-insecure-requests; on the main document response, as ComputeReferrer fails on this line

Component: Networking: HTTP → DOM: Security

Indeed, it looks like either ReferrerInfo doesn't take any upgrading into account or it just happens to early?
However, this should also be fixed when we update the logo due to upgrading of passive mixed content.

Whiteboard: [domsecurity-backlog3]

The severity field is not set for this bug.
:freddy, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(fbraun)
Webcompat Priority: --- → ?
Severity: -- → S4
Flags: needinfo?(fbraun)
Priority: -- → P5
Webcompat Priority: ? → P2
Blocks: 1885911
Attached image image.png

The issue is no longer reproducing, the logo loads correctly.

Environment:
Operating system: Windows 10
Browser tested: Firefox Nightly 128.0a1 (2024-05-30) / Firefox Release 126

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: