Title: [200119] trunk/Source
Revision
200119
Author
[email protected]
Date
2016-04-26 19:14:35 -0700 (Tue, 26 Apr 2016)

Log Message

Uncaught Exception: SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent.
https://bugs.webkit.org/show_bug.cgi?id=156991
<rdar://problem/25913475>

Patch by Joseph Pecoraro <[email protected]> on 2016-04-26
Reviewed by Timothy Hatcher.

Source/WebKit/mac:

* WebCoreSupport/WebInspectorClient.mm:
(-[WebInspectorWindowController init]):
Apply the same universal file access to WebKit1 Web Inspector views that
we apply to WebKit2 views. Explicitly always allow access to storage
for Web Inspector content just in case as we already allow universal
file access.

Source/WebKit2:

* UIProcess/mac/WebInspectorProxyMac.mm:
(WebKit::WebInspectorProxy::platformCreateInspectorPage):
Explicitly always allow access to storage for Web Inspector content just
in case, as we already allow universal file access.

Modified Paths

Diff

Modified: trunk/Source/WebKit/mac/ChangeLog (200118 => 200119)


--- trunk/Source/WebKit/mac/ChangeLog	2016-04-27 02:02:28 UTC (rev 200118)
+++ trunk/Source/WebKit/mac/ChangeLog	2016-04-27 02:14:35 UTC (rev 200119)
@@ -1,3 +1,18 @@
+2016-04-26  Joseph Pecoraro  <[email protected]>
+
+        Uncaught Exception: SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent.
+        https://bugs.webkit.org/show_bug.cgi?id=156991
+        <rdar://problem/25913475>
+
+        Reviewed by Timothy Hatcher.
+
+        * WebCoreSupport/WebInspectorClient.mm:
+        (-[WebInspectorWindowController init]):
+        Apply the same universal file access to WebKit1 Web Inspector views that
+        we apply to WebKit2 views. Explicitly always allow access to storage
+        for Web Inspector content just in case as we already allow universal
+        file access.
+
 2016-04-26  Beth Dakin  <[email protected]>
 
         Check to make sure shouldRequestCandidates() before requesting candidates

Modified: trunk/Source/WebKit/mac/WebCoreSupport/WebInspectorClient.mm (200118 => 200119)


--- trunk/Source/WebKit/mac/WebCoreSupport/WebInspectorClient.mm	2016-04-27 02:02:28 UTC (rev 200118)
+++ trunk/Source/WebKit/mac/WebCoreSupport/WebInspectorClient.mm	2016-04-27 02:14:35 UTC (rev 200119)
@@ -387,6 +387,9 @@
     [preferences setPlugInsEnabled:NO];
     [preferences setTabsToLinks:NO];
     [preferences setUserStyleSheetEnabled:NO];
+    [preferences setAllowFileAccessFromFileURLs:YES];
+    [preferences setAllowUniversalAccessFromFileURLs:YES];
+    [preferences setStorageBlockingPolicy:WebAllowAllStorage];
 
     _frontendWebView = [[WebView alloc] init];
     [_frontendWebView setPreferences:preferences];

Modified: trunk/Source/WebKit2/ChangeLog (200118 => 200119)


--- trunk/Source/WebKit2/ChangeLog	2016-04-27 02:02:28 UTC (rev 200118)
+++ trunk/Source/WebKit2/ChangeLog	2016-04-27 02:14:35 UTC (rev 200119)
@@ -1,3 +1,16 @@
+2016-04-26  Joseph Pecoraro  <[email protected]>
+
+        Uncaught Exception: SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent.
+        https://bugs.webkit.org/show_bug.cgi?id=156991
+        <rdar://problem/25913475>
+
+        Reviewed by Timothy Hatcher.
+
+        * UIProcess/mac/WebInspectorProxyMac.mm:
+        (WebKit::WebInspectorProxy::platformCreateInspectorPage):
+        Explicitly always allow access to storage for Web Inspector content just
+        in case, as we already allow universal file access.
+
 2016-04-26  Myles C. Maxfield  <[email protected]>
 
         [WK2] [OS X] Create API for switching RTL scrollbar policy

Modified: trunk/Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm (200118 => 200119)


--- trunk/Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm	2016-04-27 02:02:28 UTC (rev 200118)
+++ trunk/Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm	2016-04-27 02:14:35 UTC (rev 200119)
@@ -373,6 +373,7 @@
 #endif
     preferences._allowFileAccessFromFileURLs = YES;
     [configuration _setAllowUniversalAccessFromFileURLs:YES];
+    preferences._storageBlockingPolicy = _WKStorageBlockingPolicyAllowAll;
     preferences._javaScriptRuntimeFlags = 0;
     if (isUnderTest()) {
         preferences._hiddenPageDOMTimerThrottlingEnabled = NO;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to