Bug 687298 - Prevent boolean setting checkboxes from getting two click events at once [r=mfinkle]
authorMatt Brubeck <mbrubeck@mozilla.com>
Mon, 19 Sep 2011 15:54:54 -0700
changeset 77168 1db035c0e495182631bd2a2beca272372d46af85
parent 77167 1b5705431f5ae7d7127498e08e30c08ed0368947
child 77169 c64b8574e28235e03e8f15331f99ff894bb51b76
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersmfinkle
bugs687298
milestone9.0a1
Bug 687298 - Prevent boolean setting checkboxes from getting two click events at once [r=mfinkle]
mobile/chrome/content/bindings.xml
--- a/mobile/chrome/content/bindings.xml
+++ b/mobile/chrome/content/bindings.xml
@@ -1850,40 +1850,55 @@
           ContextHelper.showPopup({ target: aTextbox, json: json });
         ]]></body>
       </method>
     </implementation>
   </binding>
   
   <binding id="setting-fulltoggle-bool" extends="chrome://mozapps/content/extensions/setting.xml#setting-bool">
     <handlers>
+      <handler event="click" button="0" phase="capturing">
+        <![CDATA[
+        event.stopPropagation();
+        ]]>
+      </handler>
       <handler event="TapSingle" button="0" phase="capturing">
         <![CDATA[
         this.input.setChecked(!this.value);
         this.inputChanged();
         event.stopPropagation();
         ]]>
       </handler>
     </handlers>
   </binding>
 
   <binding id="setting-fulltoggle-boolint" extends="chrome://mozapps/content/extensions/setting.xml#setting-boolint">
     <handlers>
+      <handler event="click" button="0" phase="capturing">
+        <![CDATA[
+        event.stopPropagation();
+        ]]>
+      </handler>
       <handler event="TapSingle" button="0" phase="capturing">
         <![CDATA[
         this.input.setChecked(!this.value);
         this.inputChanged();
         event.stopPropagation();
         ]]>
       </handler>
     </handlers>
   </binding>
 
   <binding id="setting-fulltoggle-localized-bool" extends="chrome://mozapps/content/extensions/setting.xml#setting-localized-bool">
     <handlers>
+      <handler event="click" button="0" phase="capturing">
+        <![CDATA[
+        event.stopPropagation();
+        ]]>
+      </handler>
       <handler event="TapSingle" button="0" phase="capturing">
         <![CDATA[
         this.input.setChecked(!this.value);
         this.inputChanged();
         event.stopPropagation();
         ]]>
       </handler>
     </handlers>