mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 744992 - Do not go into the preview code if it is null. r=benb,jmathies
This commit is contained in:
parent
d4d480c5c0
commit
a1f9c9ea3a
@ -449,12 +449,12 @@ TaskbarPreview::MainWindowHook(void *aContext,
|
||||
preview->mWnd = NULL;
|
||||
} else {
|
||||
nsWindow *window = WinUtils::GetNSWindowPtr(preview->mWnd);
|
||||
NS_ASSERTION(window, "Cannot use taskbar previews in an embedded context!");
|
||||
if (window) {
|
||||
window->SetHasTaskbarIconBeenCreated();
|
||||
|
||||
window->SetHasTaskbarIconBeenCreated();
|
||||
|
||||
if (preview->mVisible)
|
||||
preview->UpdateTaskbarProperties();
|
||||
if (preview->mVisible)
|
||||
preview->UpdateTaskbarProperties();
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user