Skip to content

Commit

Permalink
core(domstats): useIsolation within domstats (#4811)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish authored Mar 19, 2018
1 parent a21e3cd commit 0cddcd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lighthouse-core/gather/gatherers/dobetterweb/domstats.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0cddcd3

Please sign in to comment.