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

Unified Diff: third_party/WebKit/Source/devtools/front_end/persistence/Automapping.js

Issue 2546583003: DevTools: [Persistence] guard against multiple UISourceCodes with similar URL (Closed)
Patch Set: put check deep down Created 4 years 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 | « no previous file | third_party/WebKit/Source/devtools/front_end/persistence/DefaultMapping.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/persistence/Automapping.js
diff --git a/third_party/WebKit/Source/devtools/front_end/persistence/Automapping.js b/third_party/WebKit/Source/devtools/front_end/persistence/Automapping.js
index d656d3a3088458ae743217e61155f524548a0ab2..e6086384fc7d3b456a1a2eeb5b2d1c5ad260cada 100644
--- a/third_party/WebKit/Source/devtools/front_end/persistence/Automapping.js
+++ b/third_party/WebKit/Source/devtools/front_end/persistence/Automapping.js
@@ -153,6 +153,9 @@ Persistence.Automapping = class {
this._onBindingFailedForTest();
return;
}
+ // TODO(lushnikov): remove this check once there's a single uiSourceCode per url. @see crbug.com/670180
+ if (binding.network[Persistence.Automapping._binding] || binding.fileSystem[Persistence.Automapping._binding])
+ return;
this._bindings.add(binding);
binding.network[Persistence.Automapping._binding] = binding;
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/persistence/DefaultMapping.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698