Bug 164392 - SecurityError (DOM Exception 18): The operation is insecure - openDatabase / WebSQL
Summary: SecurityError (DOM Exception 18): The operation is insecure - openDatabase / ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Safari 10
Hardware: Unspecified iOS 10
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-03 18:07 PDT by zac spitzer
Modified: 2016-11-07 15:05 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zac spitzer 2016-11-03 18:07:53 PDT
Mobile Safari is randomly throwing this error on 10.0.2

https://stackoverflow.com/questions/39579598/operation-is-insecure-when-running-websql-in-xamarin-ios-webview
Comment 1 Brady Eidson 2016-11-05 11:13:28 PDT
This isn't random: As suggested in the stack overflow thread, this is almost certainly due to size usage.
Comment 2 zac spitzer 2016-11-06 21:50:01 PST
Hey Brady,

I'm familiar with the issues around size parameters with WebSQL
https://bugs.webkit.org/show_bug.cgi?id=163578

However, I'm seeing this error occurring using a standard size of 5000000, it's never been an issue until 10.0.2
Comment 3 zac spitzer 2016-11-07 02:10:36 PST
If it is related to size usage, it's a very confusing error message
Comment 4 Brady Eidson 2016-11-07 09:03:19 PST
(In reply to comment #2)
> Hey Brady,
> 
> I'm familiar with the issues around size parameters with WebSQL
> https://bugs.webkit.org/show_bug.cgi?id=163578
> 
> However, I'm seeing this error occurring using a standard size of 5000000,
> it's never been an issue until 10.0.2

I'm not talking about the expected size parameter - I'm taking about actual usage.

(In reply to comment #3)
> If it is related to size usage, it's a very confusing error message

Definitely not defending the error message!
Comment 5 zac spitzer 2016-11-07 15:05:13 PST
Could you elaborate on what do you mean by usage, an INSERT? I'm only seeing the crash being thrown on openDatabase?