<?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>13672</bug_id>
          
          <creation_ts>2007-05-10 21:14:22 -0700</creation_ts>
          <short_desc>DumpRenderTree needs to support the Back/Forward cache</short_desc>
          <delta_ts>2009-10-13 19:09:31 -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>Tools / Tests</component>
          <version>523.x (Safari 3)</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>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brady Eidson">beidson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dimich</cc>
    
    <cc>zwarich</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10366</commentid>
    <comment_count>0</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2007-05-10 21:14:22 -0700</bug_when>
    <thetext>DRT needs to support the Back/Forward cache. 
Whatever reasons that it doesn&apos;t, it needs to now!

Once the support is in, there needs to be a slew of layout tests added for various recent and future enhancements to the cache including 
- Pages with password fields
- Pages with frames
- Pages with plugins
- etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10158</commentid>
    <comment_count>1</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2007-05-12 18:10:09 -0700</bug_when>
    <thetext>Another bug that needs this ability in DRT for a proper layout test is http://bugs.webkit.org/show_bug.cgi?id=13701

The reduced test case attached to that bug can be adapted for this purpose</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4505</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-07-17 08:33:30 -0700</bug_when>
    <thetext>Mitz found a way to do a layout test for bug 13701 without back/forward cache.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82928</commentid>
    <comment_count>3</comment_count>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2008-06-11 02:32:50 -0700</bug_when>
    <thetext>I turned the back/forward cache on in DumpRenderTree.mm, also adding

    [[webView backForwardList] init];

to resetWebViewToConsistentStateBeforeTesting() (otherwise you get over 1000 tests failing). Correct me if this is the wrong code to add. I had to turn off http/tests/navigation, because dumpBackForwardListForWebView() expects the previous test&apos;s back/forward items to be there as well, and asserts when they aren&apos;t. I didn&apos;t really want to sit through 60 or so tests crashing.

Besides that, I only got 5 new failures:

fast/css/target-fragment-match.html
fast/dom/location-hash.htm
fast/forms/button-state-restore.html
fast/frames/frame-navigation.html	
fast/history/go-back-to-changed-name.html

When I run fast/js on its own, I get one test expecting a GC to occur that doesn&apos;t. There are a few tests with new stderr output, and Apache had to be killed during one HTTP test, which is fishy. 

I will try to work out the reasons for the failures. Hopefully we can turn the back/forward cache on in DRT soon, and then we can write an interface to expose it to tests. Is there any reason we want it to always be off for some existing tests?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82961</commentid>
    <comment_count>4</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2008-06-11 09:19:50 -0700</bug_when>
    <thetext>I can&apos;t think of any right now, but it would be good to keep in mind that turning the back/forward cache off is sometimes a very real, preferable thing in real world WebKit apps so you may as well add it to DRT for possible future bugs + tests.

Great start!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102315</commentid>
    <comment_count>5</comment_count>
    <who name="Dmitry Titov">dimich</who>
    <bug_when>2008-12-11 18:56:51 -0800</bug_when>
    <thetext>There is a landed change (bug 20534) that adds ability to override preferences, so one could use
layoutTestController.overridePreference(&quot;UsesPageCache&quot;, true);
to enable page cache for a particular test. One test using this is bug 22806. 
It could be a way to author the f/b + page cache tests until the enabling it permanently is understood well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154515</commentid>
    <comment_count>6</comment_count>
    <who name="Dmitry Titov">dimich</who>
    <bug_when>2009-10-13 19:09:31 -0700</bug_when>
    <thetext>Since the patch for bug 20534 landed, there is support for Back/Forward cache. Resolving.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>