Bug 1290656 - Fix undefined gbox regression in am-im.js. r=aceman a=jorgk DONTBUILD
authoraleth <aleth@instantbird.org>
Mon, 01 Aug 2016 23:30:49 +0200
changeset 27423 63e56e12af6432f312dab3c8fa645c2c66f23de1
parent 27422 5be94e4380803d6e6c476f793563ea6c7ee27794
child 27424 a08bdac74f35aef9b0b56e0f8d025be5da0cb449
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 DONTBUILD
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;
   }
 };