Skip to content

Conversation

@canova
Copy link
Member

@canova canova commented Dec 10, 2025

After the changes in #56018 this test started to rely on pagereveal since the way we load the popup has changed.

pagereveal is a new event type that's not implemented by every browsers yet and this test is for lcp rather than the CSS view transitions, so we shouldn't rely on that.

On the other hand, if a browser doesn't expose the pageshow event it means that this is a sync about:blank, so the document should be immediately ready. That's why checking popup.document.readyState is simple and effective enough.

Tested it with all major browsers and it seems like it's passing in all of them.

Once Firefox lands the synchronous about:blank changes it would be good to remove this code all together.

Fixes #56620.

@canova
Copy link
Member Author

canova commented Dec 10, 2025

cc @gsnedders, @smfr, @shaseley could you review this one? Thanks!

Copy link
Member

@gsnedders gsnedders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like the re-run of the Safari job to complete to make sure this is fine, but my only real comment here is the indentation is off.

After the changes in web-platform-tests#56018 this test started to rely on `pagereveal`
since the way we load the popup has changed.

`pagereveal` is a new event type that's not implemented by every
browsers yet and this test is for lcp rather than the CSS view
transitions, so we shouldn't rely on that.

On the other hand, if a browser doesn't expose the `pageshow` event it
means that this is a sync `about:blank`, so the document should be
immediately ready. That's why checking `popup.document.readyState` is
simple and effective enough.

Tested it with all major browsers and it seems like it's passing in all
of them.

Once Firefox lands the synchronous `about:blank` changes it would be
good to remove this code all together.
@canova canova force-pushed the lcp-image-upscaling branch from c6594c3 to 7aba0d9 Compare December 15, 2025 10:57
Copy link
Member Author

@canova canova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Safari failure seems unrelated since it failed in the before case too. I rebased the PR on top of the recent master branch now. Let's see if it's going to be different.

But I tested this manually on Safari and it was passing there.

@canova canova requested a review from gsnedders December 15, 2025 12:29
@gsnedders
Copy link
Member

The Safari failure seems unrelated since it failed in the before case too.

Yeah, the original run ran into an infrastructure issue, hence both before/after failing. The re-run looked fine, as does the run after rebasing.

Anyhow, r+'d now.

@zcorpan zcorpan merged commit 4f21b11 into web-platform-tests:master Dec 15, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

6 participants