mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
Bug #108761 --> override globalEditMenuItems and selectEditMenuItems so
with our own custom event so we can reduce the amount of command updating they were doing during message display. r=bienvenu sr=sspitzer
This commit is contained in:
parent
4d40d98985
commit
131a7b2d1b
@ -52,6 +52,24 @@ Rights Reserved.
|
||||
<stringbundle id="findBundle" src="chrome://global/locale/finddialog.properties"/>
|
||||
</stringbundleset>
|
||||
|
||||
<!-- Performance optimization...we include utilityOverlay.xul which defines some command sets
|
||||
which are updated based on events like focus and select. We have our own custom events
|
||||
which we use to optmize when we do command updating. To avoid unnecessary command updating,
|
||||
we are going to override the events the global edit menu items and select edit menu items
|
||||
are updated on with events of our own controlling.
|
||||
-->
|
||||
|
||||
<commandset id="globalEditMenuItems"
|
||||
commandupdater="true"
|
||||
events="create-menu-edit"
|
||||
oncommandupdate="goUpdateGlobalEditMenuItems()"/>
|
||||
<commandset id="selectEditMenuItems"
|
||||
commandupdater="true"
|
||||
events="create-menu-edit"
|
||||
oncommandupdate="goUpdateSelectEditMenuItems()"/>
|
||||
|
||||
<!-- End command set merging -->
|
||||
|
||||
<commandset id="mailFileMenuItems"
|
||||
commandupdater="true"
|
||||
events="create-menu-file"
|
||||
|
Loading…
x
Reference in New Issue
Block a user