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).
Created attachment 390208 [details] Patch
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.
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.
Created attachment 390235 [details] Patch
Comment on attachment 390235 [details] Patch Clearing flags on attachment: 390235 Committed r256166: <https://trac.webkit.org/changeset/256166>
All reviewed patches have been landed. Closing bug.
<rdar://problem/59308698>
This broke our API. See https://bugs.webkit.org/show_bug.cgi?id=213626