Index: third_party/WebKit/Source/core/dom/Document.idl |
diff --git a/third_party/WebKit/Source/core/dom/Document.idl b/third_party/WebKit/Source/core/dom/Document.idl |
index 136ae2c285a69c7b9be7dc4cb70f4768e4ba716e..bc6a55fa0e2bac0d8b016d668d6e7f7071004230 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.idl |
+++ b/third_party/WebKit/Source/core/dom/Document.idl |
@@ -55,8 +55,10 @@ interface Document : Node { |
HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString localName); |
HTMLCollection getElementsByClassName(DOMString classNames); |
- [NewObject, DoNotTestNewObject, CustomElementCallbacks, PerWorldBindings, RaisesException] Element createElement(DOMString localName); |
- [NewObject, DoNotTestNewObject, CustomElementCallbacks, RaisesException] Element createElementNS(DOMString? namespaceURI, DOMString qualifiedName); |
+ // TODO(dominicc): Remove CallWith= when crbug/648179 is fixed. |
+ [CallWith=EnteredWindow, NewObject, DoNotTestNewObject, CustomElementCallbacks, PerWorldBindings, RaisesException] Element createElement(DOMString localName); |
+ // TODO(dominicc): Remove CallWith= when crbug/648179 is fixed. |
+ [CallWith=EnteredWindow, NewObject, DoNotTestNewObject, CustomElementCallbacks, RaisesException] Element createElementNS(DOMString? namespaceURI, DOMString qualifiedName); |
[NewObject] DocumentFragment createDocumentFragment(); |
[NewObject] Text createTextNode(DOMString data); |
[NewObject, RaisesException] CDATASection createCDATASection(DOMString data); |
@@ -176,8 +178,10 @@ interface Document : Node { |
[CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=DocumentRegisterElement] CustomElementConstructor registerElement(DOMString type, optional ElementRegistrationOptions options); |
// https://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-interface-to-instantiate |
// FIXME: The typeExtension arguments should not be nullable. |
- [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createElement(DOMString localName, (DOMString or Dictionary)? options); |
- [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString? namespaceURI, DOMString qualifiedName, (DOMString or Dictionary)? options); |
+ // TODO(dominicc): Remove CallWith= when crbug/648179 is fixed. |
+ [CallWith=EnteredWindow, CustomElementCallbacks, PerWorldBindings, RaisesException] Element createElement(DOMString localName, (DOMString or Dictionary)? options); |
+ // TODO(dominicc): Remove CallWith= when crbug/648179 is fixed. |
+ [CallWith=EnteredWindow, CustomElementCallbacks, RaisesException] Element createElementNS(DOMString? namespaceURI, DOMString qualifiedName, (DOMString or Dictionary)? options); |
// Page Visibility |
// https://w3c.github.io/page-visibility/#extensions-to-the-document-interface |