[
https://issues.apache.org/jira/browse/CB-3180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13769078#comment-13769078
]
Shingo Toda commented on CB-3180:
---------------------------------
Also even when the same device and Android version are used, I got a different
result (which WebSQL or plugin is used).
I observed this on a physical device with Android 4.0.4
* When I run manual mobile-spec test (assets/www/sql/index.html), WebSQL is
consistently used.
* When I run my customized mobile-spec test, plugin is consistently used
(source code below).
{code}
it("fj.storage.1 window.openDatabase() method should
return a Database object", function() {
var db = window.openDatabase('MobileSpec',
'1.0', 'CordovaMobileSpec', 1000000);
//var db = openDatabase('MobileSpec', '1.0',
'CordovaMobileSpec', 1000000);
expect(db).not.toBe(null);
expect(db.transaction).toBeDefined();
expect(typeof
db.transaction.valueOf()).toBe('function');
expect(db.changeVersion).toBeDefined(); //
fail if plugin is used
expect(typeof
db.changeVersion.valueOf()).toBe('function'); // fail if plugin is used
});
{code}
I don't know what is a key factor for SECURITY_ERR to be thrown. I would like
to know it if anyone understand it.
> windows.openDatabase returns invalid object on Android >= 4.0
> -------------------------------------------------------------
>
> Key: CB-3180
> URL: https://issues.apache.org/jira/browse/CB-3180
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 2.6.0
> Reporter: Kirill Pugin
> Fix For: 3.2.0
>
>
> After upgrading form cordova 2.5 to cordova 2.6 application stopped working
> properly on android sdk >= 4.0.
> After some investigation we found out that window.opendDatabase method
> returns object with only one method "transaction", but on SDK < 4.0 it also
> has "version", "changeVersion".
--
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