Bug 94476 - [WK2] Cannot go back from page loaded with WKPageLoadAlternateHTMLString
Summary: [WK2] Cannot go back from page loaded with WKPageLoadAlternateHTMLString
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-20 06:24 PDT by Carlos Garcia Campos
Modified: 2012-08-20 10:11 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2012-08-20 06:24:28 PDT
To reproduce:

 1.- load a page with WKPageLoadURL
 2.- load an invalid page and in load error callback load alternate page with WKPageLoadAlternateHTMLString
 3.- load another page with WKPageLoadURL
 4.- WKPageGoBack() -> alternate page is loaded
 5.- WKPageGoBack() -> alternate page is loaded again
.....

So it's not possible to go back from the alternate page. The problem is that FrameLoader::shouldReloadToHandleUnreachableURL() assumes loads happens synchronously, which is true in WebKit1 but not in WebKit2, and for WebKit2 compareDocumentLoader is always NULL and shouldReloadToHandleUnreachableURL() never returns true.
Comment 1 Alexey Proskuryakov 2012-08-20 10:11:19 PDT
See also: bug 93680.