You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2012/09/25 19:11:35 UTC
js commit: [ios] Change default bridge from XHR_NO_PAYLOAD to
XHR_OPTIONAL_PAYLOAD
Updated Branches:
refs/heads/master 533c707ee -> 05cffae81
[ios] Change default bridge from XHR_NO_PAYLOAD to XHR_OPTIONAL_PAYLOAD
Relevant crash bug is now (hopefully) fixed:
https://issues.apache.org/jira/browse/CB-1404
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/05cffae8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/05cffae8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/05cffae8
Branch: refs/heads/master
Commit: 05cffae81404b6b79b48ce55f1047474ac21e25b
Parents: 533c707
Author: Andrew Grieve <ag...@chromium.org>
Authored: Tue Sep 25 13:10:37 2012 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Tue Sep 25 13:10:37 2012 -0400
----------------------------------------------------------------------
lib/ios/exec.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/05cffae8/lib/ios/exec.js
----------------------------------------------------------------------
diff --git a/lib/ios/exec.js b/lib/ios/exec.js
index 6635c0b..acd5873 100644
--- a/lib/ios/exec.js
+++ b/lib/ios/exec.js
@@ -38,7 +38,7 @@ var cordova = require('cordova'),
// XHR mode does not work on iOS 4.2, so default to IFRAME_NAV for such devices.
// XHR mode's main advantage is working around a bug in -webkit-scroll, which
// doesn't exist in 4.X devices anyways.
- bridgeMode = navigator.userAgent.indexOf(' 4_') == -1 ? jsToNativeModes.XHR_NO_PAYLOAD : jsToNativeModes.IFRAME_NAV,
+ bridgeMode = navigator.userAgent.indexOf(' 4_') == -1 ? jsToNativeModes.XHR_OPTIONAL_PAYLOAD : jsToNativeModes.IFRAME_NAV,
execIframe,
execXhr;