Changeset 200119 in webkit


Ignore:
Timestamp:
Apr 26, 2016 7:14:35 PM (8 years ago)
Author:
commit-queue@webkit.org
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 <Joseph Pecoraro> 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.

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/mac/ChangeLog

    r200106 r200119  
     12016-04-26  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Uncaught Exception: SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent.
     4        https://bugs.webkit.org/show_bug.cgi?id=156991
     5        <rdar://problem/25913475>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        * WebCoreSupport/WebInspectorClient.mm:
     10        (-[WebInspectorWindowController init]):
     11        Apply the same universal file access to WebKit1 Web Inspector views that
     12        we apply to WebKit2 views. Explicitly always allow access to storage
     13        for Web Inspector content just in case as we already allow universal
     14        file access.
     15
    1162016-04-26  Beth Dakin  <bdakin@apple.com>
    217
  • trunk/Source/WebKit/mac/WebCoreSupport/WebInspectorClient.mm

    r197791 r200119  
    388388    [preferences setTabsToLinks:NO];
    389389    [preferences setUserStyleSheetEnabled:NO];
     390    [preferences setAllowFileAccessFromFileURLs:YES];
     391    [preferences setAllowUniversalAccessFromFileURLs:YES];
     392    [preferences setStorageBlockingPolicy:WebAllowAllStorage];
    390393
    391394    _frontendWebView = [[WebView alloc] init];
  • trunk/Source/WebKit2/ChangeLog

    r200116 r200119  
     12016-04-26  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Uncaught Exception: SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent.
     4        https://bugs.webkit.org/show_bug.cgi?id=156991
     5        <rdar://problem/25913475>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        * UIProcess/mac/WebInspectorProxyMac.mm:
     10        (WebKit::WebInspectorProxy::platformCreateInspectorPage):
     11        Explicitly always allow access to storage for Web Inspector content just
     12        in case, as we already allow universal file access.
     13
    1142016-04-26  Myles C. Maxfield  <mmaxfield@apple.com>
    215
  • trunk/Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm

    r199395 r200119  
    374374    preferences._allowFileAccessFromFileURLs = YES;
    375375    [configuration _setAllowUniversalAccessFromFileURLs:YES];
     376    preferences._storageBlockingPolicy = _WKStorageBlockingPolicyAllowAll;
    376377    preferences._javaScriptRuntimeFlags = 0;
    377378    if (isUnderTest()) {
Note: See TracChangeset for help on using the changeset viewer.