Bug 629978 - [SeaMonkey] mochitest-plain-3: 2 permanent "test_bug629172.html | Textarea should appear correctly after switching the direction ..."; (Bv1) Stop updating cmd_switchTextDirection status.
authorSerge Gautherie <sgautherie.bz@free.fr>
Mon, 07 Feb 2011 18:01:42 +0100
changeset 7099 058149fc39307ee8ed5499ba5a9a9b2419856af0
parent 7098 78440aa35ff6451d684f32212d4f25a69ed5b3ea
child 7100 4b7dee4ee6d74718348f165f6f50d4ac78589d4e
push idunknown
push userunknown
push dateunknown
bugs629978, 629172
Bug 629978 - [SeaMonkey] mochitest-plain-3: 2 permanent "test_bug629172.html | Textarea should appear correctly after switching the direction ..."; (Bv1) Stop updating cmd_switchTextDirection status. r=neil.
suite/common/utilityOverlay.js
suite/common/utilityOverlay.xul
--- a/suite/common/utilityOverlay.js
+++ b/suite/common/utilityOverlay.js
@@ -698,18 +698,16 @@ function goUpdateGlobalEditMenuItems()
 {
   goUpdateCommand('cmd_undo');
   goUpdateCommand('cmd_redo');
   goUpdateCommand('cmd_cut');
   goUpdateCommand('cmd_copy');
   goUpdateCommand('cmd_paste');
   goUpdateCommand('cmd_selectAll');
   goUpdateCommand('cmd_delete');
-  if (gShowBiDi)
-    goUpdateCommand('cmd_switchTextDirection');
 }
 
 // update menu items that rely on the current selection
 function goUpdateSelectEditMenuItems()
 {
   goUpdateCommand('cmd_cut');
   goUpdateCommand('cmd_copy');
   goUpdateCommand('cmd_delete');
--- a/suite/common/utilityOverlay.xul
+++ b/suite/common/utilityOverlay.xul
@@ -311,18 +311,17 @@
            oncommand="goDoCommand('cmd_delete')"
            valueDefault="&deleteCmd.label;"
            valueDefaultAccessKey="&deleteCmd.accesskey;"
            disabled="true"/>
   <command id="cmd_selectAll"
            oncommand="goDoCommand('cmd_selectAll')"
            disabled="true"/>
   <command id="cmd_switchTextDirection"
-           oncommand="goDoCommand('cmd_switchTextDirection');"
-           disabled="true"/>
+           oncommand="goDoCommand('cmd_switchTextDirection');"/>
   <command id="cmd_findTypeText" 
            oncommand="findTextAsYouType();"/>
   <command id="cmd_findTypeLinks" 
            oncommand="findLinksAsYouType();"/>
         
   <!-- Not needed yet, window will need this: -->
   <!-- broadcaster id="cmd_preferences"/ -->