cleanup Page.js from network leftovers after a35a21d
This commit is contained in:
parent
a35a21dfaf
commit
4aa74cc7f8
@ -59,11 +59,8 @@ class Page extends EventEmitter {
|
||||
this._frameManager = frameManager;
|
||||
this._networkManager = networkManager;
|
||||
this._screenDPI = screenDPI;
|
||||
this._extraHeaders = {};
|
||||
/** @type {!Map<string, function>} */
|
||||
this._inPageCallbacks = new Map();
|
||||
/** @type {?function(!InterceptedRequest)} */
|
||||
this._requestInterceptor = null;
|
||||
/** @type {?Promise<number>} */
|
||||
this._rootNodeIdPromise = null;
|
||||
|
||||
@ -264,7 +261,7 @@ class Page extends EventEmitter {
|
||||
* @return {!Promise<boolean>}
|
||||
*/
|
||||
navigate(url, options) {
|
||||
return new Navigator(this._client, options).navigate(url, this._extraHeaders.referer);
|
||||
return new Navigator(this._client, options).navigate(url, this._networkManager.httpHeaders().referer);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user