<?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>19249</bug_id>
          
          <creation_ts>2008-05-25 20:18:54 -0700</creation_ts>
          <short_desc>Assertion failure in FrameView::scheduleRelayout() (m_frame-&gt;view() == this) clicking an image from the Phoenix Mars mission</short_desc>
          <delta_ts>2009-04-30 17:12:04 -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>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://fawkes1.lpl.arizona.edu/images.php?gID=0&amp;cID=8</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>beidson</cc>
    
    <cc>dev+webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>81504</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-05-25 20:18:54 -0700</bug_when>
    <thetext>Clicking a thumbnail in the URL leads to

ASSERTION FAILED: m_frame-&gt;view() == this
(/WebCore/page/FrameView.cpp:778 void WebCore::FrameView::scheduleRelayout())</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81506</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-05-25 20:29:47 -0700</bug_when>
    <thetext>I think the key is Document::updateDocumentsRendering() in the backtrace. The old document has changed children but it is no longer in the frame, so it should not update. Perhaps the function that puts a document into the page cache should take it out of the changedDocuments set.

The bug doesn&apos;t happen when the back/forward cache is disabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81507</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-05-25 21:55:45 -0700</bug_when>
    <thetext>The URL is already dead and I cannot reproduce with other image galleries on the site :-(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81508</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-05-25 21:58:10 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; I cannot reproduce with other image galleries on the site :-(

Turns out disabling the back/forward cache is a sticky setting :-)
I can reproduce with other galleries. URL updated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81513</commentid>
    <comment_count>4</comment_count>
      <attachid>21345</attachid>
    <who name="">mitz</who>
    <bug_when>2008-05-25 22:28:17 -0700</bug_when>
    <thetext>Created attachment 21345
Reduction (save as a file and open; will ASSERT)

While the page is in the back/forward cache, the link changes to visited, which changes the document and triggers a style recalc in the cached document.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81514</commentid>
    <comment_count>5</comment_count>
      <attachid>21345</attachid>
    <who name="">mitz</who>
    <bug_when>2008-05-25 22:30:37 -0700</bug_when>
    <thetext>Comment on attachment 21345
Reduction (save as a file and open; will ASSERT)

Note: the reduction doesn&apos;t work when served over https from Bugzilla, because secure pages never enter the page cache.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81517</commentid>
    <comment_count>6</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-05-26 00:29:30 -0700</bug_when>
    <thetext>The issue appears to be more general: a script can hold a reference to a document in the back/forward cache and modify it, requiring relayout.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81543</commentid>
    <comment_count>7</comment_count>
      <attachid>21350</attachid>
    <who name="">mitz</who>
    <bug_when>2008-05-26 13:59:08 -0700</bug_when>
    <thetext>Created attachment 21350
Reduction without visited links (will ASSERT)

An example of the same problem with a script modifying a document in the back/forward cache. A script can conceivably retroactively make the page ineligible for the back/forward cache, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81544</commentid>
    <comment_count>8</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-05-26 14:01:05 -0700</bug_when>
    <thetext>&lt;rdar://problem/5963470&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87545</commentid>
    <comment_count>9</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-08-01 00:06:28 -0700</bug_when>
    <thetext>*** Bug 20248 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119549</commentid>
    <comment_count>10</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2009-04-30 17:12:04 -0700</bug_when>
    <thetext>This no longer reproduces.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>21345</attachid>
            <date>2008-05-25 22:28:17 -0700</date>
            <delta_ts>2008-05-25 22:30:37 -0700</delta_ts>
            <desc>Reduction (save as a file and open; will ASSERT)</desc>
            <filename>19249 reduction.html</filename>
            <type>text/html</type>
            <size>258</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">PHN0eWxlPg0KICAgIGE6dmlzaXRlZCB7IGJvcmRlcjogc29saWQ7IH0NCjwvc3R5bGU+DQo8YSBp
ZD0ibGluayI+Q2xpY2sgdGhpcyB1bnZpc2l0ZWQgbGluayBhbmQgd2FpdCAoYnVncy53ZWJraXQu
b3JnIGNhbiBiZSBzbG93KTwvYT4NCjxzY3JpcHQ+DQogICAgZG9jdW1lbnQuZ2V0RWxlbWVudEJ5
SWQoImxpbmsiKS5zZXRBdHRyaWJ1dGUoImhyZWYiLCAiaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcv
PyIgKyBEYXRlLm5vdygpKTsNCjwvc2NyaXB0Pg0K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>21350</attachid>
            <date>2008-05-26 13:59:08 -0700</date>
            <delta_ts>2008-05-26 13:59:08 -0700</delta_ts>
            <desc>Reduction without visited links (will ASSERT)</desc>
            <filename>19249 another reduction.html</filename>
            <type>text/html</type>
            <size>483</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">PHNjcmlwdD4KICAgIHZhciB3OwogICAgdmFyIGQ7CiAgICBmdW5jdGlvbiB0ZXN0KCkKICAgIHsK
ICAgICAgICB3ID0gb3BlbigiZGF0YTp0ZXh0L2h0bWwsIik7CiAgICAgICAgc2V0VGltZW91dChn
ZXREb2N1bWVudEFuZE5hdmlnYXRlLCAwKTsKICAgIH0KCiAgICBmdW5jdGlvbiBnZXREb2N1bWVu
dEFuZE5hdmlnYXRlKCkKICAgIHsKICAgICAgICBkID0gdy5kb2N1bWVudDsKICAgICAgICB3Lmxv
Y2F0aW9uLmhyZWYgPSAiYWJvdXQ6YmxhbmsiOwogICAgICAgIHNldFRpbWVvdXQobW9kaWZ5RG9j
dW1lbnQsIDApOwogICAgfQoKICAgIGZ1bmN0aW9uIG1vZGlmeURvY3VtZW50KCkKICAgIHsKICAg
ICAgICBkLmJvZHkuYXBwZW5kQ2hpbGQoZC5jcmVhdGVFbGVtZW50KCJkaXYiKSk7CiAgICAgICAg
ZC5ib2R5LmZpcnN0Q2hpbGQub2Zmc2V0VG9wOwogICAgfQo8L3NjcmlwdD4KPGJ1dHRvbiBvbmNs
aWNrPSJ0ZXN0KCkiPlRlc3Q8L2J1dHRvbj4K
</data>

          </attachment>
      

    </bug>

</bugzilla>