Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3195)

Unified Diff: chrome/test/chromedriver/js/call_function.js

Issue 529763002: Added shadow DOM support to chromedriver. atoms.cc and .h are generated from the selenium tree. I'l… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/chromedriver/client/webelement.py ('k') | chrome/test/chromedriver/js/focus.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..065fa8b485d2c989ff552be037f718c5438b61bd 100644
--- a/chrome/test/chromedriver/js/call_function.js
+++ b/chrome/test/chromedriver/js/call_function.js
@@ -101,8 +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 +147,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;
}
« no previous file with comments | « chrome/test/chromedriver/client/webelement.py ('k') | chrome/test/chromedriver/js/focus.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698