зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1345600 - Remove the empty script element workaround in jstests' browser.js. r=sfink
--HG-- extra : rebase_source : 3b8e7a233e8df7e5055e65f1a09774a46a05599c extra : histedit_source : 94c8e1aceab45ac9b04141050f953cc19b6448a4
This commit is contained in:
Родитель
49c97adb4e
Коммит
230aa7d0ef
|
@ -516,7 +516,8 @@
|
||||||
gczeal(Number(properties.gczeal));
|
gczeal(Number(properties.gczeal));
|
||||||
}
|
}
|
||||||
|
|
||||||
document.write(`<title>${ properties.test }<\/title>`);
|
// Display the test path in the title.
|
||||||
|
document.title = properties.test;
|
||||||
|
|
||||||
// Output script tags for shell.js, then browser.js, at each level of the
|
// Output script tags for shell.js, then browser.js, at each level of the
|
||||||
// test path hierarchy.
|
// test path hierarchy.
|
||||||
|
@ -537,10 +538,6 @@
|
||||||
scripts.push({src: "js-test-driver-end.js", module: false});
|
scripts.push({src: "js-test-driver-end.js", module: false});
|
||||||
|
|
||||||
if (!moduleTest) {
|
if (!moduleTest) {
|
||||||
// XXX bc - the first document.written script is ignored if the protocol
|
|
||||||
// is file:. insert an empty script tag, to work around it.
|
|
||||||
document.write("<script></script>");
|
|
||||||
|
|
||||||
var key, value;
|
var key, value;
|
||||||
if (properties.language !== "type") {
|
if (properties.language !== "type") {
|
||||||
key = "language";
|
key = "language";
|
||||||
|
|
Загрузка…
Ссылка в новой задаче