mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
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._frameManager = frameManager;
|
||||||
this._networkManager = networkManager;
|
this._networkManager = networkManager;
|
||||||
this._screenDPI = screenDPI;
|
this._screenDPI = screenDPI;
|
||||||
this._extraHeaders = {};
|
|
||||||
/** @type {!Map<string, function>} */
|
/** @type {!Map<string, function>} */
|
||||||
this._inPageCallbacks = new Map();
|
this._inPageCallbacks = new Map();
|
||||||
/** @type {?function(!InterceptedRequest)} */
|
|
||||||
this._requestInterceptor = null;
|
|
||||||
/** @type {?Promise<number>} */
|
/** @type {?Promise<number>} */
|
||||||
this._rootNodeIdPromise = null;
|
this._rootNodeIdPromise = null;
|
||||||
|
|
||||||
@ -264,7 +261,7 @@ class Page extends EventEmitter {
|
|||||||
* @return {!Promise<boolean>}
|
* @return {!Promise<boolean>}
|
||||||
*/
|
*/
|
||||||
navigate(url, options) {
|
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