mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-25 00:27:29 +09:00
Guard missing process global script load
This commit is contained in:
parent
7ed26747c2
commit
23756fca47
1 changed files with 3 additions and 0 deletions
|
|
@ -1929,6 +1929,9 @@ public:
|
||||||
{
|
{
|
||||||
ProcessGlobal* global = ProcessGlobal::Get();
|
ProcessGlobal* global = ProcessGlobal::Get();
|
||||||
MOZ_ASSERT(!aRunInGlobalScope);
|
MOZ_ASSERT(!aRunInGlobalScope);
|
||||||
|
if (NS_WARN_IF(!global)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
global->LoadScript(aURL);
|
global->LoadScript(aURL);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue