RESOLVED FIXED 207441
Remove setHTTPAccept call for main resources
https://bugs.webkit.org/show_bug.cgi?id=207441
Summary Remove setHTTPAccept call for main resources
Rob Buis
Reported 2020-02-09 10:51:49 PST
Remove setHTTPAccept call for main resources since all main resource loading goes through CachedResourceLoader, which sets the Accept header as specified in: https://fetch.spec.whatwg.org/#fetching (Step 1.3).
Attachments
Patch (1.81 KB, patch)
2020-02-09 10:54 PST, Rob Buis
no flags
Patch (3.81 KB, patch)
2020-02-10 00:29 PST, Rob Buis
no flags
Rob Buis
Comment 1 2020-02-09 10:54:57 PST
Darin Adler
Comment 2 2020-02-09 19:59:58 PST
Comment on attachment 390208 [details] Patch This leaves us with the ResourceRequestBase::httpAccept(), ResourceRequestBase::setHTTPAccept() and ResourceRequestBase::clearHTTPAccept() functions in ResourceRequestBase all unused. Lets remove those functions.
Darin Adler
Comment 3 2020-02-09 20:00:35 PST
Comment on attachment 390208 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=390208&action=review > Source/WebCore/ChangeLog:12 > + No test since no change in behavior. It would be worth pointing out which tests check the accept header for main resource loads, since those are the tests that prove there is no change in behavior.
Rob Buis
Comment 4 2020-02-10 00:29:17 PST
WebKit Commit Bot
Comment 5 2020-02-10 06:01:24 PST
Comment on attachment 390235 [details] Patch Clearing flags on attachment: 390235 Committed r256166: <https://trac.webkit.org/changeset/256166>
WebKit Commit Bot
Comment 6 2020-02-10 06:01:26 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7 2020-02-10 06:02:15 PST
Alex Christensen
Comment 8 2020-06-25 16:37:36 PDT
Note You need to log in before you can comment on or make changes to this bug.