feat: Attribute network requests to frames (#1646)

This patch introduces `request.frame()` method that returns the frame that
initiated request.

Fixes #1579
This commit is contained in:
yujiosaka
2018-01-10 11:47:21 +09:00
committed by Andrey Lushnikov
parent 5843f6f775
commit c29822d663
5 changed files with 54 additions and 21 deletions

View File

@@ -72,7 +72,7 @@ class Page extends EventEmitter {
this._mouse = new Mouse(client, this._keyboard);
this._touchscreen = new Touchscreen(client, this._keyboard);
this._frameManager = new FrameManager(client, frameTree, this);
this._networkManager = new NetworkManager(client);
this._networkManager = new NetworkManager(client, this._frameManager);
this._emulationManager = new EmulationManager(client);
this._tracing = new Tracing(client);
/** @type {!Map<string, Function>} */