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

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

Issue 2137773002: [DevTools] Replace the target type with capabilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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/sdk/ServiceWorkerManager.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerManager.js b/third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerManager.js
index ab0e7d545cba42fc50eb8577e20fa6893cfdd3d6..f24c6b31abd423245f83f206d6087a1bbd24a63c 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerManager.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerManager.js
@@ -435,7 +435,8 @@ WebInspector.ServiceWorker = function(manager, workerId, url, versionId)
this._scope = parsedURL.host + parsedURL.folderPathComponents;
this._manager._workers.set(workerId, this);
- this._target = WebInspector.targetManager.createTarget(this._name, WebInspector.Target.Type.ServiceWorker, this._connection, manager.target());
+ var capabilities = WebInspector.Target.Capability.Network | WebInspector.Target.Capability.Worker;
+ this._target = WebInspector.targetManager.createTarget(this._name, capabilities, this._connection, manager.target());
this._target[WebInspector.ServiceWorker.Symbol] = this;
this._manager.dispatchEventToListeners(WebInspector.ServiceWorkerManager.Events.WorkersUpdated);
this._target.runtimeAgent().run();

Powered by Google App Engine
This is Rietveld 408576698