Commit 8a987a4f authored by Tatiana Meshkova's avatar Tatiana Meshkova

Removed chrome:title notification from components, as it become part of embedlite API

parent 1243dbf2
......@@ -103,13 +103,6 @@ EmbedChromeListener::HandleEvent(nsIDOMEvent* aEvent)
if (type.EqualsLiteral(MOZ_DOMMetaAdded)) {
messageName.AssignLiteral("chrome:metaadded");
} else if (type.EqualsLiteral(MOZ_DOMTitleChanged)) {
nsCOMPtr<nsIDOMDocument> ctDoc;
window->GetDocument(getter_AddRefs(ctDoc));
nsString title;
ctDoc->GetTitle(title);
messageName.AssignLiteral("chrome:title");
root->SetPropertyAsAString(NS_LITERAL_STRING("title"), title);
} else if (type.EqualsLiteral(MOZ_DOMContentLoaded)) {
nsCOMPtr<nsIDOMDocument> ctDoc;
window->GetDocument(getter_AddRefs(ctDoc));
......
......@@ -13,7 +13,6 @@
#include "nsIEmbedAppService.h"
#include "nsIDOMWindow.h"
#define MOZ_DOMTitleChanged "DOMTitleChanged"
#define MOZ_DOMContentLoaded "DOMContentLoaded"
#define MOZ_DOMLinkAdded "DOMLinkAdded"
#define MOZ_DOMWillOpenModalDialog "DOMWillOpenModalDialog"
......
......@@ -96,7 +96,6 @@ EmbedChromeManager::WindowCreated(nsIDOMWindow* aWin)
nsCOMPtr<nsIDOMEventTarget> target = do_QueryInterface(pidomWindow->GetChromeEventHandler());
NS_ENSURE_TRUE(target, );
nsCOMPtr<EmbedChromeListener> listener = new EmbedChromeListener(aWin);
target->AddEventListener(NS_LITERAL_STRING(MOZ_DOMTitleChanged), listener, PR_FALSE);
target->AddEventListener(NS_LITERAL_STRING(MOZ_DOMContentLoaded), listener, PR_FALSE);
target->AddEventListener(NS_LITERAL_STRING(MOZ_DOMLinkAdded), listener, PR_FALSE);
target->AddEventListener(NS_LITERAL_STRING(MOZ_DOMWillOpenModalDialog), listener, PR_FALSE);
......@@ -130,7 +129,6 @@ EmbedChromeManager::WindowDestroyed(nsIDOMWindow* aWin)
}
}
mArray.RemoveObjectAt(i);
target->RemoveEventListener(NS_LITERAL_STRING(MOZ_DOMTitleChanged), listener, PR_FALSE);
target->RemoveEventListener(NS_LITERAL_STRING(MOZ_DOMContentLoaded), listener, PR_FALSE);
target->RemoveEventListener(NS_LITERAL_STRING(MOZ_DOMLinkAdded), listener, PR_FALSE);
target->RemoveEventListener(NS_LITERAL_STRING(MOZ_DOMWillOpenModalDialog), listener, PR_FALSE);
......
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