Chromium Code Reviews| 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 4013efa2e1199fc65b60a2dbc35cd042f6941300..f3bd4cb155389737da2d9a07266f972aa8e5845e 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.hasJSDomains()) |
| this._agent.enable(); |
| /** |
| * @type {!Object.<number, !WebInspector.ExecutionContext>} |
| @@ -442,9 +442,9 @@ WebInspector.ExecutionContext.comparator = function(a, b) |
| */ |
| function targetWeight(target) |
| { |
| - if (target.isPage()) |
| + if (target.hasBrowserDomains()) |
| return 3; |
| - if (target.isDedicatedWorker()) |
| + if (!target.hasJSDomains()) |
|
dgozman
2016/07/12 00:34:11
This should be inverted.
eostroukhov-old
2016/07/12 21:46:15
Done.
|
| return 2; |
| return 1; |
| } |
| @@ -869,11 +869,11 @@ WebInspector.EventListener.prototype = { |
| if (!this._removeFunction) |
| return Promise.resolve(); |
| return this._removeFunction.callFunctionPromise(callCustomRemove, [ |
| - WebInspector.RemoteObject.toCallArgument(this._type), |
| - WebInspector.RemoteObject.toCallArgument(this._originalHandler), |
| - WebInspector.RemoteObject.toCallArgument(this._useCapture), |
| - WebInspector.RemoteObject.toCallArgument(this._passive), |
| - ]).then(() => undefined); |
| + WebInspector.RemoteObject.toCallArgument(this._type), |
| + WebInspector.RemoteObject.toCallArgument(this._originalHandler), |
| + WebInspector.RemoteObject.toCallArgument(this._useCapture), |
| + WebInspector.RemoteObject.toCallArgument(this._passive), |
| + ]).then(() => undefined); |
| /** |
| * @param {string} type |