Changeset 140986 in webkit


Ignore:
Timestamp:
Jan 28, 2013 11:35:41 AM (11 years ago)
Author:
tonyg@chromium.org
Message:

Don't use the threaded HTML parser for javascript: URLs
https://bugs.webkit.org/show_bug.cgi?id=107975

Reviewed by Adam Barth.

Several layout tests depend on javascript: URL iframes loading synchronously including fast/loader/javascript-url-encoding.html.
This patch avoids using the threaded parser for those URLs so they will continue to be synchronous.

No new tests because covered by existing tests.

  • html/parser/HTMLParserOptions.cpp:

(WebCore::HTMLParserOptions::HTMLParserOptions):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r140985 r140986  
     12013-01-28  Tony Gentilcore  <tonyg@chromium.org>
     2
     3        Don't use the threaded HTML parser for javascript: URLs
     4        https://bugs.webkit.org/show_bug.cgi?id=107975
     5
     6        Reviewed by Adam Barth.
     7
     8        Several layout tests depend on javascript: URL iframes loading synchronously including fast/loader/javascript-url-encoding.html.
     9        This patch avoids using the threaded parser for those URLs so they will continue to be synchronous.
     10
     11        No new tests because covered by existing tests.
     12
     13        * html/parser/HTMLParserOptions.cpp:
     14        (WebCore::HTMLParserOptions::HTMLParserOptions):
     15
    1162013-01-27  Sam Weinig  <sam@webkit.org>
    217
  • trunk/Source/WebCore/html/parser/HTMLParserOptions.cpp

    r139959 r140986  
    4242    usePreHTML5ParserQuirks = settings && settings->usePreHTML5ParserQuirks();
    4343#if ENABLE(THREADED_HTML_PARSER)
    44     useThreading = settings && settings->threadedHTMLParser();
     44    useThreading = settings && settings->threadedHTMLParser() && !document->url().isBlankURL();
    4545#else
    4646    useThreading = false;
Note: See TracChangeset for help on using the changeset viewer.