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 3caf235295
commit d2d5f2a779

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);
}
}