Removing the destruct from webshellwindow for arbitrary XUL popups. This should

happen on loss of focus instead.
This commit is contained in:
hyatt%netscape.com 1999-06-08 05:22:01 +00:00
Родитель ebc88068bb
Коммит 89519b109c
1 изменённых файлов: 0 добавлений и 6 удалений

Просмотреть файл

@ -1140,12 +1140,6 @@ nsWebShellWindow::CreatePopup(nsIDOMElement* aElement, nsIDOMElement* aPopupCont
nsCOMPtr<nsIXULChildDocument> popupChild = do_QueryInterface(popupDocument); nsCOMPtr<nsIXULChildDocument> popupChild = do_QueryInterface(popupDocument);
popupChild->LayoutPopupDocument(); popupChild->LayoutPopupDocument();
// Fire the DESTRUCT DOM event to give JS/C++ a chance to destroy the popup contents
status = nsEventStatus_eIgnore;
event.eventStructType = NS_EVENT;
event.message = NS_POPUP_DESTRUCT;
rv = popupContent->HandleDOMEvent(*presContext, &event, nsnull, NS_EVENT_FLAG_INIT, status);
// XXX Do we return the popup document? Might want to, since it's kind of like // XXX Do we return the popup document? Might want to, since it's kind of like
// a sick and twisted distortion of a window.open call. // a sick and twisted distortion of a window.open call.
return rv; return rv;