[iOS Simulator WK1] ASSERT loading Blink layout test imported/web-platform-tests...
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Jan 2016 03:28:24 +0000 (03:28 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Jan 2016 03:28:24 +0000 (03:28 +0000)
https://bugs.webkit.org/show_bug.cgi?id=153070
<rdar://problem/24183105>

Reviewed by Darin Adler.

No new tests, this prevents an existing test from crashing.

* platform/mock/MockRealtimeVideoSource.cpp:
(WebCore::MockRealtimeVideoSource::MockRealtimeVideoSource): Create the timer with RunLoop::current
  instead of RunLoop::main.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@195244 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/mock/MockRealtimeVideoSource.cpp

index 26d0ec1..f3daa38 100644 (file)
@@ -1,3 +1,17 @@
+2016-01-18  Eric Carlson  <eric.carlson@apple.com>
+
+        [iOS Simulator WK1] ASSERT loading Blink layout test imported/web-platform-tests/mediacapture-streams/stream-api/mediastream/mediastream-idl.html
+        https://bugs.webkit.org/show_bug.cgi?id=153070
+        <rdar://problem/24183105>
+
+        Reviewed by Darin Adler.
+
+        No new tests, this prevents an existing test from crashing.
+
+        * platform/mock/MockRealtimeVideoSource.cpp:
+        (WebCore::MockRealtimeVideoSource::MockRealtimeVideoSource): Create the timer with RunLoop::current
+          instead of RunLoop::main.
+
 2016-01-18  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
 
         Reduce PassRefPtr uses in dom - 3
index 618a8dd..28b7670 100644 (file)
@@ -57,7 +57,7 @@ RefPtr<MockRealtimeVideoSource> MockRealtimeVideoSource::create()
 
 MockRealtimeVideoSource::MockRealtimeVideoSource()
     : MockRealtimeMediaSource(createCanonicalUUIDString(), RealtimeMediaSource::Video, mockVideoSourceName())
-    , m_timer(RunLoop::main(), this, &MockRealtimeVideoSource::generateFrame)
+    , m_timer(RunLoop::current(), this, &MockRealtimeVideoSource::generateFrame)
 {
     m_dashWidths.reserveInitialCapacity(2);
     m_dashWidths.uncheckedAppend(6);