Bug 94476

Summary: [WK2] Cannot go back from page loaded with WKPageLoadAlternateHTMLString
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: andersca, ap, mrobinson, sam, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   

Carlos Garcia Campos
Reported 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.
Attachments
Alexey Proskuryakov
Comment 1 2012-08-20 10:11:19 PDT
See also: bug 93680.
Note You need to log in before you can comment on or make changes to this bug.