mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-10 23:34:06 +00:00
31 lines
1.3 KiB
C++
31 lines
1.3 KiB
C++
diff --git a/testing/mochitest/browser-test.js b/testing/mochitest/browser-test.js
|
|
index d5f320c5e97aae9bfd43d28e3d4a274d9bbc0787..24dc32a5bf6ae9abaa8f3fe8c37b031a76fb4d60 100644
|
|
--- a/testing/mochitest/browser-test.js
|
|
+++ b/testing/mochitest/browser-test.js
|
|
@@ -438,10 +438,10 @@ Tester.prototype = {
|
|
// But not the Thunderbird window, it doesn't have these things!
|
|
if (AppConstants.MOZ_APP_NAME != "thunderbird") {
|
|
// Remove stale tabs
|
|
- if (this.currentTest && window.gBrowser && gBrowser.tabs.length > 1) {
|
|
+ if (this.currentTest && window.gBrowser && gBrowser.tabs.length > 2) {
|
|
let lastURI = "";
|
|
let lastURIcount = 0;
|
|
- while (gBrowser.tabs.length > 1) {
|
|
+ while (gBrowser.tabs.length > 2) {
|
|
let lastTab = gBrowser.tabs[gBrowser.tabs.length - 1];
|
|
if (!lastTab.closing) {
|
|
// Report the stale tab as an error only when they're not closing.
|
|
@@ -476,12 +476,6 @@ Tester.prototype = {
|
|
|
|
// Replace the last tab with a fresh one
|
|
if (window.gBrowser) {
|
|
- gBrowser.addTab("about:blank", {
|
|
- skipAnimation: true,
|
|
- triggeringPrincipal:
|
|
- Services.scriptSecurityManager.getSystemPrincipal(),
|
|
- });
|
|
- gBrowser.removeTab(gBrowser.selectedTab, { skipPermitUnload: true });
|
|
gBrowser.stop();
|
|
}
|
|
|