Bug 882902 - Remove old fennec text input bindings no longer in use. r=fryn
authorJim Mathies <jmathies@mozilla.com>
Wed, 19 Jun 2013 14:20:45 -0500
changeset 147155 08f0b84d5e6227abea501043e496644aafb4da5d
parent 147154 aa1227e3d6ba690cfcdee85c9aa6518823fd3ebc
child 147156 754436cbbc100b79053457a7fa80a40fed1fc9b6
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfryn
bugs882902
milestone24.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 882902 - Remove old fennec text input bindings no longer in use. r=fryn
browser/metro/base/content/bindings/bindings.xml
browser/metro/base/content/browser.css
--- a/browser/metro/base/content/bindings/bindings.xml
+++ b/browser/metro/base/content/bindings/bindings.xml
@@ -199,38 +199,16 @@
         <![CDATA[
           let box = this.inputField.parentNode;
           box.showContextMenu(this, event, false);
         ]]>
       </handler>
     </handlers>
   </binding>
 
-  <binding id="textarea" extends="chrome://global/content/bindings/textbox.xml#textarea">
-    <handlers>
-      <handler event="contextmenu" phase="capturing">
-        <![CDATA[
-          let box = this.inputField.parentNode;
-          box.showContextMenu(this, event, false);
-        ]]>
-      </handler>
-    </handlers>
-  </binding>
-
-  <binding id="timed-textbox" extends="chrome://global/content/bindings/textbox.xml#timed-textbox">
-    <handlers>
-      <handler event="contextmenu" phase="capturing">
-        <![CDATA[
-          let box = this.inputField.parentNode;
-          box.showContextMenu(this, event, false);
-        ]]>
-      </handler>
-    </handlers>
-  </binding>
-
   <binding id="search-textbox" extends="chrome://global/content/bindings/textbox.xml#search-textbox">
     <implementation>
       <field name="_searchClear">
         <![CDATA[
           document.getAnonymousElementByAttribute(this, "class", "textbox-search-clear");
         ]]>
       </field>
     </implementation>
@@ -265,27 +243,16 @@
                 imeEditor.forceCompositionEnd();
             } catch(e) {}
           }, 0, this);
         }
       ]]></handler>
     </handlers>
   </binding>
 
-  <binding id="numberbox" extends="chrome://global/content/bindings/numberbox.xml#numberbox">
-    <handlers>
-      <handler event="contextmenu" phase="capturing">
-        <![CDATA[
-          let box = this.inputField.parentNode;
-          box.showContextMenu(this, event, false);
-        ]]>
-      </handler>
-    </handlers>
-  </binding>
-
   <binding id="input-box" extends="xul:box">
     <implementation>
       <method name="showContextMenu">
         <parameter name="aTextbox"/>
         <parameter name="aEvent"/>
         <parameter name="aIgnoreReadOnly"/>
         <body><![CDATA[
           let selectionStart = aTextbox.selectionStart;
--- a/browser/metro/base/content/browser.css
+++ b/browser/metro/base/content/browser.css
@@ -204,23 +204,12 @@ arrowbox {
 .textbox-input-box[spellcheck="true"] {
   -moz-binding: url("chrome://browser/content/bindings/bindings.xml#input-box");
 }
 
 textbox {
   -moz-binding: url("chrome://browser/content/bindings/bindings.xml#textbox");
 }
 
-textbox[multiline="true"] {
-  -moz-binding: url("chrome://browser/content/bindings/bindings.xml#textarea");
-}
-
-textbox[type="timed"] {
-  -moz-binding: url("chrome://browser/content/bindings/bindings.xml#timed-textbox");
-}
-
+/* used in about:config */
 textbox[type="search"] {
   -moz-binding: url("chrome://browser/content/bindings/bindings.xml#search-textbox");
 }
-
-textbox[type="number"] {
-  -moz-binding: url("chrome://browser/content/bindings/bindings.xml#numberbox");
-}