<?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>136589</bug_id>
          
          <creation_ts>2014-09-05 16:22:00 -0700</creation_ts>
          <short_desc>FrameView::adjustTiledBackingCoverage can use the RenderView before the new document is swapped in</short_desc>
          <delta_ts>2014-09-05 16:33:45 -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>Layout and Rendering</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Horton">thorton</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>kling</cc>
    
    <cc>koivisto</cc>
    
    <cc>sam</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1033582</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2014-09-05 16:22:00 -0700</bug_when>
    <thetext>Steps to Reproduce:

1. Adjust FrameView::renderView to be this:

RenderView* FrameView::renderView() const
{
    RenderView* renderView = frame().contentRenderer();
    ASSERT(!renderView || &amp;renderView-&gt;frameView() == this);
    return renderView;
}

2. Run the layout tests. For me, loader/go-back-to-different-window-size.html and fast/history/timed-refresh-in-cached-frame.html both failed with:

0   com.apple.JavaScriptCore      	0x00000001133596ca WTFCrash + 42
1   com.apple.WebCore             	0x0000000114fecded WebCore::FrameView::renderView() const + 109 (FrameView.cpp:4549)
2   com.apple.WebCore             	0x0000000114ff5e53 WebCore::FrameView::adjustTiledBackingCoverage() + 51 (FrameView.cpp:2359)
3   com.apple.WebCore             	0x0000000114feb474 WebCore::FrameView::speculativeTilingEnableTimerFired(WebCore::Timer&lt;WebCore::FrameView&gt;&amp;) + 68 (FrameView.cpp:2395)
4   com.apple.WebCore             	0x00000001150100b7 std::__1::__function::__func&lt;std::__1::__bind&lt;void (WebCore::FrameView::*&amp;)(WebCore::Timer&lt;WebCore::FrameView&gt;&amp;), WebCore::FrameView*&amp;, std::__1::reference_wrapper&lt;WebCore::Timer&lt;WebCore::FrameView&gt; &gt; &gt;, std::__1::allocator&lt;std::__1::__bind&lt;void (WebCore::FrameView::*&amp;)(WebCore::Timer&lt;WebCore::FrameView&gt;&amp;), WebCore::FrameView*&amp;, std::__1::reference_wrapper&lt;WebCore::Timer&lt;WebCore::FrameView&gt; &gt; &gt; &gt;, void ()&gt;::operator()() + 359 (functional:1370)
5   com.apple.WebCore             	0x000000011473b8aa std::__1::function&lt;void ()&gt;::operator()() const + 26 (functional:1755)
6   com.apple.WebCore             	0x000000011500cbdc WebCore::Timer&lt;WebCore::FrameView&gt;::fired() + 28 (Timer.h:134)

This means that FrameView::adjustTiledBackingCoverage is using the RenderView from a different Document (most likely, we haven&apos;t swapped the new document in yet).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>