DescriptionReland factor out window proxy management portions of ScriptController.
Right now, ScriptController is in charge of initializing window proxies,
clearing them for navigation/close, and maintaining a mapping of worlds
to window proxies. However, ScriptController is LocalFrame-specific, and
RemoteFrame also needs to expose a DOMWindow for scripting purposes. To
share code between the two, the window proxy management has been moved
out of ScriptController, leaving only LocalFrame-specific logic such as
wrapping NPObject for plugins or script evaluation.
Eventually, RemoteFrame will also embed a WindowProxyManager, and
WindowProxyManager will be extended to allow it be passed between frames
when transitioning between local and remote frames.
For integration with devtools, WindowProxyManager still contains some
LocalFrame-specific code.
BUG=425623
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188574
Patch Set 1 #Patch Set 2 : Rebase and deflake test #
Total comments: 4
Patch Set 3 : Address comments #Messages
Total messages: 12 (3 generated)
|