Bug 644641 - Fix perma-oranges browser-chrome tests on desktop - followup [r=mfinkle]
authorVivien Nicolas <21@vingtetun.org>
Fri, 25 Mar 2011 18:40:28 +0100
changeset 67543 1f80214e3055a59740e68da2cffddcb8419da7e1
parent 67542 74618876a5acd12443c6f45de0f542d60768d63f
child 67544 87c89078bc91a76d615aa4a5ded1eaa75b52c130
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs644641
Bug 644641 - Fix perma-oranges browser-chrome tests on desktop - followup [r=mfinkle]
mobile/chrome/content/bindings.xml
--- a/mobile/chrome/content/bindings.xml
+++ b/mobile/chrome/content/bindings.xml
@@ -1001,17 +1001,24 @@
 
       <field name="scrollBoxObject">this._children.scrollBoxObject</field>
 
       <property name="items" readonly="true" onget="return this._children.childNodes"/>
 
       <!-- mobileRoot is a property otherwise if it is accessed before Places
            is ready the value will be bitrotted
       -->
-      <property name="mobileRoot" onget="return PlacesUtils.annotations.getItemsWithAnnotation('mobile/bookmarksRoot', {})[0];"/>
+      <field name="_mobileRoot">null</field>
+      <property name="mobileRoot">
+        <getter><![CDATA[
+          if (!this._mobileRoot)
+            this._mobileRoot = PlacesUtils.annotations.getItemsWithAnnotation('mobile/bookmarksRoot', {})[0];
+          return this._mobileRoot;
+        ]]></getter>
+      </property>
 
       <property name="isRootFolder" readonly="true">
         <getter>
           <![CDATA[
             let currentFolderId = this._parents.lastChild.itemId;
             return currentFolderId == this.mobileRoot;
           ]]>
         </getter>