projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git]
/
src
/
ui
/
message_center
/
notification_list.cc
diff --git
a/src/ui/message_center/notification_list.cc
b/src/ui/message_center/notification_list.cc
index
eac4345
..
222b766
100644
(file)
--- a/
src/ui/message_center/notification_list.cc
+++ b/
src/ui/message_center/notification_list.cc
@@
-100,8
+100,10
@@
void NotificationList::UpdateNotificationMessage(
// Handles priority promotion. If the notification is already dismissed but
// the updated notification has higher priority, it should re-appear as a
// Handles priority promotion. If the notification is already dismissed but
// the updated notification has higher priority, it should re-appear as a
- // toast.
- if ((*iter)->priority() < new_notification->priority()) {
+ // toast. Notifications coming from websites through the Web Notification API
+ // will always re-appear on update.
+ if ((*iter)->priority() < new_notification->priority() ||
+ new_notification->notifier_id().type == NotifierId::WEB_PAGE) {
new_notification->set_is_read(false);
new_notification->set_shown_as_popup(false);
}
new_notification->set_is_read(false);
new_notification->set_shown_as_popup(false);
}