Open Bug 1626192 Opened 4 years ago Updated 1 year ago

Service Worker fetch removes document.referrer

Categories

(Core :: DOM: Service Workers, defect, P3)

74 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: reinout, Unassigned)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36

Steps to reproduce:

Requesting an iframe through a service worker fetch results in that iframe not having a document.referrer:

Setup:
index.html contains a service worker whose fetch handler just fetches the request.
index.html iframes /frame.html
frame.html prints document.referrer

Attached is a zipfile with this setup.

Actual results:

document.referrer is empty.
The actual network request does contain a referrer header.

Expected results:

document.referrer should be set to <host>/index.html

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → DOM: Service Workers
Product: Firefox → Core
Priority: -- → P3

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3 (Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3 (normal.)

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: