From 4aa74cc7f892564a66f16212717a43b77e2cd0dc Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Thu, 29 Jun 2017 12:00:19 -0700 Subject: [PATCH] cleanup Page.js from network leftovers after a35a21d --- lib/Page.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); } /**