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

Unified Diff: third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js

Issue 2136763002: DevTools: Sort execution contexts in nested frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix merge conflict Created 4 years, 5 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: third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js
diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js
index e9fc42f18cbeff48b8ee9ad1efff0e47d21beb67..1da29b93db0bba4a73359ff5283ee8120efff48d 100644
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js
@@ -63,7 +63,7 @@ WebInspector.ConsoleContextSelector.prototype = {
this._optionByExecutionContext.set(executionContext, newOption);
var options = this._selectElement.options;
var contexts = Array.prototype.map.call(options, mapping);
- var index = contexts.lowerBound(executionContext, WebInspector.ExecutionContext.comparator)
+ var index = contexts.lowerBound(executionContext, executionContext.runtimeModel.executionContextComparator())
this._selectElement.insertBefore(newOption, options[index]);
if (executionContext === WebInspector.context.flavor(WebInspector.ExecutionContext))

Powered by Google App Engine
This is Rietveld 408576698