[Paint Preview] Make onHidden work reliably
Deflake the use of onHidden in PaintPreviewTabService by treating the WebContents as being in capture mode. This prevents the renderer from going away until after the capture is completed. Follow up work may be required to ensure the TabImpl#hide hiding the WebContents prior to calling the observers doesn't cause rare races. I've run 40 times locally without issue, but it could be an issue. Bug: 1061190 Change-Id: I51b84e66b0b9e02d137f3780824c337c6384d642 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2118392Reviewed-by:Mehran Mahmoudi <mahmoudi@chromium.org> Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org> Cr-Commit-Position: refs/heads/master@{#754989}
Showing
Please register or sign in to comment