Bug 772275 - Make mozvisibilitychange event bubble, per spec. r=bz

This commit is contained in:
Justin Lebar 2012-07-09 23:32:47 -04:00
parent 5b6978ca49
commit 0026dfb671

View File

@ -9542,7 +9542,8 @@ nsDocument::UpdateVisibilityState()
if (oldState != mVisibilityState) {
nsContentUtils::DispatchTrustedEvent(this, static_cast<nsIDocument*>(this),
NS_LITERAL_STRING("mozvisibilitychange"),
false, false);
/* bubbles = */ true,
/* cancelable = */ false);
}
}