-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chrome Unverified URL issue on iOS #23
Comments
Hey @pedrosanta I'm still looking for a work around. Looks like this might actually be a bug in Chrome iOS. The following page reproduces it for me: <html>
<body>
<h1>Chrome iOS Bug</h1>
<script type="text/javascript">
function overwrite() {
window.XMLHttpRequest = function() {
console.log(42)
}
print("overwrote xhr!")
}
//DOES WORK
// setTimeout(overwrite, 0)
//DOES *NOT* WORK
overwrite()
//cant see console.logs on the iphone
function print(str) {
var e = document.createElement("h2")
e.innerHTML = str
document.body.appendChild(e)
}
</script>
</body>
</html> Edit: This page is being hosted here http://snippets.jpillora.com/view/public/html/chromeiosbug.html |
So it's a bit annoying though here's something that seems to work: If your app loads with: var app = new App(); Then you'll need to: xhook.disable();
setTimeout(function() {
xhook.enable();
start();
});
function start() {
var app = new App();
} http://snippets.jpillora.com/view/public/html/xhookworkaround.html |
Could this be related to Chrome on iOS bug https://code.google.com/p/chromium/issues/detail?id=346504 ? |
This bug is described in the second part of this New Relic blog post. They encountered the same issue with their in-page tracking. http://blog.newrelic.com/2014/04/11/crazy-things-found-developing-new-relic-browser/
|
Thanks for the link, I commented earlier on a chromium bug which mentioned new relic. I just did some deeper debugging, it seems this |
Pushed XHook 1.2.2 and XDomain 0.6.13. I think that fixed it. Everyone on this thread – can you please test http://jpillora.com/xdomain/ on Chrome on your iPhones. Will close once we get a few confirmations. |
Confirmed, this page is working without the warning now. |
Awesome, well it's fixed for me too, so I'll close and we can reopen if someone else has a problem. |
It appears to be fixed for me as well. Thank you @jpillora. |
Yep, it fixed it for me too. Thanks @jpillora. |
Hi, just like this issue on XDomain (jpillora/xdomain#76) I'm just using xhook and I'm also having the "Unverified URL" issue on Chrome on iOS.
If I remove xhook altogether, the issue disappears. But I need xhook, since it is the only way I could make my web app work on Windows Mobile 7 browser.
Cheers.
The text was updated successfully, but these errors were encountered: