mirror of
https://github.com/zen-browser/desktop.git
synced 2026-08-25 16:01:34 +00:00
feat: Early support for unsynced windoiws, b=no-bug, c=workspaces
This commit is contained in:
22
src/docshell/base/BrowsingContextWebProgress-cpp.patch
Normal file
22
src/docshell/base/BrowsingContextWebProgress-cpp.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
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(
|
||||
Reference in New Issue
Block a user