cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-1930) window.openDatabase() throws exception 18 on iOS
Date Wed, 09 Jan 2013 23:32:13 GMT

     [ https://issues.apache.org/jira/browse/CB-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shazron Abdullah resolved CB-1930.
----------------------------------

    Resolution: Won't Fix

My conclusion is this is an iOS 6 thing, not a Cordova issue.

I commented out any of our web storage backup code, and put breakpoints just in case to our
CDVLocalStorage plugin (they never get hit). I also removed the cordova.js from the index.html,
and set a timeout of 3s on the window.openDatabase call. 

Removing those items still results in the problem you are seeing.
                
> 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

Mime
View raw message