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

Unified Diff: Source/devtools/front_end/sdk/RuntimeModel.js

Issue 15764004: DevTools: show extension name in console context switcher (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: correct rebaseline Created 6 years, 4 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: 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;

Powered by Google App Engine
This is Rietveld 408576698