TestRunner: Do not bind TestRunnerBindings with WorkItem
This CL is actually a revert of https://crrev.com/c/2298053 Currently, WorkItemLoadingScript and WorkItemNonLoadingScript refers a TestRunnerBindings to know which RenderFrame they work with. However, if we swap RenderFrameHost over processes on navigations, the references of the bound TestRunnerBindings become wrong. This CL removes the tight bindings again, and let work items know the frames dynamically. This CL also introduces an assumption again that the frames are the main window's one. Bug: 1136383, 1132180 Change-Id: If5257ed3be881ad806e9a65d610779581412a960 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2469419Reviewed-by:danakj <danakj@chromium.org> Commit-Queue: Hitoshi Yoshida <peria@chromium.org> Cr-Commit-Position: refs/heads/master@{#819862}
Showing
Please register or sign in to comment