From cf29319f7867a079bff2aa025648bcabe0a03b03 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Fri, 20 Sep 2024 10:35:15 +0200 Subject: [PATCH] [Pale-Moon] Issue #1972 - Make sure all tab activity is halted before removal. --- application/palemoon/base/content/tabbrowser.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/palemoon/base/content/tabbrowser.xml b/application/palemoon/base/content/tabbrowser.xml index 14cd720f64..7677990ac7 100644 --- a/application/palemoon/base/content/tabbrowser.xml +++ b/application/palemoon/base/content/tabbrowser.xml @@ -2125,6 +2125,12 @@ } // 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(); + // Clean up mTabFilters and mTabListeners now rather than in // _beginRemoveTab, so that their size is always in sync with the // number of tabs and browsers (the xbl destructor depends on this).