diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-01-05 15:31:44 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-01-26 15:50:27 -0500 |
commit | 9bd399b0ed02743b98a5bccc655c378d80f43d76 (patch) | |
tree | 97c6eefe6718d62d901155eca3badbfec67eebb0 /dom/base/nsDocument.cpp | |
parent | a84075dba187563ea9225dbc048d4b11070340d4 (diff) | |
download | uxp-9bd399b0ed02743b98a5bccc655c378d80f43d76.tar.gz |
Bug 1392970 - Part 1: Make CustomElementDefinition ref-counted and put it in CustomElementData.
Tag UXP Issue mcp-graveyard/UXP#1344
Diffstat (limited to 'dom/base/nsDocument.cpp')
-rw-r--r-- | dom/base/nsDocument.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/base/nsDocument.cpp b/dom/base/nsDocument.cpp index 99f922c98b..6c97750b9a 100644 --- a/dom/base/nsDocument.cpp +++ b/dom/base/nsDocument.cpp @@ -5673,7 +5673,8 @@ nsDocument::CustomElementConstructor(JSContext* aCx, unsigned aArgc, JS::Value* } nsCOMPtr<nsIAtom> typeAtom(NS_Atomize(elemName)); - CustomElementDefinition* definition = registry->mCustomDefinitions.Get(typeAtom); + CustomElementDefinition* definition = + registry->mCustomDefinitions.GetWeak(typeAtom); if (!definition) { return true; } |