Title: [224932] tags/Safari-605.1.14/Source/WTF
Revision
224932
Author
[email protected]
Date
2017-11-16 12:07:30 -0800 (Thu, 16 Nov 2017)

Log Message

Cherry-pick r224907. rdar://problem/35519421

Modified Paths

Diff

Modified: tags/Safari-605.1.14/Source/WTF/ChangeLog (224931 => 224932)


--- tags/Safari-605.1.14/Source/WTF/ChangeLog	2017-11-16 20:02:28 UTC (rev 224931)
+++ tags/Safari-605.1.14/Source/WTF/ChangeLog	2017-11-16 20:07:30 UTC (rev 224932)
@@ -1,3 +1,20 @@
+2017-11-16  Jason Marcell  <[email protected]>
+
+        Cherry-pick r224907. rdar://problem/35519421
+
+    2017-11-15  Alex Christensen  <[email protected]>
+
+            Fix fast/events/message-port-postMessage-recursive.html after r224896
+            https://bugs.webkit.org/show_bug.cgi?id=179749
+
+            Reviewed by Jer Noble.
+
+            * wtf/mac/MainThreadMac.mm:
+            (WTF::currentRunLoopInCommonMode):
+            We sometimes run the runloop in kCFRunLoopDefaultMode, which should also have the responsiveness optimization.
+            This allows the runloop to continue to iterate when we are doing lots of things on the main thread.
+            CFRunLoop.h has a special definition of these two constants.
+
 2017-11-15  Jason Marcell  <[email protected]>
 
         Cherry-pick r224896. rdar://problem/35519421

Modified: tags/Safari-605.1.14/Source/WTF/wtf/mac/MainThreadMac.mm (224931 => 224932)


--- tags/Safari-605.1.14/Source/WTF/wtf/mac/MainThreadMac.mm	2017-11-16 20:02:28 UTC (rev 224931)
+++ tags/Safari-605.1.14/Source/WTF/wtf/mac/MainThreadMac.mm	2017-11-16 20:07:30 UTC (rev 224932)
@@ -124,7 +124,9 @@
 
 bool currentRunLoopInCommonMode()
 {
-    return [[NSRunLoop currentRunLoop] currentMode] == (NSString *)kCFRunLoopCommonModes;
+    NSString *currentMode = [[NSRunLoop currentRunLoop] currentMode];
+    return currentMode == (NSString *)kCFRunLoopCommonModes
+        || currentMode == (NSString *)kCFRunLoopDefaultMode;
 }
 
 void scheduleDispatchFunctionsOnMainThread(SchedulePairHashSet* pairs)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to