incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject js commit: [ios] Fix XHR exec bridge not working for non-file host pages.
Date Tue, 25 Sep 2012 16:50:12 GMT
Updated Branches:
  refs/heads/master 34c8aa242 -> de45f5d2a


[ios] Fix XHR exec bridge not working for non-file host pages.

Fixes issue https://issues.apache.org/jira/browse/CB-1525


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

Branch: refs/heads/master
Commit: de45f5d2a70ce90b8e2219f5874e945db8337e55
Parents: 34c8aa2
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Tue Sep 25 12:49:27 2012 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Sep 25 12:49:27 2012 -0400

----------------------------------------------------------------------
 lib/ios/exec.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/de45f5d2/lib/ios/exec.js
----------------------------------------------------------------------
diff --git a/lib/ios/exec.js b/lib/ios/exec.js
index 5d91540..1759ecc 100644
--- a/lib/ios/exec.js
+++ b/lib/ios/exec.js
@@ -116,9 +116,9 @@ function iOSExec() {
     if (cordova.commandQueue.length == 1 && !cordova.commandQueueFlushing) {
         if (bridgeMode) {
             execXhr = execXhr || new XMLHttpRequest();
-            // Changeing this to a GET will make the XHR reach the URIProtocol on 4.2.
+            // Changing this to a GET will make the XHR reach the URIProtocol on 4.2.
             // For some reason it still doesn't work though...
-            execXhr.open('HEAD', "file:///!gap_exec", true);
+            execXhr.open('HEAD', "/!gap_exec", true);
             execXhr.setRequestHeader('vc', cordova.iOSVCAddr);
             if (shouldBundleCommandJson()) {
                 execXhr.setRequestHeader('cmds', nativecomm());


Mime
View raw message