Devtools: Don't auto attach guest views when auto attaching portals
TargetAutoAttacher::UpdatePortals currently adds all inner WebContents including guest views. When devtools closes, SetAutoAttach clears |auto_attached_hosts_| of any portals, but leaves any guest views which leads to the failed DCHECK that all auto attached hosts have been removed. Now in UpdatePortals, we check that the inner contents is a portal before adding it. Bug: 961113 Change-Id: I758b3818c3f390f47c4020d88094387ee85d07e4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1777022Reviewed-by:Lucas Gadani <lfg@chromium.org> Reviewed-by:
Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Kevin McNee <mcnee@chromium.org> Cr-Commit-Position: refs/heads/master@{#692179}
Showing
Please register or sign in to comment