mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1205399 - Fix OS X crash when no alert principal is passed. r=bustage
This commit is contained in:
parent
65fbfce580
commit
181f18eda9
@ -248,7 +248,7 @@ OSXNotificationCenter::ShowAlertNotification(const nsAString & aImageUrl, const
|
||||
notification.hasActionButton = NO;
|
||||
|
||||
// If this is not an application/extension alert, show additional actions dealing with permissions.
|
||||
if (!nsContentUtils::IsSystemOrExpandedPrincipal(aPrincipal)
|
||||
if (aPrincipal && !nsContentUtils::IsSystemOrExpandedPrincipal(aPrincipal)
|
||||
&& !aPrincipal->GetIsNullPrincipal()) {
|
||||
nsCOMPtr<nsIStringBundleService> sbs = do_GetService(NS_STRINGBUNDLE_CONTRACTID);
|
||||
nsCOMPtr<nsIStringBundle> bundle;
|
||||
|
Loading…
Reference in New Issue
Block a user