Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1350090 - Turn off the spammy warning that goes off every time we…
Browse files Browse the repository at this point in the history
… create an about:blank content viewer; r=mystor
  • Loading branch information
ehsan committed Mar 26, 2017
1 parent e810f88 commit ce0c5c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion extensions/cookie/nsPermissionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,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);
Expand Down

0 comments on commit ce0c5c8

Please sign in to comment.