зеркало из https://github.com/mozilla/gecko-dev.git
Delay morphing window when entering print preview mode.
b=126675; r=law; sr=alecf; a=asa
This commit is contained in:
Родитель
76bec44a9f
Коммит
078dd6ace1
|
@ -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>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче