I tested same-origin navigation between two documents. Each destination document starts with an empty , then sets its visible content via a setTimeout in js.
I have prepared a simple repro. The attached files are two static HTML pages. Each page starts with <body></body>. After DOMContentLoaded, each page schedules setTimeout(..., 0) and then replaces body.innerHTML with a full-page colored link to the other page.
Attached is also a screen recording of the issue with a side by side Chromium and Firefox comparison
2026-06-17.17-45-37.mp4
Firefox briefly flashes the white empty body between pages.
In Chrome navigating between these two pages results in a clean swap, no flash or flickering.
The previous page should remain visible until the destination page paints. Firefox should paint-hold same-origin navigation even on async renders and avoid the intermediate white frame flash.
- Firefox version: 152.0b9
- OS: Linux, wayland
- Also affects Firefox on Android 151.0.4