Description[DevTools] Use main frame when searching/creating DevToolsAgentHost.
It was possible to create DTAH for cross-process child frame and
then get it back when asking for WebContents' DTAH.
Instead, we go for main frame explicitly.
This bug only manifested with context menu on cross-process iframe, since
we have both per-WebContents and per-frame methods. Ideally, we'd use
either one or another, but we need per-frame one now, while per-WebContents
is the way to go when cross-process frames would be inspected in the same
DevTools window.
BUG=598005
TEST=SitePerProcessDevToolsBrowserTest.AgentHostForPageEqualsOneForMainFrame
Committed: https://crrev.com/0fe3f402fe308f7b34317be38590d23bad3c84bc
Cr-Commit-Position: refs/heads/master@{#383646}
Patch Set 1 #
Messages
Total messages: 8 (3 generated)
|