зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
bc5d30a959
Коммит
bd0f915c5b
|
@ -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++) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче