diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-01-03 18:50:56 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-01-26 15:50:11 -0500 |
commit | 5cf46e2f87f4f6294d02d96c7905b069c9975eee (patch) | |
tree | 181ea678ca02fe40cd10ced900cf619cf8ced585 /dom/base/nsGlobalWindow.cpp | |
parent | 3a97503b361b0b5ff1b5d8948a74497710f2a095 (diff) | |
download | UXP-5cf46e2f87f4f6294d02d96c7905b069c9975eee.tar UXP-5cf46e2f87f4f6294d02d96c7905b069c9975eee.tar.gz UXP-5cf46e2f87f4f6294d02d96c7905b069c9975eee.tar.lz UXP-5cf46e2f87f4f6294d02d96c7905b069c9975eee.tar.xz UXP-5cf46e2f87f4f6294d02d96c7905b069c9975eee.zip |
Bug 1341693 - Don't need to check GetDocShell() when creating CustomElementRegistry;
Tag UXP Issue #1344
Diffstat (limited to 'dom/base/nsGlobalWindow.cpp')
-rw-r--r-- | dom/base/nsGlobalWindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp index dd1fe4586..c965d5b97 100644 --- a/dom/base/nsGlobalWindow.cpp +++ b/dom/base/nsGlobalWindow.cpp @@ -4241,8 +4241,9 @@ CustomElementRegistry* nsGlobalWindow::CustomElements() { MOZ_RELEASE_ASSERT(IsInnerWindow()); + if (!mCustomElements) { - mCustomElements = CustomElementRegistry::Create(AsInner()); + mCustomElements = new CustomElementRegistry(AsInner()); } return mCustomElements; |