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..4adadb79bca45e4269ab92943586795f8fc99792 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 = origin; |
this.isMainWorldContext = isPageContext; |
this._debuggerModel = target.debuggerModel; |
this.frameId = frameId; |