Title: [191024] branches/safari-601.1.46-branch/Source/WebKit2
Revision
191024
Author
[email protected]
Date
2015-10-13 18:02:24 -0700 (Tue, 13 Oct 2015)

Log Message

Merged r191022.  rdar://problem/23100514

Modified Paths

Diff

Modified: branches/safari-601.1.46-branch/Source/WebKit2/ChangeLog (191023 => 191024)


--- branches/safari-601.1.46-branch/Source/WebKit2/ChangeLog	2015-10-14 00:29:35 UTC (rev 191023)
+++ branches/safari-601.1.46-branch/Source/WebKit2/ChangeLog	2015-10-14 01:02:24 UTC (rev 191024)
@@ -1,3 +1,20 @@
+2015-10-13  Babak Shafiei  <[email protected]>
+
+        Merge r191022.
+
+    2015-10-13  Yongjun Zhang  <[email protected]>
+
+            Use the correct notification strings for view service applications state change.
+            https://bugs.webkit.org/show_bug.cgi?id=150107
+
+            Use the correct notification names "_UIViewServiceHostDidEnterBackgroundNotification" and
+            "_UIViewServiceHostWillEnterForegroundNotification" to listen to view service application state changes.
+
+            Reviewed by Gavin Barraclough.
+
+            * UIProcess/ApplicationStateTracker.mm:
+            (WebKit::ApplicationStateTracker::ApplicationStateTracker):
+
 2015-10-09  Babak Shafiei  <[email protected]>
 
         Roll out r190604.

Modified: branches/safari-601.1.46-branch/Source/WebKit2/UIProcess/ApplicationStateTracker.mm (191023 => 191024)


--- branches/safari-601.1.46-branch/Source/WebKit2/UIProcess/ApplicationStateTracker.mm	2015-10-14 00:29:35 UTC (rev 191023)
+++ branches/safari-601.1.46-branch/Source/WebKit2/UIProcess/ApplicationStateTracker.mm	2015-10-14 01:02:24 UTC (rev 191024)
@@ -127,11 +127,10 @@
         m_isInBackground = isBackgroundState([m_applicationStateMonitor mostElevatedApplicationStateForPID:applicationPID]);
 
         NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
-        m_didEnterBackgroundObserver = [notificationCenter addObserverForName:@"_UIViewServiceHostDidEnterBackgroundNotificationName" object:serviceViewController queue:nil usingBlock:[this](NSNotification *) {
+        m_didEnterBackgroundObserver = [notificationCenter addObserverForName:@"_UIViewServiceHostDidEnterBackgroundNotification" object:serviceViewController queue:nil usingBlock:[this](NSNotification *) {
             applicationDidEnterBackground();
         }];
-
-        m_willEnterForegroundObserver = [notificationCenter addObserverForName:@"_UIViewServiceHostWillEnterForegroundNotificationName" object:serviceViewController queue:nil usingBlock:[this](NSNotification *) {
+        m_willEnterForegroundObserver = [notificationCenter addObserverForName:@"_UIViewServiceHostWillEnterForegroundNotification" object:serviceViewController queue:nil usingBlock:[this](NSNotification *) {
             applicationWillEnterForeground();
         }];
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to