Bug 156322

Summary: Treat CSP level 2 connect-src violations as network errors
Product: WebKit Reporter: John Wilander <wilander>
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: beidson, bfulgham, dbates, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=153598

Description John Wilander 2016-04-06 17:14:32 PDT
As Alex Christensen points out in https://bugs.webkit.org/show_bug.cgi?id=153598#c27, we should fire an error event and not throw an exception for asynchronous requests that violate CSP. For synchronous events we should throw a NetworkError.

The details can be found here:
https://www.w3.org/TR/XMLHttpRequest/#network-error
Comment 1 Radar WebKit Bug Importer 2016-05-27 12:09:18 PDT
<rdar://problem/26522382>
Comment 2 John Wilander 2016-07-14 17:43:21 PDT
This was eventually addressed in https://trac.webkit.org/changeset/199221 which is the patch for https://bugs.webkit.org/show_bug.cgi?id=153598.