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
This commit is contained in:
blakeross%telocity.com 2007-03-31 23:06:38 +00:00
Родитель bc5d30a959
Коммит bd0f915c5b
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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++) {