Comment 16 for bug 1107850

Revision history for this message
In , Karlt (karlt) wrote :

Created attachment 673083
don't resize toplevel window in response to resized notification

When the widget calls WindowResized() on either of the listeners,
nsDocShell::SetPositionAndSize() and DocumentViewerImpl::SetBounds() get
called. This is a notification that the window has changed. When the
viewer is not mAttachedToParent, it makes sense to resize the child window in
response to toplevel change. Resizing the toplevel again doesn't make sense
in this situation, and would lead to infinite recursion (unless broken in some
way). When !mAttachedToParent the Resize() here would not resize
the toplevel, so some other mechanism should be used if the intention is to resize the toplevel.

https://tbpl.mozilla.org/?tree=Try&rev=5ab9d45888b3
https://tbpl.mozilla.org/?tree=Try&rev=6691a8e5486b