Skip to content

Commit

Permalink
Fix nsCSSFrameConstructor::ContentWillBeRemoved reentrancy guard.
Browse files Browse the repository at this point in the history
If we end up reframing the root for other reasons during the
ContentWillBeRemoved call, then we didn't set
mReframingForViewportStyles = true, which prevented us from re-entering
the viewport style update.

Differential Revision: https://phabricator.services.mozilla.com/D231603

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1935728
gecko-commit: 01780493fe010b61d2ea9baa10f9bef51910f05c
gecko-reviewers: dholbert
  • Loading branch information
emilio authored and moz-wptsync-bot committed Dec 10, 2024
1 parent a622501 commit 6d70cd3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions css/css-ruby/ruby-body-element-crash.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<link rel=help href="https://bugzilla.mozilla.org/show_bug.cgi?id=1935728">
<script>
document.addEventListener("DOMContentLoaded", () => {
document.body.getBoundingClientRect();
document.body.parentNode.removeChild(document.body)
document.body.getBoundingClientRect();
})
</script>
<style>
body {
display: ruby-text;
overflow: scroll;
}
</style>
<body>

0 comments on commit 6d70cd3

Please sign in to comment.