diff --git a/content/base/src/nsDocument.cpp b/content/base/src/nsDocument.cpp index 43bb8994e8b3..33ea5ef9bbe6 100644 --- a/content/base/src/nsDocument.cpp +++ b/content/base/src/nsDocument.cpp @@ -9542,7 +9542,8 @@ nsDocument::UpdateVisibilityState() if (oldState != mVisibilityState) { nsContentUtils::DispatchTrustedEvent(this, static_cast(this), NS_LITERAL_STRING("mozvisibilitychange"), - false, false); + /* bubbles = */ true, + /* cancelable = */ false); } }