commit 10f519f933411749defbc118956c28dc910addef
parent 926231d97e14eea7f06e8a73b58eb7949b044d87
Author: Andrew McCreight <continuation@gmail.com>
Date: Sun, 4 Jan 2026 19:35:18 +0000
Bug 2008394 - Remove frequent warning in PropagateUserGestureActivationBetweenPiP. r=dom-core,smaug DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D277784
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dom/base/Document.cpp b/dom/base/Document.cpp
@@ -18402,7 +18402,10 @@ static void PropagateUserGestureActivationBetweenPiP(
// this means activation in a cross-origin subframe in the opener will
// cause the PIP window to get activation.
nsPIDOMWindowOuter* outer = currentBC->Top()->GetDOMWindow();
- NS_ENSURE_TRUE_VOID(outer);
+ if (!outer) {
+ // We don't warn on failure due to the frequency. See bug 2008394.
+ return;
+ }
nsPIDOMWindowInner* inner = outer->GetCurrentInnerWindow();
NS_ENSURE_TRUE_VOID(inner);
DocumentPictureInPicture* dpip = inner->GetExtantDocumentPictureInPicture();