openDatabase throws error SECURITY_ERR: DOM Exception 18

Davin McCoud's Avatar

Davin McCoud

02 Oct, 2012 04:37 PM

The Electric Plum website says the emulators support Web SQL and the iPhone and iPad configurations have an "HTML 5 Databases" option for Web SQL and IndexedDB APIs. When trying to use openDatabase the error SECURITY_ERR: DOM Exception 18 is thrown. For example calling

var Mydb = openDatabase('mydb', '1.0', 'my first database', 2 * 1024 * 1024);

shows Uncaught Error: SECURITY_ERR: DOM Exception 18 in the developer tools console.

What must be changed to make this work?

Thank you.

  1. Support Staff 1 Posted by Shaun Sullivan on 02 Oct, 2012 05:27 PM

    Shaun Sullivan's Avatar

    Hi we have a bug in settings. It is doing the opposite of the "HTML5 Databases" setting :(

    For now, you should be able to work around that by un-checking that setting.

    Sorry about that, we'll be sure to fix it in the next update.

  2. 2 Posted by Davin McCoud on 02 Oct, 2012 06:40 PM

    Davin McCoud's Avatar

    Thank you. Turning the setting off worked for now.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

30 Jun, 2022 03:05 PM
02 Nov, 2021 04:52 AM
16 Oct, 2021 02:38 PM
06 Oct, 2021 05:12 AM
20 Sep, 2021 04:14 PM