mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 00:02:37 +00:00
bug 469718 - followup to avoid accessing document properties outside a browser. r=bc
This commit is contained in:
parent
7b20344b03
commit
b1a5ae08fd
@ -165,7 +165,8 @@ gFailureExpected = false;
|
||||
TestCase.prototype.dump = function () {
|
||||
// let reftest handle error reporting, otherwise
|
||||
// output a summary line.
|
||||
if (!document.location.href.match(/jsreftest.html/))
|
||||
if (typeof document != "object" ||
|
||||
!document.location.href.match(/jsreftest.html/))
|
||||
{
|
||||
dump('\njstest: ' + this.path + ' ' +
|
||||
'bug: ' + this.bugnumber + ' ' +
|
||||
|
Loading…
x
Reference in New Issue
Block a user