Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(871)

Unified Diff: sky/engine/core/html/parser/HTMLParserOptions.cpp

Issue 664573004: Live the dream (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: DEPS Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/html/parser/HTMLDocumentParser.cpp ('k') | sky/engine/core/html/parser/HTMLTreeBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/parser/HTMLParserOptions.cpp
diff --git a/sky/engine/core/html/parser/HTMLParserOptions.cpp b/sky/engine/core/html/parser/HTMLParserOptions.cpp
index 7696f176ab11647dbbf1fa1a2c660957e02e7388..b983a44463c353e95c2bdd190f21eee2e9437581 100644
--- a/sky/engine/core/html/parser/HTMLParserOptions.cpp
+++ b/sky/engine/core/html/parser/HTMLParserOptions.cpp
@@ -35,16 +35,7 @@ namespace blink {
HTMLParserOptions::HTMLParserOptions(Document* document)
{
- // We force the main-thread parser for two cases:
- // - about:blank and javascript (which uses about:blank) for compatibility
- // with historical synchronous loading/parsing behavior.
- // - instances where the Document has no Frame (this happens sometimes for
- // HTML imports, and possibly other cases).
- // FIXME: We want to use the threaded parser for XHRs (where there is no
- // frame) so the second case should go away eventually.
- // FIXME: Gecko does not load javascript: urls synchronously, why do we?
- // See tests/loader/iframe-sync-loads.html
- useThreading = document && document->frame() && !document->url().isAboutBlankURL();
+ useThreading = document && !document->url().isAboutBlankURL();
}
}
« no previous file with comments | « sky/engine/core/html/parser/HTMLDocumentParser.cpp ('k') | sky/engine/core/html/parser/HTMLTreeBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698