Delay morphing window when entering print preview mode.

b=126675; r=law; sr=alecf; a=asa
This commit is contained in:
sgehani%netscape.com 2002-03-19 03:23:31 +00:00
Родитель 76bec44a9f
Коммит 078dd6ace1
2 изменённых файлов: 6 добавлений и 1 удалений

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

@ -1501,6 +1501,11 @@ nsMenuPopupFrame::FindMenuWithShortcut(PRUint32 aLetter)
immediateParent = this;
nsIFrame* currFrame;
// NOTE: If you crashed here due to a bogus |immediateParent| it is
// possible that the menu whose shortcut is being looked up has
// been destroyed already. One strategy would be to
// setTimeout(<func>,0) as detailed in:
// <http://bugzilla.mozilla.org/show_bug.cgi?id=126675#c32>
immediateParent->FirstChild(mPresContext, nsnull, &currFrame);
while (currFrame) {

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

@ -212,7 +212,7 @@ Contributor(s): ______________________________________. -->
<menuitem id="printMenuItemToolbar" label="&printCmd.label;" accesskey="&printCmd.accesskey;"
default="true" oncommand="BrowserPrint()"/>
<menuitem label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;"
oncommand="BrowserPrintPreview();"/>
oncommand="setTimeout(BrowserPrintPreview, 0);"/>
</menupopup>
</toolbarbutton>