Bug 11140

Summary: REGRESSION: view source window blank
Product: WebKit Reporter: Geoffrey Garen <ggaren>
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Critical CC: ap, mjs, sullivan
Priority: P1    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   

Geoffrey Garen
Reported 2006-10-03 16:19:36 PDT
1. Load any URL 2. View -> View Source Nightlies say this regressed form r16709 to 16729. Signs point to r16730, r16725, or r16710, Maciej's loader changes.
Attachments
John Sullivan
Comment 1 2006-10-04 17:34:21 PDT
I've debugged this a little and it looks like the problem has to do with [WebFrame loadData:]. Safari gets the document's source from [WebHTMLRepresentation documentSource]. The string this returns looks fine. Then the string is converted into an NSData object using [string dataUsingEncoding:NSUnicodeStringEncoding]. This results in a non-nil NSData object, presumably correct since this code hasn't changed. Then this data is loaded in the webView using: [[webView mainFrame] loadData:theDataIJustMentioned MIMEType:@"text/plain" textEncodingName:@"UTF-16" baseURL:nil]; But the display is blank, so presumably something beneath this loadData: call is failing.
Alexey Proskuryakov
Comment 2 2006-10-06 05:39:40 PDT
Fixed by Maciej in r16848.
Note You need to log in before you can comment on or make changes to this bug.