Bug 215080 - document.referrer value is missing trailing slash
Summary: document.referrer value is missing trailing slash
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alex Christensen
Keywords: InRadar
Depends on:
Reported: 2020-08-03 06:13 PDT by Eric Lawrence (MSFT)
Modified: 2021-07-27 10:21 PDT (History)
11 users (show)

See Also:

Patch (4.03 KB, patch)
2021-07-27 09:09 PDT, Alex Christensen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Lawrence (MSFT) 2020-08-03 06:13:44 PDT
1. Visit https://bayden.com/test/refer/
2. Click https://webdbg.com/test/refer/

OBSERVE: At the top of the page, we see "document.referrer is https://bayden.com"

EXPECT: At the top of the page, we see "document.referrer is https://bayden.com/" with the trailing slash. When sanitizing the referer HTTP header for cross-origin subdownloads, Safari includes the slash. 
Chromium always includes the slash.
Comment 1 Radar WebKit Bug Importer 2020-08-04 13:41:32 PDT
Comment 2 Sam Sneddon [:gsnedders] 2021-07-27 06:16:08 PDT
Presumably ITP related, given it's document.referrer only?
Comment 3 Alex Christensen 2021-07-27 09:09:06 PDT
Created attachment 434292 [details]
Comment 4 EWS 2021-07-27 10:21:01 PDT
Committed r280342 (239989@main): <https://commits.webkit.org/239989@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 434292 [details].