summaryrefslogtreecommitdiffstats
path: root/dom/notification/Notification.h
diff options
context:
space:
mode:
Diffstat (limited to 'dom/notification/Notification.h')
-rw-r--r--dom/notification/Notification.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/notification/Notification.h b/dom/notification/Notification.h
index 4ffa69cf49..61f4a8f1c3 100644
--- a/dom/notification/Notification.h
+++ b/dom/notification/Notification.h
@@ -245,7 +245,8 @@ class Notification : public DOMEventTargetHelper,
nsIGlobalObject* aGlobal, const nsAString& aID, const nsAString& aTitle,
const NotificationOptions& aOptions, ErrorResult& aRv);
- nsresult Init();
+ // Triggers CloseInternal for non-persistent notifications if window goes away
+ nsresult MaybeObserveWindowFrozenOrDestroyed();
bool IsInPrivateBrowsing();
void ShowInternal();
void CloseInternal(bool aContextClosed = false);