[Webkit-unassigned] [Bug 137760] New: WKWebView: openDatabase results in DOM Exception 18

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 15 17:47:53 PDT 2014


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

           Summary: WKWebView: openDatabase results in DOM Exception 18
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: iOS
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: nolan at nolanlawson.com


Within a WKWebView on iOS 8 (12A366), simply run some minimal openDatabase code:

    openDatabase('mydatabase', 1, 'mydatabase', 5000000, function (db) { console.log('it works!'); });

This results in the following error:

    Error: SecurityError: DOM Exception 18

I can understand that you might not want to enable Web SQL by default, but it seems from the WebKit Framework Reference [1] that there's no way to enable it.

Would it make sense to have an option on the WKPreferences [2] such as `databaseEnabled`? In Android, such an option is available on the WebSettings object [3] so that developers have a workaround for the DOM Exception 18 error.

Thanks!

[1]: https://developer.apple.com/library/ios/documentation/Cocoa/Reference/WebKit/ObjC_classic/index.html
[2]: https://developer.apple.com/library/ios/documentation/WebKit/Reference/WKPreferences_Ref/index.html
[3]: https://developer.android.com/reference/android/webkit/WebSettings.html#setDatabaseEnabled%28boolean%29

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list