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

Unified Diff: Source/core/inspector/DebuggerScript.js

Issue 1306013004: [DevTools] Fixed content scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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: Source/core/inspector/DebuggerScript.js
diff --git a/Source/core/inspector/DebuggerScript.js b/Source/core/inspector/DebuggerScript.js
index 888d20d5bcecd5e22af578160f66b211459a721c..28913a94028d7dea4ba7f125b78380f5757b0a47 100644
--- a/Source/core/inspector/DebuggerScript.js
+++ b/Source/core/inspector/DebuggerScript.js
@@ -179,7 +179,7 @@ DebuggerScript._formatScript = function(script)
startColumn: script.column_offset,
endLine: endLine,
endColumn: endColumn,
- isContentScript: !!script.context_data && script.context_data.indexOf("[injected,") === 0,
+ isContentScript: !!script.context_data && script.context_data.indexOf(",injected") !== -1,
yurys 2015/08/28 20:23:47 Maybe endsWith ?
kozy 2015/08/28 20:24:08 Done.
isInternalScript: script.is_debugger_script
};
}

Powered by Google App Engine
This is Rietveld 408576698