mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
e39827c3d4
commit
37fa0a4da8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user