Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1943)

Unified Diff: Source/modules/notifications/Notification.cpp

Issue 745713003: Mark the Notification as being closed before dispatching the event. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/notifications/Notification.cpp
diff --git a/Source/modules/notifications/Notification.cpp b/Source/modules/notifications/Notification.cpp
index 212abc10a87ffc203f632f35fb5cbd9a2b003cb7..6c0587fff8cb74e626169073a0388e791b290785 100644
--- a/Source/modules/notifications/Notification.cpp
+++ b/Source/modules/notifications/Notification.cpp
@@ -139,8 +139,8 @@ void Notification::dispatchErrorEvent()
void Notification::dispatchCloseEvent()
{
- dispatchEvent(Event::create(EventTypeNames::close));
m_state = NotificationStateClosed;
+ dispatchEvent(Event::create(EventTypeNames::close));
}
TextDirection Notification::direction() const
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698