Chromium Code Reviews| Index: Source/core/inspector/InjectedScriptSource.js |
| diff --git a/Source/core/inspector/InjectedScriptSource.js b/Source/core/inspector/InjectedScriptSource.js |
| index 2d831832586021d5c6abc50ad7fed88285ea7ab7..68be2f41542ab91b855c9a55f0ea2a72067bc13f 100644 |
| --- a/Source/core/inspector/InjectedScriptSource.js |
| +++ b/Source/core/inspector/InjectedScriptSource.js |
| @@ -1785,8 +1785,8 @@ CommandLineAPIImpl.prototype = { |
| $$: function (selector, opt_startNode) |
| { |
| if (this._canQuerySelectorOnNode(opt_startNode)) |
| - return opt_startNode.querySelectorAll(selector); |
| - return inspectedGlobalObject.document.querySelectorAll(selector); |
| + return Array.from(opt_startNode.querySelectorAll(selector)); |
|
pfeldman
2015/07/14 11:47:22
We should instead use local implementation of slic
yurys
2015/07/14 12:50:44
My first reaction was the same but then I realized
|
| + return Array.from(inspectedGlobalObject.document.querySelectorAll(selector)); |
| }, |
| /** |