[Qt] Crash in gmail on enabling desktop notifications
authorAllan Sandfeld Jensen <allan.jensen@digia.com>
Tue, 22 Jan 2013 14:09:02 +0000 (15:09 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 22 Jan 2013 14:23:15 +0000 (15:23 +0100)
commit28b2bb706534bc641f475dbc3e5cf32b9f39fb8c
tree06cb7a3c23ed4cc3abac21732c62dbc752b0b2ff
parent70c60ffc8530221d54e0b3f5d9b8687cd3eff875
[Qt] Crash in gmail on enabling desktop notifications

https://bugs.webkit.org/show_bug.cgi?id=106699

Patch by David Rosca.
Reviewed by Jocelyn Turcotte.

Protect against callback that may be null. This also matches WebKit2 behaviour.

* WebCoreSupport/NotificationPresenterClientQt.cpp:
(WebCore::NotificationPresenterClientQt::allowNotificationForFrame):

Reviewed-by: jocelyn.turcotte@digia.com
Change-Id: Icac8f0202c378d129895b47224bfabc9b2a53b3d
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Source/WebKit/qt/ChangeLog
Source/WebKit/qt/WebCoreSupport/NotificationPresenterClientQt.cpp