| Index: chrome/test/chromedriver/js/call_function.js
|
| diff --git a/chrome/test/chromedriver/js/call_function.js b/chrome/test/chromedriver/js/call_function.js
|
| index f31f95f12cb285e7d0ebfb536d39ce77a01aaacd..a9bde8d0ece1e3bb4a39a6281d5814cfd677d2a5 100644
|
| --- a/chrome/test/chromedriver/js/call_function.js
|
| +++ b/chrome/test/chromedriver/js/call_function.js
|
| @@ -101,7 +101,7 @@ Cache.prototype = {
|
| if (nodeRoot == document)
|
| return true;
|
| else if (SHADOW_DOM_ENABLED && nodeRoot instanceof ShadowRoot)
|
| - return true;
|
| + return this.isNodeReachable_(nodeRoot.host);
|
|
|
| return false;
|
| }
|
| @@ -148,7 +148,7 @@ function wrap(value) {
|
| || (SHADOW_DOM_ENABLED && value instanceof ShadowRoot)) {
|
| var wrapped = {};
|
| var root = getNodeRoot(value);
|
| - wrapped[ELEMENT_KEY] = getPageCache(root).storeItem(value);
|
| + wrapped[ELEMENT_KEY] = getPageCache().storeItem(value);
|
| return wrapped;
|
| }
|
|
|
|
|