mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-10 09:17:32 +09:00
Bug 1341693 - Don't need to check GetDocShell() when creating CustomElementRegistry;
Tag UXP Issue #1344
This commit is contained in:
parent
a91f703945
commit
62678b52de
5 changed files with 23 additions and 35 deletions
|
|
@ -4241,8 +4241,9 @@ CustomElementRegistry*
|
|||
nsGlobalWindow::CustomElements()
|
||||
{
|
||||
MOZ_RELEASE_ASSERT(IsInnerWindow());
|
||||
|
||||
if (!mCustomElements) {
|
||||
mCustomElements = CustomElementRegistry::Create(AsInner());
|
||||
mCustomElements = new CustomElementRegistry(AsInner());
|
||||
}
|
||||
|
||||
return mCustomElements;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue