Revert "Worker: Abort all inflight tasks in Worklet::ContextDestroyed()"
This reverts commit c95749d2. Reason for revert: Some web_tests are crashing due to this change. https://test-results.appspot.com/data/layout_results/WebKit_Linux_Trusty_ASAN/26566/webkit_layout_tests/layout-test-results/results.html Original change's description: > Worker: Abort all inflight tasks in Worklet::ContextDestroyed() > > Before this CL, all inflight tasks can be retained in > Worklet::pending_tasks_set_ even after context destruction, and that causes > dcheck failures in the destructor of Worklet. This CL fixes it by aborting them > in Worklet::ContextDestroyed(). > > In addition, this CL adds test coverage of addModule() calls on a detached > iframe. In the tests, LayoutWorklet is used for testing main thread worklets > instead of PaintWorklet because PaintWorklet will be switched to > off-the-main-thread worklets (see https://crbug.com/829967). > > Bug: 962355 > Change-Id: I7da71e7f4bdcbfa20125853832122a733c118a7a > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1626062 > Reviewed-by: Matt Falkenhagen <falken@chromium.org> > Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org> > Cr-Commit-Position: refs/heads/master@{#662923} TBR=falken@chromium.org,nhiroki@chromium.org Change-Id: I54041a299dfdc74ff298b001cd42609fe2c11901 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 962355 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1627843Reviewed-by:Hiroki Nakagawa <nhiroki@chromium.org> Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#662962}
Showing
Please register or sign in to comment