Changeset 61602 in webkit
- Timestamp:
- Jun 21, 2010 11:25:29 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r61601 r61602 1 2010-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 1 14 2010-06-21 Dmitry Titov <dimich@chromium.org> 2 15 -
trunk/WebCore/ChangeLog
r61597 r61602 1 2010-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 1 16 2010-06-21 Chris Fleizach <cfleizach@apple.com> 2 17 -
trunk/WebCore/html/HTML5ScriptRunner.cpp
r61374 r61602 235 235 236 236 // FIXME: We need to resolve the url relative to the element. 237 if (!script->dispatchBeforeLoadEvent(srcValue)) // Part of HTML5? 238 return; 237 239 m_parsingBlockingScript.element = script; 238 if (!script->dispatchBeforeLoadEvent(srcValue)) // Part of HTML5?239 return;240 240 // This should correctly return 0 for empty or invalid srcValues. 241 241 CachedScript* cachedScript = m_document->docLoader()->requestScript(srcValue, toScriptElement(script)->scriptCharset());
Note: See TracChangeset
for help on using the changeset viewer.