From bd0f915c5bf4d136968aaa52e70bcc7ffcfed025 Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Sat, 31 Mar 2007 23:06:38 +0000 Subject: [PATCH] 114169 - Use hasAttribute (which will be optimized even further soon) to avoid excessive string copying. r=ben sr=hewitt 113582 - put global xbl widgets on a diet. r=ben sr=hewitt --- suite/browser/tabbrowser.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/suite/browser/tabbrowser.xml b/suite/browser/tabbrowser.xml index f55ceda390f..48f3b89edc7 100644 --- a/suite/browser/tabbrowser.xml +++ b/suite/browser/tabbrowser.xml @@ -360,7 +360,7 @@ // If the new tab is busy, and our current state is not busy, then // we need to fire a start to all progress listeners. const nsIWebProgressListener = Components.interfaces.nsIWebProgressListener; - if (this.mCurrentTab.getAttribute("busy") == "true" && !this.mIsBusy) { + if (this.mCurrentTab.hasAttribute("busy") && !this.mIsBusy) { this.mIsBusy = true; webProgress = this.mCurrentBrowser.webProgress; for (i = 0; i < this.mProgressListeners.length; i++) { @@ -372,7 +372,7 @@ // If the new tab is not busy, and our current state is busy, then // we need to fire a stop to all progress listeners. - if (this.mCurrentTab.getAttribute("busy") != "true" && this.mIsBusy) { + if (!this.mCurrentTab.hasAttribute("busy") && this.mIsBusy) { this.mIsBusy = false; webProgress = this.mCurrentBrowser.webProgress; for (i = 0; i < this.mProgressListeners.length; i++) {