Chromium Code Reviews| Index: Source/devtools/front_end/main/Main.js |
| diff --git a/Source/devtools/front_end/main/Main.js b/Source/devtools/front_end/main/Main.js |
| index 8464ef06df25c000f0369e6ae8575ae16c3826e4..74bbd009c0c95c1733df19847e672d1a8ae79adf 100644 |
| --- a/Source/devtools/front_end/main/Main.js |
| +++ b/Source/devtools/front_end/main/Main.js |
| @@ -322,6 +322,7 @@ WebInspector.Main.prototype = { |
| console.timeStamp("Main._mainTargetCreated"); |
| this._mainTarget = /** @type {!WebInspector.Target} */(target); |
| this._registerShortcuts(); |
| + var main = this; |
| this._mainTarget.registerInspectorDispatcher(this); |
| InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Events.ReloadInspectedPage, this._reloadInspectedPage, this); |
| @@ -344,7 +345,13 @@ WebInspector.Main.prototype = { |
| console.timeStamp("Main.inspectorAgentEnableCallback"); |
| WebInspector.notifications.dispatchEventToListeners(WebInspector.NotificationService.Events.InspectorAgentEnabledForTests); |
| // Asynchronously run the extensions. |
| - setTimeout(function() { WebInspector.extensionServer.initializeExtensions(); }, 0); |
| + setTimeout(lateInitialization, 0); |
| + } |
| + |
| + function lateInitialization() |
| + { |
| + WebInspector.extensionServer.initializeExtensions(); |
| + new WebInspector.FrontendWebSocketAPI(); |
|
dgozman
2015/09/08 22:32:16
Why late? It only depends on workspace. Would be h
pfeldman
2015/09/09 00:50:30
To make sure we don't regress TTIE everything not
|
| } |
| }, |