-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
window.handleOpenURL is triggered in WKWebView for system browser calls #652
Comments
PRs very welcome and thanks for following the issue template and providing a repro! |
I'll work on a PR for this now |
Co-authored-by: Jim Wright <[email protected]>
* master: docs: replaces outdated transition and presentation style links (apache#662) chore: remove deprecated orientation methods (apache#666) Fix incorrect TypeScript typings (apache#515) [apacheGH-652] add check for openInSystem postNotification (apache#654) ci: updates Node.js versions (apache#659) chore(npm): improve ignore list (apache#658) fix(android): Reset lefttoright if not set (apache#442) [android] Correcting the documentation regarding lefttoright opt… (apache#648) (android) Added option to turn on/off fullscreen mode in Android (apache#634) Android apacheGH-470 InAppBrowser: java.lang.IllegalArgumentException (apache#616) breaking(ios): remove UIWebView (apache#635) chore(release): 3.2.1-dev
@j--w @timbru31 - looks like this bug is back. I am on inappbrowser ~4.0.0 and cordova-plugin-ionic-webview ~5.0.0 and this bug just happened to me. After further inspection, this bug still persists if you put in a bad URL. I was trying to link to |
Bug Report
When triggering a url to open in the
_system
browser through IAB with WKWebView window.handleOpenURL is called. If using UIWebView this does not happen. This appears to be a regression as this issue was fixed with this PR but it appears the check never made it into CDVWKInAppBrowser.mProblem
I believe there should be a check around the postNotification eg:
if ([[UIApplication sharedApplication] openURL:url] == NO)
What is expected to happen?
window.handleOpenURL is not called
What does actually happen?
window.handleOpenURL is not called
Information
Command or Code
I created a repo to reproduce
https://github.com/j--w/iab-handleopenurl-bug/blob/master/www/js/index.js#L30
Environment, Platform, Device
Version information
Cordova CLI: 7.1.0
Cordova IOS: 5.1.1
XCode 11.2.1
Cordova InAppBrowser 3.2.0
OSX
Checklist
The text was updated successfully, but these errors were encountered: