Bug 1252077 - The debugger should identify Scratchpad sources as JavaScript;r=jlong

This commit is contained in:
Eddy Bruel 2016-03-04 13:01:47 +01:00
parent 7d7124b777
commit 6613c02e64

View File

@ -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 {