feat: Make sure to properly flush all windows when making a new one and fix removing progress listeners, b=no-bug, c=workspaces

This commit is contained in:
Mr. M
2025-12-06 18:49:26 +01:00
parent cde32ca1e0
commit f720dce237
6 changed files with 192 additions and 144 deletions

View File

@@ -1,22 +0,0 @@
diff --git a/docshell/base/BrowsingContextWebProgress.cpp b/docshell/base/BrowsingContextWebProgress.cpp
index cc5bf6de7bf4875acf0c572549dc30ff06ac7f6f..4e0f3648f551fe9507a654d19f0a99e455418aa9 100644
--- a/docshell/base/BrowsingContextWebProgress.cpp
+++ b/docshell/base/BrowsingContextWebProgress.cpp
@@ -54,7 +54,7 @@ NS_IMETHODIMP BrowsingContextWebProgress::AddProgressListener(
if (mListenerInfoList.Contains(listener)) {
// The listener is already registered!
- return NS_ERROR_FAILURE;
+ return NS_OK;
}
mListenerInfoList.AppendElement(ListenerInfo(listener, aNotifyMask));
@@ -68,7 +68,7 @@ NS_IMETHODIMP BrowsingContextWebProgress::RemoveProgressListener(
return NS_ERROR_INVALID_ARG;
}
- return mListenerInfoList.RemoveElement(listener) ? NS_OK : NS_ERROR_FAILURE;
+ return mListenerInfoList.RemoveElement(listener) ? NS_OK : NS_OK;
}
NS_IMETHODIMP BrowsingContextWebProgress::GetBrowsingContextXPCOM(