Commit 3783ae3b authored by Tatiana Meshkova's avatar Tatiana Meshkova

Fixed shutdown process in embed components

parent 5d1873d0
......@@ -76,7 +76,7 @@ EmbedChromeManager::Observe(nsISupports *aSubject,
nsCOMPtr<nsIDOMWindow> win = do_QueryInterface(aSubject, &rv);
NS_ENSURE_SUCCESS(rv, NS_OK);
WindowCreated(win);
} else if (!strcmp(aTopic, "domwindclosed")) {
} else if (!strcmp(aTopic, "domwindowclosed")) {
nsCOMPtr<nsIDOMWindow> win = do_QueryInterface(aSubject, &rv);
NS_ENSURE_SUCCESS(rv, NS_OK);
WindowDestroyed(win);
......
......@@ -80,7 +80,7 @@ EmbedTouchManager::Observe(nsISupports *aSubject,
nsCOMPtr<nsIDOMWindow> win = do_QueryInterface(aSubject, &rv);
NS_ENSURE_SUCCESS(rv, NS_OK);
WindowCreated(win);
} else if (!strcmp(aTopic, "domwindclosed")) {
} else if (!strcmp(aTopic, "domwindowclosed")) {
nsCOMPtr<nsIDOMWindow> win = do_QueryInterface(aSubject, &rv);
NS_ENSURE_SUCCESS(rv, NS_OK);
WindowDestroyed(win);
......@@ -131,7 +131,7 @@ EmbedTouchManager::WindowDestroyed(nsIDOMWindow* aWin)
mWindowCounter--;
uint32_t id = 0;
mService->GetIDByWindow(aWin, &id);
mService->AddContentListener(id, listener);
mService->RemoveContentListener(id, listener);
if (!mWindowCounter) {
mService = nullptr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment