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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user