зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1252077 - The debugger should identify Scratchpad sources as JavaScript;r=jlong
This commit is contained in:
Родитель
68e3eac5a1
Коммит
21cd137fcb
|
@ -303,7 +303,9 @@ TabSources.prototype = {
|
||||||
if (url) {
|
if (url) {
|
||||||
// There are a few special URLs that we know are JavaScript:
|
// There are a few special URLs that we know are JavaScript:
|
||||||
// inline `javascript:` and code coming from the console
|
// 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";
|
spec.contentType = "text/javascript";
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче