Chromium Code Reviews| Index: Source/devtools/front_end/sdk/RuntimeModel.js |
| diff --git a/Source/devtools/front_end/sdk/RuntimeModel.js b/Source/devtools/front_end/sdk/RuntimeModel.js |
| index 625231480f2c607cd3fc212c2b1035b51a087ad8..b2602980716d8204cea5b2c555bb7bcc24ff354b 100644 |
| --- a/Source/devtools/front_end/sdk/RuntimeModel.js |
| +++ b/Source/devtools/front_end/sdk/RuntimeModel.js |
| @@ -67,7 +67,7 @@ WebInspector.RuntimeModel.prototype = { |
| */ |
| _executionContextCreated: function(context) |
| { |
| - var executionContext = new WebInspector.ExecutionContext(this.target(), context.id, context.name, context.isPageContext, context.frameId); |
| + var executionContext = new WebInspector.ExecutionContext(this.target(), context.id, context.name, context.origin, context.isPageContext, context.frameId); |
| this._executionContextById[executionContext.id] = executionContext; |
| this.dispatchEventToListeners(WebInspector.RuntimeModel.Events.ExecutionContextCreated, executionContext); |
| }, |
| @@ -166,14 +166,16 @@ WebInspector.RuntimeDispatcher.prototype = { |
| * @param {!WebInspector.Target} target |
| * @param {number|undefined} id |
| * @param {string} name |
| + * @param {string} origin |
| * @param {boolean} isPageContext |
| * @param {string=} frameId |
| */ |
| -WebInspector.ExecutionContext = function(target, id, name, isPageContext, frameId) |
| +WebInspector.ExecutionContext = function(target, id, name, origin, isPageContext, frameId) |
| { |
| WebInspector.SDKObject.call(this, target); |
| this.id = id; |
| - this.name = (isPageContext && !name) ? "<page context>" : name; |
| + this.name = name; |
| + this.origin = isPageContext && !origin ? "<page context>" : origin; |
|
yurys
2014/08/25 09:22:30
I guess it should be assigned into .name ?
lushnikov
2014/08/27 08:20:26
Done.
|
| this.isMainWorldContext = isPageContext; |
| this._debuggerModel = target.debuggerModel; |
| this.frameId = frameId; |