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

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
« no previous file with comments | « LayoutTests/inspector/sources/debugger/sources-panel-content-scripts-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/DebuggerScript.js
diff --git a/Source/core/inspector/DebuggerScript.js b/Source/core/inspector/DebuggerScript.js
index 888d20d5bcecd5e22af578160f66b211459a721c..22483edfca43831a814f5f9afc144ed432ab3d6f 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.endsWith(",injected"),
isInternalScript: script.is_debugger_script
};
}
« no previous file with comments | « LayoutTests/inspector/sources/debugger/sources-panel-content-scripts-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698