mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Bug 1350090 - Turn off the spammy warning that goes off every time we create an about:blank content viewer; r=mystor
This commit is contained in:
parent
2196ea5689
commit
1203da31b5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user