FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(ios-webview): report hostname lookup errors in loadFinished event by BenSjoberg · Pull Request #6988 · NativeScript/NativeScript · GitHub

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

Merged
manoldonev merged 3 commits into
NativeScript:masterfrom
BenSjoberg:ios-webview-error-handling
Mar 18, 2019
Merged

manoldonev merged 3 commits into
NativeScript:masterfrom
BenSjoberg:ios-webview-error-handling

Conversation

BenSjoberg commented Mar 5, 2019 •
edited
Loading

Copy link
Copy Markdown
Contributor

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 assigned manoldonev Mar 15, 2019
ghost added in progress and removed ♥ community PR labels Mar 15, 2019

Copy link
Copy Markdown
Contributor

test

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 merged commit e6486f6 into NativeScript:master Mar 18, 2019
ghost removed the in progress label Mar 18, 2019
BenSjoberg deleted the ios-webview-error-handling branch March 18, 2019 18:13

lock Bot commented Mar 17, 2020

Copy link
Copy Markdown

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 Bot locked and limited conversation to collaborators Mar 17, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL