зеркало из https://github.com/mozilla/gecko-dev.git
Bug 535887, Change an assertion to warning in nsEventDispatcher.cpp, r=sicking
--HG-- extra : rebase_source : 249d9d86d8918e53fae0cfeb7bae766462353efe
This commit is contained in:
Родитель
7bd824158e
Коммит
441467e7f3
|
@ -483,7 +483,12 @@ nsEventDispatcher::Dispatch(nsISupports* aTarget,
|
|||
nsresult rv = NS_ERROR_FAILURE;
|
||||
if (target->GetContextForEventHandlers(&rv) ||
|
||||
NS_FAILED(rv)) {
|
||||
NS_ERROR("This is unsafe!");
|
||||
nsCOMPtr<nsINode> node = do_QueryInterface(target);
|
||||
if (node && nsContentUtils::IsChromeDoc(node->GetOwnerDoc())) {
|
||||
NS_WARNING("Fix the caller!");
|
||||
} else {
|
||||
NS_ERROR("This is unsafe! Fix the caller!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче