Revert "[Paint Preview] Post task captured callback"
This reverts commit c669ac6b. Reason for revert: Findit (https://goo.gl/kROfz5) identified CL at revision 837649 as the culprit for flakes in the build cycles as shown on: https://analysis.chromium.org/p/chromium/flake-portal/analysis/culprit?key=ag9zfmZpbmRpdC1mb3ItbWVyQwsSDEZsYWtlQ3VscHJpdCIxY2hyb21pdW0vYzY2OWFjNmIyZmYzMWU2OTk5N2U1MTM1MzBjZTEwOTVlODI2MTBiYQw Sample Failed Build: https://ci.chromium.org/b/8860723769678942640 Sample Failed Step: browser_tests on Mac-10.15 Sample Flaky Test: All/PaintPreviewBrowserTest.DontReloadInRenderProcessExit/FileSystem Original change's description: > [Paint Preview] Post task captured callback > > This CL attempts to fix a bug where calling > WebContents::DecrementCapturerCount in the callback passed to > PaintPreviewClient can result in reloading a crashed render frame. > This is problematic and crashes if it occurs inside RenderFrameDeleted > and PaintPreviewClient::OnFinished is invoked. By posting the callback > it should be invoked after RenderFrameDeleted cleanup is done resulting > in DecrementCapturerCount no longer being called inside > RenderFrameDeleted. > > Bug: 1146573 > Change-Id: Iccb612d89135e058d8fc06de018e7c95cd91657a > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2595247 > Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org> > Commit-Queue: Mehran Mahmoudi <mahmoudi@chromium.org> > Reviewed-by: Mehran Mahmoudi <mahmoudi@chromium.org> > Cr-Commit-Position: refs/heads/master@{#837649} Change-Id: Id23bade14aba40cafee9748b661597e8c04fb1fd No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 1146573 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2595859 Cr-Commit-Position: refs/heads/master@{#837830}
Showing
Please register or sign in to comment