mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 06:18:38 +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();
|
||||
MOZ_ASSERT(!aRunInGlobalScope);
|
||||
if (NS_WARN_IF(!global)) {
|
||||
return false;
|
||||
}
|
||||
global->LoadScript(aURL);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue