Bug 629794 - Error: _contentView is undefined in local browsers [r=stechz]
authorMatt Brubeck <mbrubeck@mozilla.com>
Wed, 02 Feb 2011 19:34:45 -0800
changeset 67347 b0a5cded501eb71a9f0837a65e192c08b2fbecc7
parent 67346 3f3341d2bd07587107bd11380d1fd7f9bb09aa6c
child 67348 52f77f69e6f3848f13b4ac1d70f5ae9092357836
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)
reviewersstechz
bugs629794, 628799
Bug 629794 - Error: _contentView is undefined in local browsers [r=stechz] (re-apply fix that was accidentally reverted by merge with bug 628799)
mobile/chrome/content/bindings/browser.xml
--- a/mobile/chrome/content/bindings/browser.xml
+++ b/mobile/chrome/content/bindings/browser.xml
@@ -1014,17 +1014,18 @@
       <!-- Transform the viewport without updating the displayport. -->
       <method name="fuzzyZoom">
         <parameter name="scale"/>
         <parameter name="x"/>
         <parameter name="y"/>
         <body><![CDATA[
           let rootView = this.getRootView();
           rootView._setScale(scale);
-          rootView._contentView.scrollTo(x, y);
+          if ("_contentView" in rootView)
+            rootView._contentView.scrollTo(x, y);
         ]]></body>
       </method>
 
       <!-- After fuzzy zoom, sync the displayport with the new viewport. -->
       <method name="finishFuzzyZoom">
         <body><![CDATA[
           this.getRootView()._updateCacheViewport();