<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [iOS Simulator WK1] ASSERT loading Blink layout test imported/web-platform-tests/mediacapture-streams/stream-api/mediastream/mediastream-idl.html"
   href="https://bugs.webkit.org/show_bug.cgi?id=153070#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [iOS Simulator WK1] ASSERT loading Blink layout test imported/web-platform-tests/mediacapture-streams/stream-api/mediastream/mediastream-idl.html"
   href="https://bugs.webkit.org/show_bug.cgi?id=153070">bug 153070</a>
              from <span class="vcard"><a class="email" href="mailto:eric.carlson&#64;apple.com" title="Eric Carlson &lt;eric.carlson&#64;apple.com&gt;"> <span class="fn">Eric Carlson</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=153070#c3">comment #3</a>)
<span class="quote">&gt; (In reply to <a href="show_bug.cgi?id=153070#c2">comment #2</a>)
&gt; &gt; Assert happens when creating a runloop timer on the Web thread. Assert is:
&gt; &gt; 
&gt; &gt; RunLoop&amp; RunLoop::main()
&gt; &gt; {
&gt; &gt;     ASSERT(s_mainRunLoop);
&gt; &gt;     return *s_mainRunLoop;
&gt; &gt; }
&gt; &gt; 
&gt; &gt; Is it not possible to use a runloop timer on the WebThread?
&gt; 
&gt; I think it is possible, but there may be a &quot;special&quot; way to do it.  (And I
&gt; remember their being caveats, but not exactly what they were.)
&gt; 
&gt; This is stating the obvious (probably not helpful), but you want to use a
&gt; WebThread runloop, not a main thread runloop, if you're going to spin it on
&gt; the WebThread.</span >

Of course, I should be passing &quot;RunLoop::current()&quot; instead of &quot;RunLoop::main()&quot; to the timer constructor.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>