diff options
Diffstat (limited to 'WebCore/notifications/NotificationCenter.cpp')
-rw-r--r-- | WebCore/notifications/NotificationCenter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/WebCore/notifications/NotificationCenter.cpp b/WebCore/notifications/NotificationCenter.cpp index f9672ad..ec70f0a 100644 --- a/WebCore/notifications/NotificationCenter.cpp +++ b/WebCore/notifications/NotificationCenter.cpp @@ -61,6 +61,11 @@ void NotificationCenter::requestPermission(PassRefPtr<VoidCallback> callback) void NotificationCenter::disconnectFrame() { + // m_notificationPresenter should never be 0. But just to be safe, we check it here. + // Due to the mysterious bug http://code.google.com/p/chromium/issues/detail?id=49323. + ASSERT(m_notificationPresenter); + if (!m_notificationPresenter) + return; m_notificationPresenter->cancelRequestsForPermission(m_scriptExecutionContext); m_notificationPresenter = 0; } |