| Summary: | >4K Referer should have tailing / | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Sam Sneddon [:gsnedders] <gsnedders> | ||||
| Component: | Page Loading | Assignee: | Alex Christensen <achristensen> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | achristensen, beidson, cdumez, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Local Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=215080 | ||||||
| Attachments: |
|
||||||
|
Description
Sam Sneddon [:gsnedders]
2021-07-08 08:46:48 PDT
Example of failing WPT test(s)? Specifically something like https://wpt.fyi/results/referrer-policy/4K+1/gen/top.http-rp/no-referrer-when-downgrade/a-tag.http.html?label=experimental&label=master&aligned is the trailing-/ case Created attachment 433431 [details]
Patch
Comment on attachment 433431 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=433431&action=review > Source/WebCore/ChangeLog:9 > + Covered by existing tests and web platform tests we haven't imported yet. It's too bad that we haven't imported those tests yet. > Tools/TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm:79 > + checkReferer([NSURL URLWithString:longPath], "http://webkit.org/"); It is a bit confusing because this referrer is not > 4K. Also, it seems like this should be easily writable as a layout test? Comment on attachment 433431 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=433431&action=review >> Tools/TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm:79 >> + checkReferer([NSURL URLWithString:longPath], "http://webkit.org/"); > > It is a bit confusing because this referrer is not > 4K. > > Also, it seems like this should be easily writable as a layout test? This is the trimmed referrer. Comment on attachment 433431 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=433431&action=review r=me assuming the bots are happy. >>> Tools/TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm:79 >>> + checkReferer([NSURL URLWithString:longPath], "http://webkit.org/"); >> >> It is a bit confusing because this referrer is not > 4K. >> >> Also, it seems like this should be easily writable as a layout test? > > This is the trimmed referrer. Oh, I get it now. I would have liked if we had a layout test for this (as we can run in other browsers and other ports of WebKit). But technically, you have test coverage so r+. Comment on attachment 433431 [details]
Patch
The web platform tests have done that for me!
Committed r279886 (239638@main): <https://commits.webkit.org/239638@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 433431 [details]. |