Bug 870598 - Don't send the frameloader-visibility-changed notification if the frameloader's visibility didn't actually change. r=khuey

This commit is contained in:
Justin Lebar 2013-05-10 11:46:08 -04:00
parent e39827c3d4
commit 37fa0a4da8

View File

@ -2554,6 +2554,10 @@ nsFrameLoader::ResetPermissionManagerStatus()
/* [infallible] */ NS_IMETHODIMP
nsFrameLoader::SetVisible(bool aVisible)
{
if (mVisible == aVisible) {
return NS_OK;
}
mVisible = aVisible;
nsCOMPtr<nsIObserverService> os = services::GetObserverService();
if (os) {