Skip to content
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

fix(ios-webview): report hostname lookup errors in loadFinished event #6988

Merged
merged 3 commits into from
Mar 18, 2019

Conversation

BenSjoberg
Copy link
Contributor

@BenSjoberg BenSjoberg commented Mar 5, 2019

Certain types of WKWebView errors (including hostname resolution failures) are reported to webViewDidFailProvisionalNavigationWithError. The delegate needs to implement this function for applications to detect and react to these types of errors.

PR Checklist

What is the current behavior?

On iOS, the loadFinished event is never emitted if the hostname in the URL can't be found.

What is the new behavior?

loadFinished is emitted with the error property set on the event object when a hostname lookup error occurs. This is in line with what the documentation suggests should occur, and the behavior on Android.

Fixes #6987.

Fixes NativeScript#6987

Certain types of WKWebView errors (including hostname resolution failures) are reported to webViewDidFailProvisionalNavigationWithError. The delegate needs to implement this function for applications to detect and react to these types of errors.
@ghost ghost assigned manoldonev Mar 15, 2019
@ghost ghost added in progress and removed ♥ community PR labels Mar 15, 2019
@manoldonev
Copy link
Contributor

test

@manoldonev manoldonev changed the title fix(ios-webview): Report hostname lookup errors in loadFinished event fix(ios-webview): report hostname lookup errors in loadFinished event Mar 15, 2019
m-abs added a commit to m-abs/nativescript-webview-ext that referenced this pull request Mar 15, 2019
@manoldonev manoldonev merged commit e6486f6 into NativeScript:master Mar 18, 2019
@ghost ghost removed the in progress label Mar 18, 2019
@BenSjoberg BenSjoberg deleted the ios-webview-error-handling branch March 18, 2019 18:13
@lock
Copy link

lock bot commented Mar 17, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iOS WebView silently ignores hostname lookup failures
2 participants