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

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

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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_compatibility.js
diff --git a/third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js b/third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js
index 304eef3144ab8fd59b92c244bd2144f98966957e..f6390835de649418c5e738adf968aea43333c34c 100644
--- a/third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js
+++ b/third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js
@@ -64,7 +64,7 @@
*/
addExtensions(extensions) {
// Support for legacy front-ends (<M41).
- if (window['WebInspector']['addExtensions'])
+ if (window['WebInspector'] && window['WebInspector']['addExtensions'])
window['WebInspector']['addExtensions'](extensions);
else
this._dispatchOnInspectorFrontendAPI('addExtensions', [extensions]);
@@ -252,7 +252,7 @@
*/
setInspectedTabId(tabId) {
// Support for legacy front-ends (<M41).
- if (window['WebInspector']['setInspectedTabId'])
+ if (window['WebInspector'] && window['WebInspector']['setInspectedTabId'])
window['WebInspector']['setInspectedTabId'](tabId);
else
this._dispatchOnInspectorFrontendAPI('setInspectedTabId', [tabId]);

Powered by Google App Engine
This is Rietveld 408576698