Debugging code for bug 8022011; r=dao
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 23 Oct 2012 18:47:04 -0400
changeset 111335 efb52cbc71e56febfa2c99cba623799b3d8463ed
parent 111334 650a1ac5cf817c1de169928cc4284e88888da0bb
child 111336 40c02387c9b7736c08d15afca6db4962ae136cc6
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersdao
bugs8022011
milestone19.0a1
Debugging code for bug 8022011; r=dao
toolkit/content/widgets/browser.xml
--- a/toolkit/content/widgets/browser.xml
+++ b/toolkit/content/widgets/browser.xml
@@ -314,18 +314,23 @@
          }
         })
       ]]></field>
 
       <property name="webNavigation"
                 readonly="true">
         <getter>
         <![CDATA[
-          if (!this._webNavigation)
-            this._webNavigation = this.isRemoteBrowser ? this._remoteWebNavigation : this.docShell.QueryInterface(Components.interfaces.nsIWebNavigation);
+          try {
+            if (!this._webNavigation)
+              this._webNavigation = this.isRemoteBrowser ? this._remoteWebNavigation : this.docShell.QueryInterface(Components.interfaces.nsIWebNavigation);
+          } catch (e) {
+            window.dump(e.stack);
+            throw e;
+          }
           return this._webNavigation;
         ]]>
         </getter>
       </property>
 
       <field name="_webBrowserFind">null</field>
 
       <property name="webBrowserFind"