I develop application it's apk is working fine in Android 2.3.3, But same apk is not working in Android 4.0 and above it show the flowing error "security error dom exception 18" when this code run
try {
if (window.openDatabase) {
var dbSales=openDatabase('goSales','1.0','SalesDB','5*1024*1024');
if (!dbSales)
alert("Failed to open the database on disk. This is probably because the version was bad or there is not enough space left in this domain's quota");
} else
alert("Couldn't open the database. Please try with a WebKit nightly with this feature enabled");
} catch(err) {
alert(err); //Here i got Security error Dom Exception 18
alert("Couldn't open the database. Please try with a WebKit nightly with this feature enabled");
}