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 2736 43e6a7f68527d6926f3a97005bed30e569022c52
parent 2735 1165fcc932427cf7ba66dffd5c800753a4dd4c3e
child 2737 a98f8ee134c2a54aec77cb992273d04cd65c1294
push id2298
push usermbrubeck@mozilla.com
push dateThu, 03 Feb 2011 03:37:23 +0000
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)
chrome/content/bindings/browser.xml
--- a/chrome/content/bindings/browser.xml
+++ b/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();