Bug 1290656 - Fix undefined gbox regression in am-im.js. r=aceman a=jorgk
authoraleth <aleth@instantbird.org>
Mon, 01 Aug 2016 23:30:49 +0200
changeset 27326 4c3d1769420257cf57512ce5d622500cd3b9ccd3
parent 27325 a53de0d51fc6a0f6c63d44d4a194fb414db3c67c
child 27327 1487c57244548ca3ac03bc0d2b1de27677a2f67a
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaceman, jorgk
bugs1290656
Bug 1290656 - Fix undefined gbox regression in am-im.js. r=aceman a=jorgk
mail/components/im/content/am-im.js
--- a/mail/components/im/content/am-im.js
+++ b/mail/components/im/content/am-im.js
@@ -85,14 +85,14 @@ var account = {
       accountOptionsHelper.addOptions("server.", this.getProtoOptions(),
                                       attributes);
     let advanced = document.getElementById("advanced");
     if (advanced.hidden && haveOptions) {
       advanced.hidden = false;
       // Force textbox XBL binding attachment by forcing layout,
       // otherwise setFormElementValue from AccountManager.js sets
       // properties that don't exist when restoring values.
-      gbox.getBoundingClientRect();
+      document.getElementById("protoSpecific").getBoundingClientRect();
     }
     else if (!haveOptions)
       advanced.hidden = true;
   }
 };