Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 29
Registered: ‎04-01-2013
My Device: Z10
Accepted Solution

openDatabase and 10.1 results in SECURITY_ERR

[ Edited ]

I just upgraded my phone to 10.1 and now when I run my phonegap/webworks app, it gives me an error when I try to openDatabase.

 

SECURITY_ERR: DOM Exception 18: An attempt was made to break through the security policy of the user agent.

Developer
Posts: 29
Registered: ‎04-01-2013
My Device: Z10

Re: openDatabase and 10.1 results in SECURITY_ERR

[ Edited ]

I should note that it worked fine previously on 10.0

Developer
Posts: 29
Registered: ‎04-01-2013
My Device: Z10

Re: openDatabase and 10.1 results in SECURITY_ERR

Anyone? Is there a new security permission I need to request before I can use WebSQL?

BlackBerry Development Advisor
Posts: 165
Registered: ‎09-24-2012
My Device: Passport

Re: openDatabase and 10.1 results in SECURITY_ERR

Hi Jeff,

 

I've pasted the final example at the following URL: http://www.tutorialspoint.com/html5/html5_web_sql.htm into a WebWorks App and it works. Can you try on yours please?

 

If this fails please provide the software version of your device so I can attempt to reproduce.

Also, try hosting the above page on a Web Server and access using the browser of the device - do you get the same result?

 

Thanks.

Developer
Posts: 29
Registered: ‎04-01-2013
My Device: Z10

Re: openDatabase and 10.1 results in SECURITY_ERR

Hi,

 

I've come back to working on the BB10 app again, and I am still getting this error as seen in my other thread (I forgot I had already created this one...)

 

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/BB10-2-with-Cordova-3-2-0-giving...