Changeset 280342 in webkit
- Timestamp:
- Jul 27, 2021 10:20:54 AM (12 months ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/http/tests/resourceLoadStatistics/downgrade-document-referrer-nested-third-party-iframe-expected.txt (modified) (1 diff)
-
LayoutTests/http/tests/resourceLoadStatistics/downgrade-document-referrer-third-party-iframe-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/dom/Document.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r280340 r280342 1 2021-07-27 Alex Christensen <achristensen@webkit.org> 2 3 document.referrer value is missing trailing slash 4 https://bugs.webkit.org/show_bug.cgi?id=215080 5 6 Reviewed by John Wilander. 7 8 * http/tests/resourceLoadStatistics/downgrade-document-referrer-nested-third-party-iframe-expected.txt: 9 * http/tests/resourceLoadStatistics/downgrade-document-referrer-third-party-iframe-expected.txt: 10 1 11 2021-07-27 Ayumi Kojima <ayumi_kojima@apple.com> 2 12 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/downgrade-document-referrer-nested-third-party-iframe-expected.txt
r250676 r280342 4 4 5 5 6 PASS document.referrer is http://127.0.0.1:8000 6 PASS document.referrer is http://127.0.0.1:8000/ 7 7 PASS successfullyParsed is true 8 8 -
trunk/LayoutTests/http/tests/resourceLoadStatistics/downgrade-document-referrer-third-party-iframe-expected.txt
r250676 r280342 4 4 5 5 6 PASS document.referrer is http://127.0.0.1:8000 6 PASS document.referrer is http://127.0.0.1:8000/ 7 7 PASS successfullyParsed is true 8 8 -
trunk/Source/WebCore/ChangeLog
r280337 r280342 1 2021-07-27 Alex Christensen <achristensen@webkit.org> 2 3 document.referrer value is missing trailing slash 4 https://bugs.webkit.org/show_bug.cgi?id=215080 5 6 Reviewed by John Wilander. 7 8 This matches the behavior of Chrome and Firefox. 9 The solution is similar to that of bug 227795. 10 Covered by a few layout tests. 11 12 * dom/Document.cpp: 13 (WebCore::Document::referrer): 14 1 15 2021-07-26 Said Abou-Hallawa <said@apple.com> 2 16 -
trunk/Source/WebCore/dom/Document.cpp
r280112 r280342 5268 5268 RegistrableDomain referrerRegistrableDomain { referrerURL }; 5269 5269 if (!referrerRegistrableDomain.matches(securityOrigin().data())) { 5270 m_referrerOverride = referrerURL.protocolHostAndPort();5270 m_referrerOverride = URL(URL(), referrerURL.protocolHostAndPort()).string(); 5271 5271 return m_referrerOverride; 5272 5272 }
Note: See TracChangeset
for help on using the changeset viewer.