Bug 904178 - Part b: Use nsIDocument in nsEventListenerManager::SetEventHandler; r=smaug

This commit is contained in:
Ms2ger 2013-08-14 09:02:49 +02:00
parent 414b1a4dad
commit 1108a535f4

View File

@ -669,9 +669,7 @@ nsEventListenerManager::SetEventHandler(nsIAtom *aName,
} else {
nsCOMPtr<nsPIDOMWindow> win = GetTargetAsInnerWindow();
if (win) {
nsCOMPtr<nsIDOMDocument> domdoc;
win->GetDocument(getter_AddRefs(domdoc));
doc = do_QueryInterface(domdoc);
doc = win->GetDoc();
global = do_QueryInterface(win);
} else {
global = do_QueryInterface(mTarget);