<?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>56062</bug_id>
          
          <creation_ts>2011-03-09 17:30:23 -0800</creation_ts>
          <short_desc>Reproducible ASSERTION failure going to NYTimes.com</short_desc>
          <delta_ts>2011-12-07 08:05:22 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore JavaScript</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jessie Berlin">jberlin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aestes</cc>
    
    <cc>alice.barraclough</cc>
    
    <cc>ap</cc>
    
    <cc>darin</cc>
    
    <cc>jberlin</cc>
    
    <cc>yong.li.webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>364907</commentid>
    <comment_count>0</comment_count>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2011-03-09 17:30:23 -0800</bug_when>
    <thetext>This is also reproducible going to other major websites.

After some bisecting, the assertion failure appears to have started around http://trac.webkit.org/changeset/80478.

&gt;  1 com.apple.WebCore              0x103775887 WebCore::SuspendableTimer::resume() + 0x5b (SuspendableTimer.cpp:76)
   2 com.apple.WebCore              0x103775825 non-virtual thunk to WebCore::SuspendableTimer::resume() + 0x25
   3 com.apple.WebCore              0x10369b46e WebCore::ScriptExecutionContext::resumeActiveDOMObjects() + 0x104 (ScriptExecutionContext.cpp:259)
   4 com.apple.WebCore              0x102836762 WebCore::Document::resumeScheduledTasks() + 0xf0 (Document.cpp:4772)
   5 com.apple.WebCore              0x102ae64f8 WebCore::FrameLoader::setDefersLoading(bool) + 0x196 (FrameLoader.cpp:263)
   6 com.apple.WebCore              0x1033834e1 WebCore::Page::setDefersLoading(bool) + 0xa5 (Page.cpp:548)
   7 com.apple.WebKit2              0x1010b4a30 WebKit::WebPage::setDefersLoading(bool) + 0x44 (WebPage.cpp:454)
   8 com.apple.WebKit2              0x101146bb7 WKBundlePageSetDefersLoading + 0x37 (WKBundlePage.cpp:114)

This also appears to have caused some inspector test failures:

https://bugs.webkit.org/show_bug.cgi?id=55941

Should we roll out this change? It is getting rather annoying to work with this assertion failure getting triggered so often (happens within 10 seconds of browsing)

&lt;rdar://problem/9098548&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>364908</commentid>
    <comment_count>1</comment_count>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2011-03-09 17:31:35 -0800</bug_when>
    <thetext>The assertion that is failing is ASSERT(m_suspended).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>365322</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-03-10 11:06:01 -0800</bug_when>
    <thetext>*** Bug 56073 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>365352</commentid>
    <comment_count>3</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2011-03-10 11:33:35 -0800</bug_when>
    <thetext>Comment from https://bugs.webkit.org/show_bug.cgi?id=55941:

 Comment #6 From Pavel Feldman 2011-03-10 07:19:04 PST (-) [reply] 
Rolled out r80478 as r80718

Committing to http://svn.webkit.org/repository/webkit/trunk ...
    D    Source/WebCore/manual-tests/database-callback-deferred.html
    M    LayoutTests/ChangeLog
    M    LayoutTests/platform/gtk/Skipped
    M    Source/WebCore/ChangeLog
    M    Source/WebCore/dom/Document.cpp
    M    Source/WebCore/dom/Document.h
    M    Source/WebCore/loader/FrameLoader.cpp
    M    Source/WebCore/page/PageGroupLoadDeferrer.cpp
Committed r80718</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>516643</commentid>
    <comment_count>4</comment_count>
    <who name="Yong Li">yong.li.webkit</who>
    <bug_when>2011-12-07 07:57:22 -0800</bug_when>
    <thetext>This seems like a conflict between WKBundlePageSetDefersLoading and PageGroupLoadDeferrer, and should be fixed there but not by rolling out r80478 which does fix missing callback problme. Should we reopen this one?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>516644</commentid>
    <comment_count>5</comment_count>
    <who name="Yong Li">yong.li.webkit</who>
    <bug_when>2011-12-07 08:05:22 -0800</bug_when>
    <thetext>Never mind. I see why r80478 causes the crash now:

Without the patch Page::setDefersLoading doesn&apos;t do this:

                for (Frame* frame = otherPage-&gt;mainFrame(); frame; frame = frame-&gt;tree()-&gt;traverseNext()) {
                    frame-&gt;document()-&gt;suspendScriptedAnimationControllerCallbacks();
                    frame-&gt;document()-&gt;suspendActiveDOMObjects(ActiveDOMObject::WillShowDialog);
                    frame-&gt;document()-&gt;scriptRunner()-&gt;suspend();
                    if (DocumentParser* parser = frame-&gt;document()-&gt;parser())
                        parser-&gt;suspendScheduledTasks();
                }

So I&apos;ll remove this change from my patch</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>