<?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>120105</bug_id>
          
          <creation_ts>2013-08-20 23:35:29 -0700</creation_ts>
          <short_desc>http/tests/navigation/post-frames-goback1-uncached.html fails on Qt, GTK+, and EFL bots</short_desc>
          <delta_ts>2013-08-23 01:24:50 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>LayoutTestFailure</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>120028</dependson>
    
    <dependson>120152</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abrhm</cc>
    
    <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>kadam</cc>
    
    <cc>ossy</cc>
    
    <cc>seokju</cc>
    
    <cc>spena</cc>
    
    <cc>zan</cc>
    
    <cc>zarvai</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>919350</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-08-20 23:35:29 -0700</bug_when>
    <thetext>The test added by http://trac.webkit.org/changeset/154306 is failing on GTK+, Qt, and EFL bots:
http://webkit-test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=http%2Ftests%2Fnavigation%2Fpost-frames-goback1-uncached.html

e.g. http://build.webkit.org/results/GTK%20Linux%2064-bit%20Debug%20WK1/r154378%20(3715)/results.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>919355</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-08-20 23:46:19 -0700</bug_when>
    <thetext>This looks like a difference in UI delegate implementation. If this test is run in a browser, a dialog asking whether it&apos;s OK to submit a form again appears. Mac DumpRenderTree simulates a &quot;NO&quot; answer, while the platforms where this fails say &quot;YES&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>919356</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-08-20 23:50:09 -0700</bug_when>
    <thetext>Should we simply rebaseline it then?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>919492</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-08-21 09:55:29 -0700</bug_when>
    <thetext>Landing custom results sounds OK for now, but ideally, DumpRenderTree should be changed on these platforms, I think.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920011</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-08-22 16:27:49 -0700</bug_when>
    <thetext>I was wrong about the reason. DumpRenderTree allows the load, but it doesn&apos;t show up because the test finishes before the subframe loads.

Looks like there may be two bugs:

1. WebCore dispatches a load event too early when going back. This happens in FrameLoader::retryAfterFailedCacheOnlyMainResourceLoad() when it calls stopAllLoaders(), but the load is not done yet, it is continued to attempt resubmitting the form!

2. Not quite sure what happens on platforms that fail the current test results. Perhaps they ignore Cache-Control, and cache the result of form submission anyway? Could someone please set a breakpoint in FrameLoader::retryAfterFailedCacheOnlyMainResourceLoad() and see if it&apos;s hit?

So, Qt/Gtk/EFL results are what the test should print if not for issue (1), but they are probably like that because of another bug only, not because the right thing happens.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920141</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Pena">spena</who>
    <bug_when>2013-08-23 01:03:50 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; I was wrong about the reason. DumpRenderTree allows the load, but it doesn&apos;t show up because the test finishes before the subframe loads.
&gt; 
&gt; Looks like there may be two bugs:
&gt; 
&gt; 1. WebCore dispatches a load event too early when going back. This happens in FrameLoader::retryAfterFailedCacheOnlyMainResourceLoad() when it calls stopAllLoaders(), but the load is not done yet, it is continued to attempt resubmitting the form!
&gt; 
&gt; 2. Not quite sure what happens on platforms that fail the current test results. Perhaps they ignore Cache-Control, and cache the result of form submission anyway? Could someone please set a breakpoint in FrameLoader::retryAfterFailedCacheOnlyMainResourceLoad() and see if it&apos;s hit?
&gt; 
&gt; So, Qt/Gtk/EFL results are what the test should print if not for issue (1), but they are probably like that because of another bug only, not because the right thing happens.

Thanks for the insight, Alexey! I will check debug the test and see what happens in retryAfterFailedCacheOnlyMainResourceLoad(). I also should rename the GTK-specific test, but will do that once we know a bit more about what&apos;s going on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920142</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Pena">spena</who>
    <bug_when>2013-08-23 01:11:14 -0700</bug_when>
    <thetext>I said &quot;GTK-specific test&quot; when I meant &quot;GTK-specific bug&quot;. Anyway, it is correctly closed as invalid, and another one could be open if needed.

I set a breakpoint in FrameLoader::retryAfterFailedCacheOnlyMainResourceLoad, but it is not hit in the GTK port.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920146</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Pena">spena</who>
    <bug_when>2013-08-23 01:24:50 -0700</bug_when>
    <thetext>The GTK port produces the same output in

http/tests/navigation/post-frames-goback1-uncached.html

and 

http/tests/navigation/post-frames-goback1.html

so I imagine this is consistent with your theory that we are ignoring the Cache-Control.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>