<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@apple.com" title="Eric Carlson <eric.carlson@apple.com>"> <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">> (In reply to <a href="show_bug.cgi?id=153070#c2">comment #2</a>)
> > Assert happens when creating a runloop timer on the Web thread. Assert is:
> >
> > RunLoop& RunLoop::main()
> > {
> > ASSERT(s_mainRunLoop);
> > return *s_mainRunLoop;
> > }
> >
> > Is it not possible to use a runloop timer on the WebThread?
>
> I think it is possible, but there may be a "special" way to do it. (And I
> remember their being caveats, but not exactly what they were.)
>
> This is stating the obvious (probably not helpful), but you want to use a
> WebThread runloop, not a main thread runloop, if you're going to spin it on
> the WebThread.</span >
Of course, I should be passing "RunLoop::current()" instead of "RunLoop::main()" 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>