[
https://issues.apache.org/jira/browse/CB-10250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15095766#comment-15095766
]
vB Results, LLC. edited comment on CB-10250 at 1/13/16 7:36 AM:
----------------------------------------------------------------
[~jcesarmobile] Reproduced on iPad again. Same with cordova-ios 4.0.0 and
4.0.1.
Install this app, which has the problem:
https://itunes.apple.com/us/app/business-advice-forum/id1060344371?mt=8
Tap links very quickly, before the page finishes loading, and you will
eventually trigger the error.
You only have to trigger this once. And when you do, the infinite loop starts
and the app is hosed.
Didn't have this issue when I had the <content /> url set to index.html which
redirected to the site.
The reason we can't keep using a local content url and redirect is that because
that breaks our plugins.
That's another situation, though. This is definitely a critical, showstopping
bug.
Someone reported something identical:
stackoverflow.com/questions/13860401/ignoring-nsurlerrordomain-error-999-does-not-work-in-uiwebview
Apparently error -999 needs special code or the existing implementation is
somehow broken and throwing it into an infinite loop.
was (Author: vbresults):
[~jcesarmobile] Reproduced on iPad again. Same with cordova-ios 4.0.0 and
4.0.1.
Install this app, which has the problem:
https://itunes.apple.com/us/app/business-advice-forum/id1060344371?mt=8
Tap links very quickly, before the page finishes loading, and you will
eventually trigger the error.
You only have to trigger this once. And when you do, the infinite loop starts
and the app is hosed.
Didn't have this issue when I had the <content /> url set to index.html which
redirected to the site.
The reason we can't keep using a local content url and redirect is that because
that breaks our plugins.
That's another situation, though. This is definitely a critical, showstopping
bug.
> "NSURLErrorDomain error -999" Infinite Loop Breaks Remote Sites
> ---------------------------------------------------------------
>
> Key: CB-10250
> URL: https://issues.apache.org/jira/browse/CB-10250
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Environment: iOS 9.2
> iPad 2 Emulator
> cordova-ios 4.0.1
> Reporter: vB Results, LLC.
> Priority: Blocker
> Labels: triaged
>
> Whenever I tap a link on a remote site I get the following errors looping
> infinitely in the XCode console when running the emulator.
> The page itself then becomes unresponsive to anything but scrolling, tapping
> a link will underline the link but nothing happens.
> "2015-12-22 21:28:51.931 My Project[50066:507275] Failed to load webpage with
> error: The operation couldn’t be completed. (NSURLErrorDomain error -999.)
> 2015-12-22 21:28:51.932 My Project[50066:507275]
> file:///Users/user900330/Library/Developer/CoreSimulator/Devices/DBFAD775-E311-4A18-BA8A-D5F376404977/data/Containers/Bundle/Application/82A8E42A-397E-4B8B-B609-6FCD6A2D4AAF/My%20Project.app/www/index.html?error=Failed%20to%20load%20webpage%20with%20error:%20The%20operation%20couldn%E2%80%99t%20be%20completed.%20(NSURLErrorDomain%20error%20-999.)
> 2015-12-22 21:28:51.932 My Project[50066:507275] Resetting plugins due to
> page load.
> 2015-12-22 21:28:51.934 My Project[50066:507275] Failed to load webpage with
> error: The operation couldn’t be completed. (NSURLErrorDomain error -999.)"
> Relevant entries in config.xml:
> <content src="http://www.example.com/page.php" />
> <allow-navigation href="*" />
> <access origin="*" />
> <allow-navigation href="content://*" />
> <allow-navigation href="cdvfile://*" />
> I was experiencing this error on cordova-ios 3.9.2 and it seemed to be fixed
> with 4.0.0. With 4.0.1 it's back!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]