Add test to verify _WKCustomHeaderFields is used with HTTP requests
Created attachment 425428 [details] Patch
Created attachment 425438 [details] Patch
Created attachment 425449 [details] Patch
Comment on attachment 425449 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=425449&action=review > Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:1196 > + NSString *string = [NSString stringWithFormat:@"<script>function bodyloaded(){fetch('%@',{mode:'no-cors'}).then(()=>{alert('loaded')}).catch((e)=>{alert('caught '+e)})}</script><body onload='bodyloaded()'/>", server.request().URL]; Would be interesting to do it with CORS so that: - injecting this custom header does not trigger preflight requests for all CORS requests - ensuring preflight requests get that header
<rdar://problem/76660315>