Bug 9838

Summary: REGRESSION (r14968-r14977): View Source doesn't work for pages from the back/forward cache
Product: WebKit Reporter: mitz
Component: Page LoadingAssignee: John Sullivan <sullivan>
Status: RESOLVED FIXED    
Severity: Normal CC: ddkilzer, mjs, sullivan
Priority: P1 Keywords: Regression
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
Proposed patch sullivan: review+

mitz
Reported 2006-07-10 13:20:46 PDT
Summary: When using shipping Safari 2.0.4 (419.3) with ToT WebKit, View Source brings up an empty window for pages loaded from the back/forward cache. To reproduce: go to http://webkit.opendarwin.org/ and wait for it to finish loading, then go to about:blank, go back, and choose View > View Source. Expected: source of webkit home page. Actual: blank source window. This is a regression that occurred between r14968 and r14977. A likely suspect in that range is r14976 - start moving loading logic to new WebFrameLoader class; move management of WebLoaders there.
Attachments
Proposed patch (1.39 KB, patch)
2006-07-10 14:09 PDT, mitz
sullivan: review+
John Sullivan
Comment 1 2006-07-10 13:40:53 PDT
This also occurs with tip of tree Safari, so it's not a mismatch between WebKit and WebBrowser. View Source uses the WebDocumentRepresentation protocol method -(NSString *)documentSource, so that method isn't returning the right result in this case.
mitz
Comment 2 2006-07-10 14:09:16 PDT
Created attachment 9347 [details] Proposed patch
John Sullivan
Comment 3 2006-07-10 14:26:47 PDT
Comment on attachment 9347 [details] Proposed patch Looks good.
John Sullivan
Comment 4 2006-07-10 16:38:22 PDT
I'll land this
John Sullivan
Comment 5 2006-07-10 16:51:56 PDT
checked in as svn revision 15315
Note You need to log in before you can comment on or make changes to this bug.