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

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

Issue 2442083002: [DevTools] Merge Worker domain to Target, migrate clients. (Closed)
Patch Set: rebased all tests Created 4 years, 2 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/Target.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/Target.js b/third_party/WebKit/Source/devtools/front_end/sdk/Target.js
index 26982edad0904dbed4f45eb9f833cfcafe7d477c..b531b134d9b30e1a839702ea61d900eb52a0a51e 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/Target.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/Target.js
@@ -36,7 +36,7 @@ WebInspector.Target.Capability = {
JS: 4,
Log: 8,
Network: 16,
- Worker: 32
+ Target: 32
};
WebInspector.Target._nextId = 1;
@@ -133,9 +133,9 @@ WebInspector.Target.prototype = {
/**
* @return {boolean}
*/
- hasWorkerCapability: function()
+ hasTargetCapability: function()
{
- return this.hasAllCapabilities(WebInspector.Target.Capability.Worker);
+ return this.hasAllCapabilities(WebInspector.Target.Capability.Target);
},
/**
@@ -162,8 +162,6 @@ WebInspector.Target.prototype = {
this._targetManager.removeTarget(this);
for (var model of this._modelByConstructor.valuesArray())
model.dispose();
- if (this.workerManager)
- this.workerManager.dispose();
},
/**

Powered by Google App Engine
This is Rietveld 408576698