mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1039165: Replace spammy NS_ENSURE_TRUE in nsDocShell::CheckLoadingPermissions with simple early-return. r=bholley
This commit is contained in:
parent
311e6e6684
commit
f512753c3b
@ -9184,7 +9184,9 @@ nsDocShell::CheckLoadingPermissions()
|
||||
// Note - The check for a current JSContext here isn't necessarily sensical.
|
||||
// It's just designed to preserve the old semantics during a mass-conversion
|
||||
// patch.
|
||||
NS_ENSURE_TRUE(nsContentUtils::GetCurrentJSContext(), NS_OK);
|
||||
if (!nsContentUtils::GetCurrentJSContext()) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// Check if the caller is from the same origin as this docshell,
|
||||
// or any of its ancestors.
|
||||
|
Loading…
Reference in New Issue
Block a user