[Webkit-unassigned] [Bug 214198] New: [iOS 14] Prompt for requestStorageAccess is broken in WKWebView

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 10 14:27:00 PDT 2020


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

            Bug ID: 214198
           Summary: [iOS 14] Prompt for requestStorageAccess is broken in
                    WKWebView
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit API
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ajuma at chromium.org
                CC: katherine_cheney at apple.com, rkgibson at google.com,
                    rohitrao at google.com, wilander at apple.com

Created attachment 404001

  --> https://bugs.webkit.org/attachment.cgi?id=404001&action=review

Test case

Testing on iOS 14 beta 2, I'm seeing the following broken behavior for the requestStorageAccess prompt in WKWebView:
1. On the simulator, clicking "Don't allow" or "Allow" does the opposite: "Don't allow" grants access while "Allow" denies it.
2. On device, in situations where the prompt should be shown, storage access is granted silently without displaying any prompt.

The behavior is correct in Safari, but broken in WKWebView (I'm testing using Chrome).

I've attached a test case that reproduces this bug:
1. First visit https://alijuma.github.io/request.html and click the button.
2. Visit the attached test page (which embeds the page above) and click the button, which triggers requestStorageAccess.

Expected behavior (and behavior in Safari): a prompt is shown, and clicking on "Allow" or "Don't allow" updates the displayed message to indicate whether the promise resolved or rejected.
Actual behavior in WKWebView: On simulator, the prompt is shown, but the buttons do the opposite of what they should. On device, no prompt is shown.

-- 
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/20200710/fa307b98/attachment-0001.htm>


More information about the webkit-unassigned mailing list