зеркало из https://github.com/mozilla/pjs.git
Fix crash bug 230380. Patch by isaachh@mailc.net (Isaac Hwak Han), r=bryner, sr=jst
This commit is contained in:
Родитель
ece372f07e
Коммит
c4f4038c7d
|
@ -1992,11 +1992,11 @@ nsEventListenerManager::FixContextMenuEvent(nsIPresContext* aPresContext,
|
|||
nsCOMPtr<nsIDOMEventTarget> currentTarget(aCurrentTarget);
|
||||
nsCOMPtr<nsIDOMElement> currentFocus;
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
nsCOMPtr<nsIPresShell> shell;
|
||||
nsCOMPtr<nsIPresShell> shell = aPresContext->PresShell();
|
||||
nsString empty;
|
||||
|
||||
if (aEvent->message == NS_CONTEXTMENU_KEY) {
|
||||
aPresContext->PresShell()->GetDocument(getter_AddRefs(doc));
|
||||
shell->GetDocument(getter_AddRefs(doc));
|
||||
if (doc) {
|
||||
nsCOMPtr<nsPIDOMWindow> privWindow = do_QueryInterface(doc->GetScriptGlobalObject());
|
||||
if (privWindow) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче