<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>11140</bug_id>
          
          <creation_ts>2006-10-03 16:19:36 -0700</creation_ts>
          <short_desc>REGRESSION: view source window blank</short_desc>
          <delta_ts>2006-10-06 05:39:40 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Page Loading</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Geoffrey Garen">ggaren</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>mjs</cc>
    
    <cc>sullivan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55572</commentid>
    <comment_count>0</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2006-10-03 16:19:36 -0700</bug_when>
    <thetext>1. Load any URL
2. View -&gt; View Source

Nightlies say this regressed form r16709 to 16729. Signs point to r16730, r16725, or r16710, Maciej&apos;s loader changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54437</commentid>
    <comment_count>1</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2006-10-04 17:34:21 -0700</bug_when>
    <thetext>I&apos;ve debugged this a little and it looks like the problem has to do with [WebFrame loadData:]. Safari gets the document&apos;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&apos;t changed. Then this data is loaded in the webView using:

    [[webView mainFrame] loadData:theDataIJustMentioned MIMEType:@&quot;text/plain&quot; textEncodingName:@&quot;UTF-16&quot; baseURL:nil];

But the display is blank, so presumably something beneath this loadData: call is failing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53976</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-10-06 05:39:40 -0700</bug_when>
    <thetext>Fixed by Maciej in r16848.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>