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

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

Issue 974273003: Revert "Revert "Support multiple DOM isolates and tweak devtools frontend to better handle large #s… (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/dartium
Patch Set: Created 5 years, 10 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 | « Source/devtools/front_end/inspectorStyle.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f46f00365d7703f02dbb4c7c40fea679fb6e0b82..2661f18c6afa6eccb460c279e1b80fc34df856b1 100644
--- a/Source/devtools/front_end/sdk/RuntimeModel.js
+++ b/Source/devtools/front_end/sdk/RuntimeModel.js
@@ -198,7 +198,9 @@ WebInspector.ExecutionContext.comparator = function(a, b)
return -1;
if (b.isMainWorldContext)
return +1;
- return a.name.localeCompare(b.name);
+ var delta = a.name.localeCompare(b.name);
+ if (delta != 0) return delta;
+ return a.origin.localeCompare(b.origin);
}
WebInspector.ExecutionContext.prototype = {
« no previous file with comments | « Source/devtools/front_end/inspectorStyle.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698