Bug 164392

Summary: SecurityError (DOM Exception 18): The operation is insecure - openDatabase / WebSQL
Product: WebKit Reporter: zac spitzer <zac.spitzer>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: beidson, bfulgham
Priority: P2    
Version: Safari 10   
Hardware: Unspecified   
OS: iOS 10   

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?
Comment 6 Brent Fulgham 2024-03-05 13:14:09 PST
We have removed WebSQL as a feature. We won't make further improvements to it.