[Webkit-unassigned] [Bug 178601] New: Make setStorageBlockingPolicy a public API

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 20 13:05:15 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=178601

            Bug ID: 178601
           Summary: Make setStorageBlockingPolicy a public API
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dasau at microsoft.com

Third party content we load in WKWebView has a dependency of being able to use localStorage from an iframe. Currently, WKWebView is configured to isolate iframe localStorage, data is not able to be shared between the iframe and the same domain loaded in a main frame from another instance of WKWebView. WebView did not have this policy, the same site we load in WebView is working and able to share localStorage between the iframe and main frame of same domain. Safari in Sierra had "Cookies and website data" setting configurable to allow iframes to access localStorage, but it looks like in High Sierra this setting was removed and localStorage works by default in iframes. WKWebView still defaults to block the iframe storage in High Sierra, we should be able to configure it. This setting causes issue, as no other browser implements it. You can have a site work in Chrome/IE/Firefox but not work in WKWebView due to this.

typedef NS_ENUM(NSInteger, _WKStorageBlockingPolicy) {
    _WKStorageBlockingPolicyAllowAll,
    _WKStorageBlockingPolicyBlockThirdParty,
    _WKStorageBlockingPolicyBlockAll,
} WK_API_AVAILABLE(macosx(10.10), ios(8.0));

@interface WKPreferences (WKPrivate)

@property (nonatomic, setter=_setStorageBlockingPolicy:) _WKStorageBlockingPolicy _storageBlockingPolicy;

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171020/1eadad52/attachment.html>


More information about the webkit-unassigned mailing list