summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-09-08 15:42:46 +0200
committerGitHub <noreply@github.com>2018-09-08 15:42:46 +0200
commita90b6fe53b6843833e548a17a2f1fe55e71dbc5f (patch)
treeaa3422834adb193c5fe2e8cef2dbe18b70d9df28
parent347e6ac31e4cdfff7351744733c99d67af59edad (diff)
parent22bb99a3220272dd20b43d946741761c7efe37c5 (diff)
downloaduxp-a90b6fe53b6843833e548a17a2f1fe55e71dbc5f.tar.gz
Merge pull request #755 from g4jc/debugspam
backport mozbug 1350090: Turn off the spammy warning that goes off every time we create an about:blank content viewer; r=mystor
-rw-r--r--extensions/cookie/nsPermissionManager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/extensions/cookie/nsPermissionManager.cpp b/extensions/cookie/nsPermissionManager.cpp
index 1f3c257ddf..13ae7fd35b 100644
--- a/extensions/cookie/nsPermissionManager.cpp
+++ b/extensions/cookie/nsPermissionManager.cpp
@@ -107,7 +107,11 @@ nsresult
GetOriginFromPrincipal(nsIPrincipal* aPrincipal, nsACString& aOrigin)
{
nsresult rv = aPrincipal->GetOriginNoSuffix(aOrigin);
- NS_ENSURE_SUCCESS(rv, rv);
+ // The principal may belong to the about:blank content viewer, so this can be
+ // expected to fail.
+ if (NS_FAILED(rv)) {
+ return rv;
+ }
nsAutoCString suffix;
rv = aPrincipal->GetOriginSuffix(suffix);