<?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>9838</bug_id>
          
          <creation_ts>2006-07-10 13:20:46 -0700</creation_ts>
          <short_desc>REGRESSION (r14968-r14977): View Source doesn&apos;t work for pages from the back/forward cache</short_desc>
          <delta_ts>2006-07-10 16:51:56 -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>Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to name="John Sullivan">sullivan</assigned_to>
          <cc>ddkilzer</cc>
    
    <cc>mjs</cc>
    
    <cc>sullivan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>49129</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-07-10 13:20:46 -0700</bug_when>
    <thetext>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 &gt; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49130</commentid>
    <comment_count>1</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2006-07-10 13:40:53 -0700</bug_when>
    <thetext>This also occurs with tip of tree Safari, so it&apos;s not a mismatch between WebKit and WebBrowser.

View Source uses the WebDocumentRepresentation protocol method -(NSString *)documentSource, so that method isn&apos;t returning the right result in this case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49132</commentid>
    <comment_count>2</comment_count>
      <attachid>9347</attachid>
    <who name="">mitz</who>
    <bug_when>2006-07-10 14:09:16 -0700</bug_when>
    <thetext>Created attachment 9347
Proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49133</commentid>
    <comment_count>3</comment_count>
      <attachid>9347</attachid>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2006-07-10 14:26:47 -0700</bug_when>
    <thetext>Comment on attachment 9347
Proposed patch

Looks good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49139</commentid>
    <comment_count>4</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2006-07-10 16:38:22 -0700</bug_when>
    <thetext>I&apos;ll land this</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49140</commentid>
    <comment_count>5</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2006-07-10 16:51:56 -0700</bug_when>
    <thetext>checked in as svn revision 15315</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>9347</attachid>
            <date>2006-07-10 14:09:16 -0700</date>
            <delta_ts>2006-07-10 14:26:47 -0700</delta_ts>
            <desc>Proposed patch</desc>
            <filename>9838_r1.patch</filename>
            <type>text/plain</type>
            <size>1424</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09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IFdlYktp
dC9XZWJWaWV3L1dlYkRhdGFTb3VyY2UubQkod29ya2luZyBjb3B5KQpAQCAtMzY4LDggKzM2OCwx
MCBAQAogICAgICAgICAvLyB0aGVyZSdzIG5vIGNhbGxiYWNrIGZvciB0aGF0LgogICAgICAgICBb
c2VsZiBfbG9hZEljb25dOwogCi0gICAgICAgIFtzZWxmIF9zZXREYXRhOltfcHJpdmF0ZS0+ZnJh
bWVMb2FkZXIgbWFpblJlc291cmNlRGF0YV1dOwotICAgICAgICBbX3ByaXZhdGUtPmZyYW1lTG9h
ZGVyIHJlbGVhc2VNYWluUmVzb3VyY2VMb2FkZXJdOworICAgICAgICBpZiAoW19wcml2YXRlLT5m
cmFtZUxvYWRlciBpc0xvYWRpbmdNYWluUmVzb3VyY2VdKSB7CisgICAgICAgICAgICBbc2VsZiBf
c2V0RGF0YTpbX3ByaXZhdGUtPmZyYW1lTG9hZGVyIG1haW5SZXNvdXJjZURhdGFdXTsKKyAgICAg
ICAgICAgIFtfcHJpdmF0ZS0+ZnJhbWVMb2FkZXIgcmVsZWFzZU1haW5SZXNvdXJjZUxvYWRlcl07
CisgICAgICAgIH0KICAgICAgICAgCiAgICAgICAgIFtzZWxmIF91cGRhdGVMb2FkaW5nXTsKIAo=
</data>
<flag name="review"
          id="2827"
          type_id="1"
          status="+"
          setter="sullivan"
    />
          </attachment>
      

    </bug>

</bugzilla>