mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-07 13:24:12 +00:00
Bug 174448 crash in [@ nsMenuPopupFrame::GetRootViewForPopup] on msnbc page
r=bzbarsky sr=hyatt sr=roc+moz a=roc+moz
This commit is contained in:
parent
c1caff3309
commit
79370a7e5a
@ -625,8 +625,10 @@ nsMenuPopupFrame::AdjustClientXYForNestedDocuments ( nsIDOMXULDocument* inPopupD
|
||||
nsIFrame* targetFrame;
|
||||
shell->GetPrimaryFrameFor(targetAsContent, &targetFrame);
|
||||
nsIView* parentView = nsnull;
|
||||
GetRootViewForPopup(mPresContext, targetFrame, &parentView);
|
||||
GetWidgetForView(parentView, *getter_AddRefs(targetDocumentWidget));
|
||||
if (targetFrame) {
|
||||
GetRootViewForPopup(mPresContext, targetFrame, &parentView);
|
||||
GetWidgetForView(parentView, *getter_AddRefs(targetDocumentWidget));
|
||||
}
|
||||
if (!targetDocumentWidget) {
|
||||
// We aren't inside a popup. This means we should use the root view's
|
||||
// widget.
|
||||
|
Loading…
Reference in New Issue
Block a user