Bug 1505435 - Follow-up: Import Services.jsm. rs=bustage-fix a=jorgk
authorJorg K <jorgk@jorgk.com>
Fri, 09 Nov 2018 21:29:48 +0100
changeset 33493 c40e51472fab2871b47789f9d9be2b3c2441e62e
parent 33492 40efa95a8ab09a06f4e8778bfdb1dfad8a940c3c
child 33494 0efafe38b54055d9350fb7714600cf1cd0c562b4
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersbustage-fix, jorgk
bugs1505435
Bug 1505435 - Follow-up: Import Services.jsm. rs=bustage-fix a=jorgk
common/bindings/datetimepicker.xml
--- a/common/bindings/datetimepicker.xml
+++ b/common/bindings/datetimepicker.xml
@@ -144,16 +144,17 @@
         </body>
       </method>
 
       <method name="_init">
         <body/>
       </method>
 
       <constructor>
+        ChromeUtils.import("resource://gre/modules/Services.jsm");
         this._init();
 
         var cval = this.getAttribute("value");
         if (cval) {
           try {
             this.value = cval;
             return;
           } catch (ex) { }