Bug 1372643 - Guard ScriptLoader::GetScriptGlobalObject with mDocument weak-ptr check. r=mrbkap
This commit is contained in:
@@ -1781,6 +1781,10 @@ ScriptLoader::FireScriptEvaluated(nsresult aResult,
|
||||
already_AddRefed<nsIScriptGlobalObject>
|
||||
ScriptLoader::GetScriptGlobalObject()
|
||||
{
|
||||
if (!mDocument) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
nsPIDOMWindowInner* pwin = mDocument->GetInnerWindow();
|
||||
if (!pwin) {
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user