Changeset 61602 in webkit


Ignore:
Timestamp:
Jun 21, 2010 11:25:29 PM (14 years ago)
Author:
abarth@webkit.org
Message:

2010-06-21 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

document.write from BeforeLoad should not assert
https://bugs.webkit.org/show_bug.cgi?id=40971

Test what happens when we document.write from a beforeload event.
Notice that the order is wrong. I'll fix that in a followup patch.

  • fast/tokenizer/write-before-load-expected.txt: Added.
  • fast/tokenizer/write-before-load.html: Added.

2010-06-21 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

document.write from BeforeLoad should not assert
https://bugs.webkit.org/show_bug.cgi?id=40971

We're setting the parse blocking script too early. It's not actually
blocking parsing yet.

Test: fast/tokenizer/write-before-load.html

  • html/HTML5ScriptRunner.cpp: (WebCore::HTML5ScriptRunner::requestScript):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r61601 r61602  
     12010-06-21  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        document.write from BeforeLoad should not assert
     6        https://bugs.webkit.org/show_bug.cgi?id=40971
     7
     8        Test what happens when we document.write from a beforeload event.
     9        Notice that the order is wrong.  I'll fix that in a followup patch.
     10
     11        * fast/tokenizer/write-before-load-expected.txt: Added.
     12        * fast/tokenizer/write-before-load.html: Added.
     13
    1142010-06-21  Dmitry Titov  <dimich@chromium.org>
    215
  • trunk/WebCore/ChangeLog

    r61597 r61602  
     12010-06-21  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        document.write from BeforeLoad should not assert
     6        https://bugs.webkit.org/show_bug.cgi?id=40971
     7
     8        We're setting the parse blocking script too early.  It's not actually
     9        blocking parsing yet.
     10
     11        Test: fast/tokenizer/write-before-load.html
     12
     13        * html/HTML5ScriptRunner.cpp:
     14        (WebCore::HTML5ScriptRunner::requestScript):
     15
    1162010-06-21  Chris Fleizach  <cfleizach@apple.com>
    217
  • trunk/WebCore/html/HTML5ScriptRunner.cpp

    r61374 r61602  
    235235
    236236    // FIXME: We need to resolve the url relative to the element.
     237    if (!script->dispatchBeforeLoadEvent(srcValue)) // Part of HTML5?
     238        return;
    237239    m_parsingBlockingScript.element = script;
    238     if (!script->dispatchBeforeLoadEvent(srcValue)) // Part of HTML5?
    239         return;
    240240    // This should correctly return 0 for empty or invalid srcValues.
    241241    CachedScript* cachedScript = m_document->docLoader()->requestScript(srcValue, toScriptElement(script)->scriptCharset());
Note: See TracChangeset for help on using the changeset viewer.