Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.4k
compositing: Re-enable LCP calculation on WebViews after they have been reloaded/navigated#41169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ce2b872 tob780cfdComparemrobinson commentedDec 10, 2025
|
components/servo/webview.rs Outdated
| } | ||
| pubfnreload(&self){ | ||
| self.inner().servo.compositor().notify_reload(self.id()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
It isvery odd that this only happens on reloads and not on any other type of navigation. Can you justify this a bit in the PR description? Why is this behavior necessary / useful?
mrobinson commentedDec 11, 2025
Let's add some tests for LCP. This is a good moment to do that. Why don't we need this behavior on other types of navigations? Why just reloads? |
shubhamg13 commentedDec 11, 2025
Yeah, You are right. We need this consideration for other navigations too. I will add a follow-up to this one. |
shubhamg13 commentedDec 11, 2025
cc:@xiaochengh |
b780cfd to86aa138Comparemrobinson commentedDec 11, 2025
Let's handle it in this change with tests please. |
294ef95 to0e85549Comparee51b6f4 toc737182Comparec737182 to6b820c0Compareshubhamg13 commentedDec 16, 2025
I added for reload and load_url(from URL Bar and navigation). And added test as well. Please help to review. |
6b820c0 to900cf8bCompareSigned-off-by: Shubham Gupta <shubham.gupta@chromium.org>
900cf8b to566cb53Compare
Uh oh!
There was an error while loading.Please reload this page.
Re-enable LCP calculation on WebViews after they have been reloaded/navigated.
Scenario: LCP calculation is stopped when user interaction is detected. When page is reloaded. No, LCP is observed. So, can't develop the performance or benchmark tools.
Motivation: No explicit specs found for this, but this was missed during implementation from my side. And also observed inconsistent with Chrome.
Testing:
components/servo/tests/largest_contentful_paint_calculator.rsFixes: N/A (Earlier after reload LCP was not generated)