Bug 1277358 xul:browser element kept alive too long if tab is dnd'ed to a new window, r=kats

This commit is contained in:
Olli Pettay
2016-06-02 18:02:14 +03:00
parent 6203007b01
commit 773fd91208

View File

@@ -109,7 +109,7 @@ ZoomConstraintsClient::Init(nsIPresShell* aPresShell, nsIDocument* aDocument)
mDocument = aDocument; mDocument = aDocument;
if (nsCOMPtr<nsPIDOMWindowOuter> window = mDocument->GetWindow()) { if (nsCOMPtr<nsPIDOMWindowOuter> window = mDocument->GetWindow()) {
mEventTarget = window->GetChromeEventHandler(); mEventTarget = window->GetParentTarget();
} }
if (mEventTarget) { if (mEventTarget) {
mEventTarget->AddEventListener(DOM_META_ADDED, this, false); mEventTarget->AddEventListener(DOM_META_ADDED, this, false);