diff --git a/lib/Page.js b/lib/Page.js index db4cd7a66f0..31fa78d6d31 100644 --- a/lib/Page.js +++ b/lib/Page.js @@ -59,11 +59,8 @@ class Page extends EventEmitter { this._frameManager = frameManager; this._networkManager = networkManager; this._screenDPI = screenDPI; - this._extraHeaders = {}; /** @type {!Map} */ this._inPageCallbacks = new Map(); - /** @type {?function(!InterceptedRequest)} */ - this._requestInterceptor = null; /** @type {?Promise} */ this._rootNodeIdPromise = null; @@ -264,7 +261,7 @@ class Page extends EventEmitter { * @return {!Promise} */ 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); } /**