Repository navigation
test: credit the shift watch's first presentation while the document parses - #5765
Merged
Merged
Conversation
…parses Chrome may paint a document its HTML parser has only partly added. On a slow runner the parser yielded inside the plain-page smoke test's host section, so a paint showed its select with no option (22 px wide) and without the 20 px svg beside it; the rest of the markup widened the select and pushed it down 5 px, which the watch reported as a move without input. The watch credited first presentation only on a Leaf page, until the runtime stamps data-lf-presented. Any page now presents first until the second frame after its parser finishes. A move after that still fails. Closes #5745
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On a slow runner, Chrome can paint a document its HTML parser has only partly added. In run 42587155541, the parser yielded inside
tests/smoke/test_plain_page.py's host section. The paint showed theselectwith no option yet (22 px wide) and without the 20 pxsvgthat comes after it on the same line. When the rest of the markup arrived, the select widened to 50 px and moved down 5 px. The shift watch reported that as a move without input. The watch already treated everything before first presentation as exempt, but only on a Leaf page, where first presentation ends when the runtime stampsdata-lf-presented. A plain page had no exemption at all, even while its own markup was still being parsed.tests/shift_watch.jsnow treats any page as still in its first presentation until the second frame after the parser finishes (readyStateleavesloading). Moves after that are judged as before.Verification:
<option>, reproduces the CI finding exactly: 22→50 px wide, y 142→147. With the change, the smoke test passes under the same split.test_the_document_moves_what_it_painted_half_parsed_without_a_findingholds the second half of a document on an explicit event rather than a sleep. It fails without the change, withselect#pick moved without input by (0, 25)px. With the change it passes, both normally and with--cpu-throttle 10. Its control, a scripted move after parsing, still fails as before.Closes #5745 — automated triage