chrome-ios

window.close() doesn't work on iOS

不羁岁月 提交于 2019-11-30 13:12:10
I open a new window with window.open() to redirect users to the oauth login page. However, after successful login when the user is redirected back to my app the previous window with the window.open call does not close itself in ios. On the iPad it would close the wrong window and on the iPhone it wouldn't close the window at all. The code works fine on Android and on desktop versions of Chrome and Firefox. After much rooting about, I found a fix (posted below). If anyone has any better ideas or root causes, please post here. here is what I ended up getting to work... never could get the window

window.close() doesn't work on iOS

倾然丶 夕夏残阳落幕 提交于 2019-11-29 13:05:44
问题 I open a new window with window.open() to redirect users to the oauth login page. However, after successful login when the user is redirected back to my app the previous window with the window.open call does not close itself in ios. On the iPad it would close the wrong window and on the iPhone it wouldn't close the window at all. The code works fine on Android and on desktop versions of Chrome and Firefox. After much rooting about, I found a fix (posted below). If anyone has any better ideas

Disable Chrome's pull-to-refresh on iPhone

前提是你 提交于 2019-11-29 04:19:24
I am implementing a drawing app on my site and trying to prevent overscroll while the user draws on the canvas. Despite trying several reported solutions, I cannot disable Chrome's pull-to-refresh. According to https://developers.google.com/web/updates/2017/11/overscroll-behavior , the following one line of css should do the trick..yet pull-to-refresh and an annoying user experience persists . Any ideas? <!DOCTYPE html> <html> <style type="text/css"> body { /* Disables pull-to-refresh but allows overscroll glow effects. */ overscroll-behavior-y: contain; } </style> <body> <h1>Simple Site</h1>

Chrome IOS - Is it just a UIWebView?

老子叫甜甜 提交于 2019-11-27 19:14:45
I'm not sure this is a suitable question for here but is the new Chrome app for IOS just a UIWebView? If so then would it be safe to assume that there shouldn't be any rendering differences between it and mobile Safari? As of version 48, Chrome for iOS uses WKWebView, which is the same view used in Safari. Sources: Chromium Blog Ars Technica VentureBeat No, it is not just a UiWebView. Mike Pinkerton's post on chrome-team googlegroup : Chrome for iOS has some pretty major technical restrictions imposed by the App Store, such as the requirement to use the built-in UIWebView for rendering, no V8,

Issue with window.close and chrome

不羁岁月 提交于 2019-11-27 03:43:57
Im trying to close a child window with javascript and in firefox everything works fine but in chrome the window doesnt close here is what im using $(document).ready(function() { if (window.opener && !window.opener.closed) window.opener.location = "http://www.website.com" window.close(); }); I tried a suggestion on google , but to no avail. Anyone having a similar issue or know of a work-around? I know this question is old, but I ran into the same problem. This worked for me: window.open('', '_self', ''); //bug fix window.close(); if previously you open some other window by window.open() this

Chrome IOS - Is it just a UIWebView?

天涯浪子 提交于 2019-11-26 19:41:20
问题 I'm not sure this is a suitable question for here but is the new Chrome app for IOS just a UIWebView? If so then would it be safe to assume that there shouldn't be any rendering differences between it and mobile Safari? 回答1: As of version 48, Chrome for iOS uses WKWebView, which is the same view used in Safari. Sources: Chromium Blog Ars Technica VentureBeat 回答2: No, it is not just a UiWebView. Mike Pinkerton's post on chrome-team googlegroup: Chrome for iOS has some pretty major technical

Issue with window.close and chrome

二次信任 提交于 2019-11-26 10:44:11
问题 Im trying to close a child window with javascript and in firefox everything works fine but in chrome the window doesnt close here is what im using $(document).ready(function() { if (window.opener && !window.opener.closed) window.opener.location = \"http://www.website.com\" window.close(); }); I tried a suggestion on google, but to no avail. Anyone having a similar issue or know of a work-around? 回答1: I know this question is old, but I ran into the same problem. This worked for me: window.open