Updated Branches:
  refs/heads/master 3258beeca -> 650e5414e

[ios] Change the default bridge mode to XHR_NO_PAYLOAD.

There is a report of XHR_WITH_PAYLOAD crashing, so disabling it for the
2.1.0 release.

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/650e5414
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/650e5414
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/650e5414

Branch: refs/heads/master
Commit: 650e5414e77ed77095fdf6ab2acac480d8489f74
Parents: 3258bee
Author: Andrew Grieve <agri...@chromium.org>
Authored: Mon Sep 10 15:28:23 2012 -0400
Committer: Andrew Grieve <agri...@chromium.org>
Committed: Mon Sep 10 15:28:23 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/650e5414/lib/ios/exec.js
----------------------------------------------------------------------
diff --git a/lib/ios/exec.js b/lib/ios/exec.js
index 10d33cf..9a507fb 100644
--- a/lib/ios/exec.js
+++ b/lib/ios/exec.js
@@ -17,7 +17,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_OPTIONAL_PAYLOAD : jsToNativeModes.IFRAME_NAV,
+    bridgeMode = navigator.userAgent.indexOf(' 4_') == -1 ? 
jsToNativeModes.XHR_NO_PAYLOAD : jsToNativeModes.IFRAME_NAV,
     execIframe,
     execXhr;
 

Reply via email to