| Index: third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
|
| index 291d0d908ed5ebe5ff81b2af8d62ed033bf7141a..bf764a52096169df731f5bea8c61e9ae39a9b900 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
|
| @@ -39,7 +39,7 @@ WebInspector.RuntimeModel = function(target)
|
|
|
| this._agent = target.runtimeAgent();
|
| this.target().registerRuntimeDispatcher(new WebInspector.RuntimeDispatcher(this));
|
| - if (target.hasJSContext())
|
| + if (target.hasJSCapability())
|
| this._agent.enable();
|
| /**
|
| * @type {!Object.<number, !WebInspector.ExecutionContext>}
|
| @@ -459,9 +459,9 @@ WebInspector.ExecutionContext.comparator = function(a, b)
|
| */
|
| function targetWeight(target)
|
| {
|
| - if (target.isPage())
|
| + if (target.hasBrowserCapability())
|
| return 3;
|
| - if (target.isDedicatedWorker())
|
| + if (target.hasJSCapability())
|
| return 2;
|
| return 1;
|
| }
|
|
|