Bug 1472424 - BrowserElementParent should use IsInComposedDoc, r=mrbkap

This commit is contained in:
Olli Pettay 2018-07-03 18:08:19 +03:00
parent d14590cada
commit cf007c3999

View File

@ -160,7 +160,7 @@ BrowserElementParent::DispatchOpenWindowEvent(Element* aOpenerFrameElement,
val, &status);
if (dispatchSucceeded) {
if (aPopupFrameElement->IsInUncomposedDoc()) {
if (aPopupFrameElement->IsInComposedDoc()) {
return BrowserElementParent::OPEN_WINDOW_ADDED;
}
if (status == nsEventStatus_eConsumeNoDefault) {