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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js

Issue 2613643002: DevTools: migrate from external Maps to symbols in the bindings objects. (Closed)
Patch Set: review comments addressed. Created 3 years, 12 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/bindings/BlackboxManager.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js b/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js
index 4f17a9f311c96c7a3d7e305b5586e0e75272d380..65afbb28198ae064cd13dfae210a9793d2115167 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js
@@ -322,6 +322,8 @@ Bindings.BlackboxManager = class {
* @return {!Promise<undefined>}
*/
_addScript(script) {
+ if (!script.sourceURL && !script.sourceMapURL)
+ return Promise.resolve();
var blackboxed = this._isBlackboxedScript(script);
return this._setScriptState(script, blackboxed ? [{lineNumber: 0, columnNumber: 0}] : []);
}

Powered by Google App Engine
This is Rietveld 408576698