fune/testing/web-platform/tests/css/css-overflow/chrome-body-overflow-propagation-crash.html
Rune Lillesveen 99e5e404f3 Bug 1757175 [wpt PR 32983] - Don't call SetStyle() from outside style recalc, a=testonly
Automatic update from web-platform-tests
Don't call SetStyle() from outside style recalc

Some SetStyle() implementations rely on active style to be up-to-date.
Specifically, SetStyle() may trigger selector matching for scrollbar
pseudo styles, which will crash if RuleSets are not up-to-date.

This reverts https://crrev.com/e8bd0b73bd4850996be5e209694be9f31a0da6ee
which is no longer necessary now that SetStyle() is called
InStyleRecalc().

Bug: 1298547
Change-Id: Ia8681df039deee62f99f78a33a6f82e1b2a8818e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3491007
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#976615}

--

wpt-commits: a7acf47156966274a1ab22566da4577a4d8ecc15
wpt-pr: 32983
2022-03-21 06:51:35 +00:00

17 lines
417 B
HTML

<!doctype html>
<title>CSS Overflow Test: Chrome scrollbar crash - multiple body elements, removed stylesheet</title>
<style id="sheet">
</style>
<style>
body {
overflow: scroll;
width: 100px;
height: 100px;
}
</style>
<body>Pass if no crash</body>
<script>
document.body.offsetTop;
sheet.remove();
document.documentElement.insertBefore(document.createElement("body"), document.body);
</script>