From 0481d44afd0ca7c31e8296b16d21e782c80689e7 Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Mon, 19 Mar 2018 12:43:59 -0700 Subject: [PATCH] core(domstats): useIsolation within domstats --- lighthouse-core/gather/gatherers/dobetterweb/domstats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lighthouse-core/gather/gatherers/dobetterweb/domstats.js b/lighthouse-core/gather/gatherers/dobetterweb/domstats.js index 9778bdd24ca5..7692a305dab4 100644 --- a/lighthouse-core/gather/gatherers/dobetterweb/domstats.js +++ b/lighthouse-core/gather/gatherers/dobetterweb/domstats.js @@ -138,7 +138,7 @@ class DOMStats extends Gatherer { return (${getDOMStats.toString()}(document.documentElement)); })()`; return options.driver.sendCommand('DOM.enable') - .then(() => options.driver.evaluateAsync(expression)) + .then(() => options.driver.evaluateAsync(expression, {useIsolation: true})) .then(results => options.driver.getElementsInDocument().then(allNodes => { results.totalDOMNodes = allNodes.length; return options.driver.sendCommand('DOM.disable').then(() => results);