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

Unified Diff: third_party/WebKit/Source/devtools/front_end/devtools.js

Issue 1653213002: Devtools: Use Event.deepPath as a function if available. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
Index: third_party/WebKit/Source/devtools/front_end/devtools.js
diff --git a/third_party/WebKit/Source/devtools/front_end/devtools.js b/third_party/WebKit/Source/devtools/front_end/devtools.js
index 05c2b25a3800a9cd76bba88af007f8f8a9264b7d..d486dc79f534dd40712a1a27ae385492f5a6a3c9 100644
--- a/third_party/WebKit/Source/devtools/front_end/devtools.js
+++ b/third_party/WebKit/Source/devtools/front_end/devtools.js
@@ -961,3 +961,7 @@ if (!DOMTokenList.prototype.__originalDOMTokenListToggle) {
return this.__originalDOMTokenListToggle(token, !!force);
}
}
+
+// Support for legacy (<M49) frontends. Remove in M52.
+if (Object.getOwnPropertyDescriptor(Event.prototype, "deepPath"))
dgozman 2016/02/02 02:45:45 Please move this code (and a block above while we
samli 2016/02/03 00:07:11 Done.
+ Event.prototype.deepPath = undefined;

Powered by Google App Engine
This is Rietveld 408576698