You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2013/01/10 00:14:12 UTC

[jira] [Commented] (CB-1930) window.openDatabase() throws exception 18 on iOS

    [ https://issues.apache.org/jira/browse/CB-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13549168#comment-13549168 ] 

Shazron Abdullah commented on CB-1930:
--------------------------------------

Confirmed (tested with 2.3.0)
                
> window.openDatabase() throws exception 18 on iOS
> ------------------------------------------------
>
>                 Key: CB-1930
>                 URL: https://issues.apache.org/jira/browse/CB-1930
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0, 2.2.0
>         Environment: iOS 5.1, iOS 6.0, iOS Simulator 6.0
>            Reporter: Mikhail Kadan
>            Assignee: Shazron Abdullah
>             Fix For: 2.4.0
>
>         Attachments: sample.zip
>
>
> 1. Initialize your rootViewController in AppDelegate with some simple UIViewController that shows e.g. "Continue" button.
> 2. By pressing this button MainViewController : CDVViewController is set to rootViewController and PhoneGap app works as usual.
> 3. PhoneGap app calls window.openDatabase().
> Everything is ok for the moment.
> But if you add a step after 1 and before 2 - Press Home button to go to iOS home screen and then press app icon to return to app.
> Then step 3 will fail with "Security_ERR: DOM Exception 18". It'll be impossible to use WebSQL is this case, but window.localStorage works ok.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira