Skip to content

merge_pr_54210

Compare
Choose a tag to compare
@github-actions github-actions released this 08 Aug 13:19

Unify paths for constructing the style sheet list.

We used to have three different ways of constructing the DOM-visible
style sheet list (document.styleSheets), and one of them (the one
for documents) would mistakenly include adopted style sheets as part
of the list. This meant that document.styleSheets could differ
depending on whether we had recently updated RuleSets or not.

Make every path call the existing fast path (the one that only
constructs this list, not RuleSets and such), fixing the problem.
Also, add a test.

Fixed: 437259105
Change-Id: Ida596657053af3a4a380ac5909f9fc6ed011a97d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6832391
Commit-Queue: Steinar H Gunderson [email protected]
Reviewed-by: Rune Lillesveen [email protected]
Commit-Queue: Rune Lillesveen [email protected]
Auto-Submit: Steinar H Gunderson [email protected]
Cr-Commit-Position: refs/heads/main@{#1498720}