summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webkit/tools/test_shell/notification_presenter.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/webkit/tools/test_shell/notification_presenter.cc b/webkit/tools/test_shell/notification_presenter.cc
index 2fc7a30..e0402d29 100644
--- a/webkit/tools/test_shell/notification_presenter.cc
+++ b/webkit/tools/test_shell/notification_presenter.cc
@@ -31,9 +31,12 @@ bool TestNotificationPresenter::show(const WebNotification& notification) {
notification.url().spec().data());
} else {
printf("DESKTOP NOTIFICATION: icon %s, title %s, text %s\n",
- notification.iconURL().spec().data(),
- notification.title().utf8().data(),
- notification.body().utf8().data());
+ notification.iconURL().isEmpty() ? "" :
+ notification.iconURL().spec().data(),
+ notification.title().isEmpty() ? "" :
+ notification.title().utf8().data(),
+ notification.body().isEmpty() ? "" :
+ notification.body().utf8().data());
}
WebNotification event_target(notification);