From e1c64b1bb872f198e53bcb4b800c20d329d35ef3 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Sat, 21 Sep 2024 15:41:18 +0200 Subject: [PATCH] [Pale-Moon] Issue #1972 - Halt only closing tab activity before closing, not everything browser-wide. --- application/palemoon/base/content/tabbrowser.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/palemoon/base/content/tabbrowser.xml b/application/palemoon/base/content/tabbrowser.xml index 7677990ac7..0f72f43e50 100644 --- a/application/palemoon/base/content/tabbrowser.xml +++ b/application/palemoon/base/content/tabbrowser.xml @@ -2127,9 +2127,10 @@ // We're going to remove the tab and the browser now. // Interrupt all tab activity to aid in cleaning up detached window objects. - // Using the "superstop" should halt all animations, fetches, network activity - // etc. to come to a clean state for removal and unlinking (if enabled). - BrowserStop(); + // Using the "STOP_ALL" flag should halt all animations, fetches, network + // activity, etc. to come to a clean state for removal and unlinking (if enabled). + var browser = this.getBrowserForTab(aTab); + browser.webNavigation.stop(nsIWebNavigation.STOP_ALL); // Clean up mTabFilters and mTabListeners now rather than in // _beginRemoveTab, so that their size is always in sync with the @@ -2137,7 +2138,6 @@ this.mTabFilters.splice(aTab._tPos, 1); this.mTabListeners.splice(aTab._tPos, 1); - var browser = this.getBrowserForTab(aTab); this._outerWindowIDBrowserMap.delete(browser.outerWindowID); if (Services.prefs.getBoolPref("browser.ghostbuster.enabled", true)) {