Assume we have a continuation chain C0, C1, C2, C3, C4. The mFirstContinuation cache invariant can be violated via the following steps: 1. Remove C0, then C1 self-caches. C2, C3, C4's cache purged. 2. Remove C3, then C2->FirstContinuation() slow-walks to C1, C4 caches C1 while C2's cache stays null. 3. Remove C1, then C2 becomes new first-continuation. It skips purging C4's cache because its old cache is already null, leaving C4's cache pointing to the removed C1. This patch fixes this by propagating the prev-continuation's cache value directly, whether the cache is valid or purged. Differential Revision: https://phabricator.services.mozilla.com/D315652
43 lines
760 B
HTML
43 lines
760 B
HTML
<!DOCTYPE html>
|
|
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
|
|
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
|
|
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=2046964">
|
|
|
|
<style>
|
|
* {
|
|
column-width: 8px;
|
|
scale: 0.867 1 0;
|
|
white-space: pre;
|
|
}
|
|
.cl1 {
|
|
column-span: all;
|
|
}
|
|
.cl2 {
|
|
position: fixed;
|
|
top: 45vmax;
|
|
}
|
|
</style>
|
|
<script>
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
document.documentElement.offsetHeight;
|
|
a.rules = "groups";
|
|
document.documentElement.offsetHeight;
|
|
})
|
|
</script>
|
|
<bdi>
|
|
<table id="a">
|
|
<tfoot class="cl2"></tfoot>
|
|
</table>
|
|
<video></video>
|
|
<dir>a</dir>
|
|
|
|
|
|
<div class="cl1"></div>
|
|
|
|
</bdi>
|
|
<iframe align="right"></iframe>
|
|
<li></li>
|
|
<menu>
|
|
<map></map>
|
|
</menu>
|