Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/main/Main.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js |
| index f9f215d051075be6160b299321625dfc1a8e54ba..4d70bbf9a22dd511b8f659fdf8da89a81d1c32db 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/main/Main.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js |
| @@ -308,7 +308,13 @@ WebInspector.Main.prototype = { |
| WebInspector.RemoteDebuggingTerminatedScreen.show(event.data.reason); |
| } |
| - var targetType = Runtime.queryParam("isSharedWorker") ? WebInspector.Target.Type.ServiceWorker : WebInspector.Target.Type.Page; |
| + var targetType = WebInspector.Target.Type.Page; |
| + if (Runtime.queryParam("isSharedWorker")) |
| + targetType = WebInspector.Target.Type.ServiceWorker; |
| + else if (Runtime.queryParam("v8only")) { |
|
dgozman
2016/06/29 18:37:57
style: extra {}
eostroukhov-old
2016/06/29 22:54:20
Done.
|
| + targetType = WebInspector.Target.Type.V8Inspector; |
| + } |
| + |
| this._mainTarget = WebInspector.targetManager.createTarget(WebInspector.UIString("Main"), targetType, connection, null); |
| console.timeStamp("Main._mainTargetCreated"); |
| this._registerShortcuts(); |
| @@ -317,7 +323,7 @@ WebInspector.Main.prototype = { |
| InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Events.ReloadInspectedPage, this._reloadInspectedPage, this); |
| InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Events.EvaluateForTestInFrontend, this._evaluateForTestInFrontend, this); |
| - if (this._mainTarget.isServiceWorker() || this._mainTarget.isPage()) |
| + if (this._mainTarget.isServiceWorker() || this._mainTarget.isPage() || this._mainTarget.isV8Inspector()) |
| this._mainTarget.runtimeAgent().run(); |
| this._mainTarget.inspectorAgent().enable(); |