Task manager: Make it work with iframes in pending deletion.
This CL is a sub-part of: [Don't delete subframes on CommitPending] (https://chromium-review.googlesource.com/c/chromium/src/+/1122629/18) RenderFrameHosts (subframes) are allowed to stay alive longer in the background, the time needed for them to execute their unload handler. The WebContentsTaskProvider needs to stop tracking all the frames in pending deletion, not only the navigating one, but also its subframes. Not doing it properly triggers a DCHECK: --- // Whenever we have a task, we should have a main frame site instance. DCHECK(tasks_by_frames_.empty() == (main_frame_site_instance_ == nullptr)); --- With tasks_by_frames_ not being empty, but main_frame_site_instance being null after removing the old_frame in RenderFrameHostChanged. Bug: 609963 Change-Id: I6e4ad45fb0d47ab378396e9ea1ad97bfc27c9c31 Reviewed-on: https://chromium-review.googlesource.com/c/1163502 Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Reviewed-by:Ahmed Fakhry <afakhry@chromium.org> Reviewed-by:
Alex Moshchuk <alexmos@chromium.org> Cr-Commit-Position: refs/heads/master@{#598732}
Showing
Please register or sign in to comment