Skip to content

lcp/image-upscaling.html timeouts in Firefox Nightly after recent change in the test #56620

@canova

Description

@canova

The test changes in #56018 are causing permanent timeouts in Firefox Nightly because Firefox recently changed its behavior to load about:blank synchronously. It aligns with other browsers, but this change has made the pageshow event no longer observable in the context used by this test, and it causes it to timeout.

The test tries to use pagereveal as a fallback, but:

  1. Firefox doesn't support pagereveal yet (bug 1860854).
  2. Since pagereveal is specifically for CSS view transitions, I don't think it's the right fit for testing LCP behavior.

Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=2004678

It would be great to find a different approach here that works across browsers with synchronous about:blank loading.

From my testing, replacing the whole Promise.any call and promises with this code works across all browsers:

if (popup.document.readyState !== 'complete') {
 await new Promise(resolve => popup.addEventListener('pageshow', resolve, {once: true}));
}

cc @gsnedders and @smfr What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions