Re: PSA: longtasks & hidden windows

On Mon, May 1, 2023 at 5:30 PM Boris Schapira <boris@schapira.dev> wrote:

> Hey Noam,
>
> First thought is for people using automation tools like Puppeteer in their
> CI to execute tests: what about headless browser windows? Are they
> considered "visible" or in the background?
>

You could have foreground/background tabs in headless mode. This shouldn't
be affected. Many visibility-gated features are available in headless mode.


>
> --
> Boris
>
>
>
> On Mon, May 1, 2023 at 4:17 PM Noam Rosenthal <nrosenthal@google.com>
> wrote:
>
>> Hola webperfies
>> I'm planning to introduce a change to the implementation of longtask
>> reporting in chrome, that would fix a few longtask-related issues, but
>> would introduce a new change in behavior: long tasks would only be reported
>> for visible windows.
>>
>> Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1441419
>> CL (behind a flag):
>> https://chromium-review.googlesource.com/c/chromium/src/+/4495305
>>
>> Before moving forward with this, I'd like to surface this to the group
>> and see if anyone is relying on longtasks being reported to hidden windows
>> (e.g. minimized, background tab).
>>
>> Thoughts? Objections? 👍s?
>>
>

Received on Monday, 1 May 2023 15:46:57 UTC