зеркало из https://github.com/mozilla/gecko-dev.git
add first-window case - when the window with the new title hasn't been seen, add it to the hashtable
This commit is contained in:
Родитель
07bd7dd42b
Коммит
e83eaff6cf
|
@ -159,6 +159,12 @@ nsWindowDataSource::OnWindowTitleChange(nsIXULWindow *window,
|
|||
nsCOMPtr<nsISupports> sup =
|
||||
dont_AddRef(mWindowResources.Get(&key));
|
||||
|
||||
// oops, make sure this window is in the hashtable!
|
||||
if (!sup) {
|
||||
OnOpenWindow(window);
|
||||
sup = dont_AddRef(mWindowResources.Get(&key));
|
||||
}
|
||||
|
||||
NS_ENSURE_TRUE(sup, NS_ERROR_UNEXPECTED);
|
||||
|
||||
nsCOMPtr<nsIRDFResource> windowResource =
|
||||
|
|
Загрузка…
Ссылка в новой задаче