diff --git a/content/base/src/Element.cpp b/content/base/src/Element.cpp index e0ee642e748..6fa88f22ef6 100644 --- a/content/base/src/Element.cpp +++ b/content/base/src/Element.cpp @@ -957,7 +957,7 @@ Element::CreateShadowRoot(ErrorResult& aError) nsXBLPrototypeBinding* protoBinding = new nsXBLPrototypeBinding(); aError = protoBinding->Init(NS_LITERAL_CSTRING("shadowroot"), - docInfo, this, true); + docInfo, nullptr, true); if (aError.Failed()) { delete protoBinding; return nullptr;