[Webkit-unassigned] [Bug 144912] New: WKWebView should expose _loadAlternateHTMLString:baseURL:forUnreachableURL:
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 12 07:30:45 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=144912
Bug ID: 144912
Summary: WKWebView should expose
_loadAlternateHTMLString:baseURL:forUnreachableURL:
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit2
Assignee: webkit-unassigned at lists.webkit.org
Reporter: stefan at arentz.ca
Exposing WKWebView#_loadAlternateHTMLString:baseURL:forUnreachableURL: would allow people to us show error messages in-content while maintaining a sane BackForwardList.
The problem with the alternatives, loadHTML or loadRequest from an embedded HTTP Server, do not play well with the (read-only) BackForwardList.
When presenting an error with loadHTML, it will *replace* the current page you are on.
When presenting an error with loadRequest, either from embedded server or file: URL, it will generate a new entry in the BackForwardList that you cannot get rid of.
The _loadAlternateHTMLString:baseURL:forUnreachableURL API seems to add the failing page to the BackForwardList while presenting alternative content, like an error message. This means a call to reloadFromOrigin will simply retry the page and leave the BackForwardList in a good state that makes sense.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150512/ea9f4c4b/attachment.html>
More information about the webkit-unassigned
mailing list