PhoneGap iOS + DOM异常18 [英] PhoneGap iOS + DOM Exception 18

查看:223
本文介绍了PhoneGap iOS + DOM异常18的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要一个window.onerrorSECURITY_ERR:DOM异常18:试图突破用户代理的安全策略。每次我加载我的iOS PhoneGap应用程序。应用程序使用本地存储和webSQL。我已经隔离了这个错误,当我打开我的数据库使用:db = window.openDatabase(db,1.0,测试DB,1000000);

I'm going a window.onerror "SECURITY_ERR: DOM Exception 18: An attempt was made to break through the security policy of the user agent." Each time I load my iOS PhoneGap app. THe app uses local storage and webSQL. I have isolated this error to be throw when I open my db using: db = window.openDatabase("db", "1.0", "Test DB", 1000000);

我没有这个问题,我的代码没有改变 - 这只是从现在出来。我一直在查看iOS 5.1网络视图存储错误,并担心它可能是相关的。

I haven't had this issue before and my code hasn't changed - this just came out of now where. I've been looking at the iOS 5.1 web view storage bugs and fear it may be related.

帮助?

推荐答案

这是苹果在iOS 5.1中的一个错误。在这里PhoneGap / Cordova问题跟踪器的详细信息: https://issues.apache.org/jira/browse/CB- 347

It's a confirmed Apple bug in iOS 5.1. Details here in this PhoneGap/Cordova issue tracker: https://issues.apache.org/jira/browse/CB-347

这篇关于PhoneGap iOS + DOM异常18的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆