From 0c96c6eaa616fa3fe31a849ac1d69eeb16dbee76 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 20 Nov 2014 23:14:49 -0800 Subject: [PATCH] Add support for import@async We don't have a good way of testing this behavior without introducing a race. Ideally we'd unit test it, but we don't really have unit tests yet. R=esprehn@chromium.org Review URL: https://codereview.chromium.org/751493003 --- engine/core/html/HTMLImportElement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/core/html/HTMLImportElement.cpp b/engine/core/html/HTMLImportElement.cpp index 7c60928d099..dbd92bc3498 100644 --- a/engine/core/html/HTMLImportElement.cpp +++ b/engine/core/html/HTMLImportElement.cpp @@ -74,7 +74,7 @@ void HTMLImportElement::importChildWasDestroyed(HTMLImportChild* child) bool HTMLImportElement::isSync() const { - return true; + return !hasAttribute(HTMLNames::asyncAttr); } Element* HTMLImportElement::link()