diff --git a/experimental/puppeteer-firefox/lib/Page.js b/experimental/puppeteer-firefox/lib/Page.js index d6ae8969445..3f209ac6ba1 100644 --- a/experimental/puppeteer-firefox/lib/Page.js +++ b/experimental/puppeteer-firefox/lib/Page.js @@ -27,9 +27,9 @@ class Page extends EventEmitter { static async create(session, target, defaultViewport) { const page = new Page(session, target); await Promise.all([ - session.send('Page.enable'), - session.send('Network.enable'), session.send('Runtime.enable'), + session.send('Network.enable'), + session.send('Page.enable'), ]); if (defaultViewport) @@ -729,9 +729,6 @@ class Page extends EventEmitter { return await this._frameManager.mainFrame().setContent(html); } - _onClosed() { - } - _onConsole({type, args, executionContextId, location}) { const context = this._frameManager.executionContextById(executionContextId); this.emit(Events.Page.Console, new ConsoleMessage(type, args.map(arg => createHandle(context, arg)), location));