Bug 555289 - Plugin crashed UI should be RTL in RTL locales; r=dao
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 29 Mar 2010 14:06:25 -0400
changeset 39988 313ecb8fb0f9d0057719fb2f18ecfb7ea3dfb158
parent 39987 70698587d13f45adca6bfa4076b5902afb488ebe
child 39989 980e49c1ab8a340e18927b6ffdba3e7bbd856efb
push id12487
push usereakhgari@mozilla.com
push dateMon, 29 Mar 2010 18:07:00 +0000
treeherdermozilla-central@313ecb8fb0f9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs555289
milestone1.9.3a4pre
Bug 555289 - Plugin crashed UI should be RTL in RTL locales; r=dao
toolkit/mozapps/plugins/content/pluginProblem.xml
toolkit/mozapps/plugins/content/pluginProblemContent.css
--- a/toolkit/mozapps/plugins/content/pluginProblem.xml
+++ b/toolkit/mozapps/plugins/content/pluginProblem.xml
@@ -31,30 +31,35 @@
    - under the terms of either the GPL or the LGPL, and not to allow others to
    - use your version of this file under the terms of the MPL, indicate your
    - decision by deleting the provisions above and replace them with the notice
    - and other provisions required by the LGPL or the GPL. If you do not delete
    - the provisions above, a recipient may use your version of this file under
    - the terms of any one of the MPL, the GPL or the LGPL.
    -
    - ***** END LICENSE BLOCK ***** -->
-<!DOCTYPE bindings SYSTEM "chrome://mozapps/locale/plugins/plugins.dtd">
+<!DOCTYPE bindings [
+  <!ENTITY % pluginsDTD SYSTEM "chrome://mozapps/locale/plugins/plugins.dtd">
+  <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
+  %pluginsDTD;
+  %globalDTD;
+]>
 
 <bindings id="pluginBindings"
               xmlns="http://www.mozilla.org/xbl"
               xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
               xmlns:html="http://www.w3.org/1999/xhtml">
 <binding id="pluginProblem" inheritstyle="false">
     <resources>
         <stylesheet src="chrome://mozapps/skin/plugins/pluginProblem.css"/>
         <stylesheet src="chrome://mozapps/content/plugins/pluginProblemContent.css"/>
     </resources>
 
     <content>
-        <xul:vbox class="mainBox" role="link" flex="1">
+        <xul:vbox class="mainBox" role="link" flex="1" chormedir="&locale.dir;">
             <xul:spacer flex="1"/>
             <xul:box class="icon"/>
             <html:div class="msg msgUnsupported">&missingPlugin.label;</html:div>
             <html:div class="msg msgDisabled">&disabledPlugin.label;</html:div>
             <html:div class="msg msgBlocked">&blockedPlugin.label;</html:div>
             <html:div class="msg msgCrashed"><!-- set at runtime --></html:div>
             <html:div class="msg msgReload">&reloadPlugin.pre;<html:a class="reloadLink" href="">&reloadPlugin.middle;</html:a>&reloadPlugin.post;</html:div>
             <xul:spacer flex="1"/>
--- a/toolkit/mozapps/plugins/content/pluginProblemContent.css
+++ b/toolkit/mozapps/plugins/content/pluginProblemContent.css
@@ -43,8 +43,13 @@ html|applet:not([height]), html|applet[h
 :-moz-handler-crashed .msgCrashed,
 :-moz-handler-crashed .msgReload {
   display: block;
 }
 
 .helpIcon {
   cursor: pointer;
 }
+
+#mainBox[chromedir="rtl"] {
+  direction: rtl;
+  unicode-bidi: embed;
+}