diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 07:25:14 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 07:25:14 -0400 |
commit | fd7a325bc08f1f027b692181b6c7ab5efaf619aa (patch) | |
tree | 2d5fffa0474fea1a9d2f4fb855e6aabdf4b05d4c /dom/html | |
parent | f0b7ba1e2b49858ce2755c61beebe3694cae882f (diff) | |
download | UXP-fd7a325bc08f1f027b692181b6c7ab5efaf619aa.tar UXP-fd7a325bc08f1f027b692181b6c7ab5efaf619aa.tar.gz UXP-fd7a325bc08f1f027b692181b6c7ab5efaf619aa.tar.lz UXP-fd7a325bc08f1f027b692181b6c7ab5efaf619aa.tar.xz UXP-fd7a325bc08f1f027b692181b6c7ab5efaf619aa.zip |
Bug 1422931 - Fix crash with slot element and make webcomponents preference per-doc
Tag #1375
Diffstat (limited to 'dom/html')
-rw-r--r-- | dom/html/HTMLSlotElement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/html/HTMLSlotElement.cpp b/dom/html/HTMLSlotElement.cpp index 1ffde7274..b13729a09 100644 --- a/dom/html/HTMLSlotElement.cpp +++ b/dom/html/HTMLSlotElement.cpp @@ -16,7 +16,7 @@ NS_NewHTMLSlotElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo, mozilla::dom::FromParser aFromParser) { RefPtr<mozilla::dom::NodeInfo> nodeInfo(aNodeInfo); - if (nsDocument::IsWebComponentsEnabled(nodeInfo)) { + if (nsDocument::IsWebComponentsEnabled(nodeInfo->GetDocument())) { already_AddRefed<mozilla::dom::NodeInfo> nodeInfoArg(nodeInfo.forget()); return new mozilla::dom::HTMLSlotElement(nodeInfoArg); } |