Changeset 142492 in webkit


Ignore:
Timestamp:
Feb 11, 2013 11:48:56 AM (11 years ago)
Author:
abarth@webkit.org
Message:

document.write during window.onload can trigger DumpRenderTree to dump the render tree
https://bugs.webkit.org/show_bug.cgi?id=109465

Reviewed by Eric Seidel.

Source/WebCore:

This patch is a partial revert of
http://trac.webkit.org/changeset/142378. It's not safe to call
checkComplete during the load event. We'll need to find another way of
calling checkComplete at the right time.

Test: fast/parser/document-write-during-load.html

  • dom/Document.cpp:

(WebCore::Document::decrementActiveParserCount):

LayoutTests:

  • fast/parser/document-write-during-load-expected.txt: Added.
  • fast/parser/document-write-during-load.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r142490 r142492  
     12013-02-11  Adam Barth  <abarth@webkit.org>
     2
     3        document.write during window.onload can trigger DumpRenderTree to dump the render tree
     4        https://bugs.webkit.org/show_bug.cgi?id=109465
     5
     6        Reviewed by Eric Seidel.
     7
     8        * fast/parser/document-write-during-load-expected.txt: Added.
     9        * fast/parser/document-write-during-load.html: Added.
     10
    1112013-02-11  Christophe Dumez  <ch.dumez@sisa.samsung.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r142488 r142492  
     12013-02-11  Adam Barth  <abarth@webkit.org>
     2
     3        document.write during window.onload can trigger DumpRenderTree to dump the render tree
     4        https://bugs.webkit.org/show_bug.cgi?id=109465
     5
     6        Reviewed by Eric Seidel.
     7
     8        This patch is a partial revert of
     9        http://trac.webkit.org/changeset/142378. It's not safe to call
     10        checkComplete during the load event. We'll need to find another way of
     11        calling checkComplete at the right time.
     12
     13        Test: fast/parser/document-write-during-load.html
     14
     15        * dom/Document.cpp:
     16        (WebCore::Document::decrementActiveParserCount):
     17
    1182013-02-11  Andrey Kosyakov  <caseq@chromium.org>
    219
  • trunk/Source/WebCore/dom/Document.cpp

    r142378 r142492  
    57725772bool Document::hasActiveParser()
    57735773{
    5774     return m_activeParserCount || (m_parser && m_parser->processingData());
     5774    return m_parser && m_parser->processingData();
    57755775}
    57765776
     
    57785778{
    57795779    --m_activeParserCount;
    5780     if (!frame())
    5781         return;
    5782     frame()->loader()->checkLoadComplete();
    57835780}
    57845781
Note: See TracChangeset for help on using the changeset viewer.