Reland Detached subframes with unload handler should not be visible to others.
When a frame is unloading in one process, it must not be visible from the other processes at some point. Previously, it was done when the frame completed the unload, now it will be done when it starts unloading. To achieve that, the RenderFrameProxyHost are removed when the frame starts unloading. Moreover, no new RenderFrameProxyHosts are created in a frame with an unloading current document. + 2 tests added, originally made by lukasza@chromium.org (Thanks!) Addition in the reland: ======================= + 1 regression test. A subframe is focused and unloaded, then another document commit. To prevent the previous regression, the focused frame is reset when unloading starts, instead of when it ends. Bug: 960006, 950625 Change-Id: I225118ee6385b3f843107adefe05d605d27703cd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1626412 Auto-Submit: Arthur Sonzogni <arthursonzogni@chromium.org> Reviewed-by:Łukasz Anforowicz <lukasza@chromium.org> Reviewed-by:
Arthur Sonzogni <arthursonzogni@chromium.org> Reviewed-by:
Alex Moshchuk <alexmos@chromium.org> Commit-Queue: Alex Moshchuk <alexmos@chromium.org> Cr-Commit-Position: refs/heads/master@{#663946}
Showing
Please register or sign in to comment