Bug 1341693 - Don't need to check GetDocShell() when creating CustomElementRegistry;

Tag UXP Issue #1344
This commit is contained in:
Gaming4JC 2020-01-03 18:50:56 -05:00 • committed by Roy Tam
commit 62678b52de
5 changed files with 23 additions and 35 deletions

View file

@ -4241,8 +4241,9 @@ CustomElementRegistry*
nsGlobalWindow::CustomElements()
{
MOZ_RELEASE_ASSERT(IsInnerWindow());
if (!mCustomElements) {
mCustomElements = CustomElementRegistry::Create(AsInner());
mCustomElements = new CustomElementRegistry(AsInner());
}
return mCustomElements;