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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js

Issue 2849583006: [DevTools] Disable contexts in console selector on pause (Closed)
Patch Set: tests Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
index c778cd3034c7c59be72a12bdf81d1c23e7fb07b2..78bfe1a2f98b64d5d9df2b14f09be29c6d825980 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
@@ -689,11 +689,10 @@ SDK.DebuggerModel = class extends SDK.SDKModel {
* @param {?SDK.DebuggerModel.CallFrame} callFrame
*/
setSelectedCallFrame(callFrame) {
- this._selectedCallFrame = callFrame;
- if (!this._selectedCallFrame)
+ if (this._selectedCallFrame === callFrame)
return;
-
- this.dispatchEventToListeners(SDK.DebuggerModel.Events.CallFrameSelected, callFrame);
+ this._selectedCallFrame = callFrame;
+ this.dispatchEventToListeners(SDK.DebuggerModel.Events.CallFrameSelected, this);
}
/**
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698