From 6613c02e64333d6d582a3c1acd12062b7b56d308 Mon Sep 17 00:00:00 2001 From: Eddy Bruel Date: Fri, 4 Mar 2016 13:01:47 +0100 Subject: [PATCH] Bug 1252077 - The debugger should identify Scratchpad sources as JavaScript;r=jlong --- devtools/server/actors/utils/TabSources.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/devtools/server/actors/utils/TabSources.js b/devtools/server/actors/utils/TabSources.js index 23f1709a544..c4cccbfa098 100644 --- a/devtools/server/actors/utils/TabSources.js +++ b/devtools/server/actors/utils/TabSources.js @@ -303,7 +303,9 @@ TabSources.prototype = { if (url) { // There are a few special URLs that we know are JavaScript: // inline `javascript:` and code coming from the console - if (url.indexOf("javascript:") === 0 || url === 'debugger eval code') { + if (url.indexOf("Scratchpad/") === 0 || + url.indexOf("javascript:") === 0 || + url === "debugger eval code") { spec.contentType = "text/javascript"; } else { try {