[Webkit-unassigned] [Bug 156651] WkWebview: calling localStorage.getItem() results in Uncaught Exception: SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Apr 17 08:48:05 PDT 2016


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

--- Comment #18 from Michael Catanzaro <mcatanzaro at igalia.com> ---
Comment on attachment 276579
  --> https://bugs.webkit.org/attachment.cgi?id=276579
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=276579&action=review

Please look under Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitSettings.cpp, and add a test at the bottom of testWebKitSettings just to make sure changing the value of the setting actually works. You can just copy the test for AllowFileAccessFromFileURLs and change the name of the setting.

Anyway, this looks good to me; I presume you've tested and confirmed it solves your problem. This requires approval from another GTK+ reviewer as it adds new API, though, and from Carlos specifically as the Since tags assume a backport to 2.12.2.

> Source/WebKit2/ChangeLog:7
> +

You should add your commit message here, underneath the reviewed by line, then it will get added to the SVN commit message.

> Source/WebKit2/UIProcess/API/gtk/WebKitSettings.cpp:1268
> +            _("Allow local storage access from the context of file scheme URLs"),

Maybe we should say "Allow universal access" here, in case the setting is overloaded for something other than local storage in the future (or if that already is the case).

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


More information about the webkit-unassigned mailing list