Bug 1381399 - Don't try to close reftest window if it's already closed, r=ato
If the run ended with the reftest window closed e.g. because the final
test timed out, we shouldn't try to close it again, since that results
in an error.
MozReview-Commit-ID: 7FW96EkfgBG
--- a/testing/marionette/reftest.js
+++ b/testing/marionette/reftest.js
@@ -123,17 +123,19 @@ min-width: 600px; min-height: 600px; max
}
doc.appendChild(browser);
reftestWin.gBrowser = browser;
return reftestWin;
}
abort() {
- this.driver.close();
+ if (this.reftestWin) {
+ this.driver.close();
+ }
this.reftestWin = null;
}
/**
* Run a specific reftest.
*
* The assumed semantics are those of web-platform-tests where
* references form a tree and each test must meet all the conditions