On Fri, Jan 6, 2017 at 6:20 AM, Boris Zbarsky <bzbar...@mit.edu> wrote:

> On 1/6/17 5:53 AM, Xidorn Quan wrote:
>
>> I guess that may also mean billm's bug 1308039 [1] which tried to do
>> painting during GC (which will be backed out soon [2] because of lots of
>> breakage) may never get chance to land anymore, since this API means it
>> is expected to run JS code during painting.
>>
>
> That should be OK, I think, as long as the paint worklets are on a
> separate thread (and hence in a separate runtime) from the JS which is
> doing GC when we decide to paint.
>
> In-thread worklets would be a problem for paint-during-gc, though.


Are in-thread worklets a thing? The patch that allows tab switch painting
while content JS runs isn't going to be backed out. If the tab switch
paints allow JS to run, and that JS is from the same context as the content
JS that was interrupted, then that would be bad.

-Bill
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to