You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Joseph Farfel (JIRA)" <ji...@apache.org> on 2012/09/15 23:13:07 UTC
[jira] [Created] (CB-1476) Failed to load resource:
file:///!gap_exec
Joseph Farfel created CB-1476:
---------------------------------
Summary: Failed to load resource: file:///!gap_exec
Key: CB-1476
URL: https://issues.apache.org/jira/browse/CB-1476
Project: Apache Cordova
Issue Type: Bug
Components: iOS
Affects Versions: 2.1.0
Environment: iOS 6 GM, Safari 6 Web Inspector
Reporter: Joseph Farfel
Assignee: Shazron Abdullah
Whenever I run cordova.exec with an empty command queue, I get this error in the new iOS 6 Web Inspector in Safari:
{color:red}file:///!gap_exec Failed to load resource: The requested URL was not found on this server.{color}
It's caused by this XMLHttpRequest:
{code:title=cordova-2.1.0.js (line 974)}
execXhr.open('HEAD', "file:///!gap_exec", true);
{code}
Looks like the Obj-C code hears this request as a signal to begin executing the command queue, but it doesn't return a success response, so Web Inspector complains about not being able to load the resource.
It doesn't seem to affect functionality, but it sure is annoying to have all those "failed to load resource" errors in the console.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CB-1476) Failed to load resource:
file:///!gap_exec
Posted by "Andrew Grieve (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Grieve resolved CB-1476.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.2.0
I changed the bridge so that the XHRs do not fail:
https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=commit;h=ca0cb89150eaeaa0246981f131acd495794235de
This is 20% slower than failing request, but I agree that having it spam the console log is a big deal. I think the speed still falls within the "good enough" category, and if bridge speed is critical to an app, they should use the iframe bridge anyways.
> Failed to load resource: file:///!gap_exec
> ------------------------------------------
>
> Key: CB-1476
> URL: https://issues.apache.org/jira/browse/CB-1476
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.1.0
> Environment: iOS 6 GM, Safari 6 Web Inspector
> Reporter: Joseph Farfel
> Assignee: Andrew Grieve
> Priority: Minor
> Labels: safari, web-inspector
> Fix For: 2.2.0
>
>
> Whenever I run cordova.exec with an empty command queue, I get this error in the new iOS 6 Web Inspector in Safari:
> {color:red}file:///!gap_exec Failed to load resource: The requested URL was not found on this server.{color}
> It's caused by this XMLHttpRequest:
> {code:title=cordova-2.1.0.js (line 974)}
> execXhr.open('HEAD', "file:///!gap_exec", true);
> {code}
> Looks like the Obj-C code hears this request as a signal to begin executing the command queue, but it doesn't return a success response, so Web Inspector complains about not being able to load the resource.
> It doesn't seem to affect functionality, but it sure is annoying to have all those "failed to load resource" errors in the console.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CB-1476) Failed to load resource:
file:///!gap_exec
Posted by "Andrew Grieve (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Grieve reassigned CB-1476:
---------------------------------
Assignee: Andrew Grieve (was: Shazron Abdullah)
> Failed to load resource: file:///!gap_exec
> ------------------------------------------
>
> Key: CB-1476
> URL: https://issues.apache.org/jira/browse/CB-1476
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.1.0
> Environment: iOS 6 GM, Safari 6 Web Inspector
> Reporter: Joseph Farfel
> Assignee: Andrew Grieve
> Labels: safari, web-inspector
>
> Whenever I run cordova.exec with an empty command queue, I get this error in the new iOS 6 Web Inspector in Safari:
> {color:red}file:///!gap_exec Failed to load resource: The requested URL was not found on this server.{color}
> It's caused by this XMLHttpRequest:
> {code:title=cordova-2.1.0.js (line 974)}
> execXhr.open('HEAD', "file:///!gap_exec", true);
> {code}
> Looks like the Obj-C code hears this request as a signal to begin executing the command queue, but it doesn't return a success response, so Web Inspector complains about not being able to load the resource.
> It doesn't seem to affect functionality, but it sure is annoying to have all those "failed to load resource" errors in the console.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-1476) Failed to load resource:
file:///!gap_exec
Posted by "Andrew Grieve (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Grieve updated CB-1476:
------------------------------
Priority: Minor (was: Major)
> Failed to load resource: file:///!gap_exec
> ------------------------------------------
>
> Key: CB-1476
> URL: https://issues.apache.org/jira/browse/CB-1476
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.1.0
> Environment: iOS 6 GM, Safari 6 Web Inspector
> Reporter: Joseph Farfel
> Assignee: Andrew Grieve
> Priority: Minor
> Labels: safari, web-inspector
>
> Whenever I run cordova.exec with an empty command queue, I get this error in the new iOS 6 Web Inspector in Safari:
> {color:red}file:///!gap_exec Failed to load resource: The requested URL was not found on this server.{color}
> It's caused by this XMLHttpRequest:
> {code:title=cordova-2.1.0.js (line 974)}
> execXhr.open('HEAD', "file:///!gap_exec", true);
> {code}
> Looks like the Obj-C code hears this request as a signal to begin executing the command queue, but it doesn't return a success response, so Web Inspector complains about not being able to load the resource.
> It doesn't seem to affect functionality, but it sure is annoying to have all those "failed to load resource" errors in the console.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1476) Failed to load resource:
file:///!gap_exec
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460720#comment-13460720 ]
Shazron Abdullah commented on CB-1476:
--------------------------------------
Agree - the LocalFileSystem thing should be a separate issue.
Docs:
https://github.com/apache/incubator-cordova-ios/blob/master/guides/Changing%20the%20JavaScript%20to%20Native%20Bridge%20Mode.md
> Failed to load resource: file:///!gap_exec
> ------------------------------------------
>
> Key: CB-1476
> URL: https://issues.apache.org/jira/browse/CB-1476
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.1.0
> Environment: iOS 6 GM, Safari 6 Web Inspector
> Reporter: Joseph Farfel
> Assignee: Andrew Grieve
> Priority: Minor
> Labels: safari, web-inspector
>
> Whenever I run cordova.exec with an empty command queue, I get this error in the new iOS 6 Web Inspector in Safari:
> {color:red}file:///!gap_exec Failed to load resource: The requested URL was not found on this server.{color}
> It's caused by this XMLHttpRequest:
> {code:title=cordova-2.1.0.js (line 974)}
> execXhr.open('HEAD', "file:///!gap_exec", true);
> {code}
> Looks like the Obj-C code hears this request as a signal to begin executing the command queue, but it doesn't return a success response, so Web Inspector complains about not being able to load the resource.
> It doesn't seem to affect functionality, but it sure is annoying to have all those "failed to load resource" errors in the console.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1476) Failed to load resource:
file:///!gap_exec
Posted by "Renso Vargas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460203#comment-13460203 ]
Renso Vargas commented on CB-1476:
----------------------------------
Hi,
It seems this issue is affecting the plugins functionality, LocalFilesSystem is not working in ios6 and the only error being thrown in the remote debugger is:
file:///!gap_exec Failed to load resource: The requested URL was not found on this server.
I suggest this should have a higher priority considering that ios6 is now officially released.
> Failed to load resource: file:///!gap_exec
> ------------------------------------------
>
> Key: CB-1476
> URL: https://issues.apache.org/jira/browse/CB-1476
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.1.0
> Environment: iOS 6 GM, Safari 6 Web Inspector
> Reporter: Joseph Farfel
> Assignee: Andrew Grieve
> Priority: Minor
> Labels: safari, web-inspector
>
> Whenever I run cordova.exec with an empty command queue, I get this error in the new iOS 6 Web Inspector in Safari:
> {color:red}file:///!gap_exec Failed to load resource: The requested URL was not found on this server.{color}
> It's caused by this XMLHttpRequest:
> {code:title=cordova-2.1.0.js (line 974)}
> execXhr.open('HEAD', "file:///!gap_exec", true);
> {code}
> Looks like the Obj-C code hears this request as a signal to begin executing the command queue, but it doesn't return a success response, so Web Inspector complains about not being able to load the resource.
> It doesn't seem to affect functionality, but it sure is annoying to have all those "failed to load resource" errors in the console.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1476) Failed to load resource:
file:///!gap_exec
Posted by "Andrew Grieve (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460542#comment-13460542 ]
Andrew Grieve commented on CB-1476:
-----------------------------------
You can still try out the iframe-based bridge by adding:
var exec = cordova.require('cordova/exec');
exec.setJsToNativeBridgeMode(exec.jsToNativeModes.IFRAME_NAV);
I suspect the LocalFileSystem not working is separate from this issue, and should be filed as a separate bug (repro steps, expected, actual)
> Failed to load resource: file:///!gap_exec
> ------------------------------------------
>
> Key: CB-1476
> URL: https://issues.apache.org/jira/browse/CB-1476
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.1.0
> Environment: iOS 6 GM, Safari 6 Web Inspector
> Reporter: Joseph Farfel
> Assignee: Andrew Grieve
> Priority: Minor
> Labels: safari, web-inspector
>
> Whenever I run cordova.exec with an empty command queue, I get this error in the new iOS 6 Web Inspector in Safari:
> {color:red}file:///!gap_exec Failed to load resource: The requested URL was not found on this server.{color}
> It's caused by this XMLHttpRequest:
> {code:title=cordova-2.1.0.js (line 974)}
> execXhr.open('HEAD', "file:///!gap_exec", true);
> {code}
> Looks like the Obj-C code hears this request as a signal to begin executing the command queue, but it doesn't return a success response, so Web Inspector complains about not being able to load the resource.
> It doesn't seem to affect functionality, but it sure is annoying to have all those "failed to load resource" errors in the console.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira