Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIURI.equals]" in PSB_updateState.
authorMarco Bonardo <mbonardo@mozilla.com>
Tue, 30 Nov 2010 11:14:24 +0100
changeset 59367 080549b4c0f894b99ebe24bfc9614401a22c36bd
parent 59366 06b0d231434814805a6955a7b67b59e0ca4d7fba
child 59368 e6bea6ba08493aef6b733388c0e37af9d1c060ac
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
milestone2.0b8pre
Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIURI.equals]" in PSB_updateState. r=sdwilsh a=sdwilsh
browser/base/content/browser-places.js
--- a/browser/base/content/browser-places.js
+++ b/browser/base/content/browser-places.js
@@ -944,17 +944,17 @@ var PlacesStarButton = {
     delete this._unstarredTooltip;
     return this._unstarredTooltip =
       gNavigatorBundle.getString("starButtonOff.tooltip");
   },
 
   updateState: function PSB_updateState()
   {
     this._starIcon = document.getElementById("star-button");
-    if (!this._starIcon || gBrowser.currentURI.equals(this._uri)) {
+    if (!this._starIcon || (this._uri && gBrowser.currentURI.equals(this._uri))) {
       return;
     }
 
     // Reset tracked values.
     this._uri = gBrowser.currentURI;
     this._itemIds = [];
 
     // Hide the star while we update its state.