Summary: | No "referer" header when iframe url set with location.replace | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Arthur Schwaiger <arthur.schwaiger> | ||||
Component: | Frames | Assignee: | sideshowbarker <mike> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | achristensen, ahmad.saleem792, annevk, cdumez, karlcow, mike, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | BrowserCompat, InRadar | ||||
Version: | Safari 17 | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
See Also: |
https://github.com/web-platform-tests/wpt/pull/42742 https://github.com/web-platform-tests/wpt/pull/42877 |
||||||
Attachments: |
|
Description
Arthur Schwaiger
2023-10-12 07:50:12 PDT
Hi Arthur, can you attach simple reproducible test case or webpage for testing purposes? I’ve written a WPT test for this and I can confirm that the test passes in Firefox and Chrome but fails in Safari. The test files are here: - https://github.com/web-platform-tests/wpt/blob/sideshowbarker/location-replace-from-iframe/html/browsers/history/the-location-interface/location-replace-from-iframe.sub.html - https://github.com/web-platform-tests/wpt/blob/sideshowbarker/location-replace-from-iframe/html/browsers/history/the-location-interface/resources/iframe-contents.sub.html I’ll investigate today, and if I can find a fix, I’ll open a PR with a patch for the fix, and with the WPT tests. Pull request: https://github.com/WebKit/WebKit/pull/19093 Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/42742 Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/42877 Committed 270741@main (1350b5914d01): <https://commits.webkit.org/270741@main> Reviewed commits have been landed. Closing PR #19093 and removing active labels. |