mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
Bug 1008029 - Fix intermittent browser_newtab_update.js failures r=Gijs
This commit is contained in:
parent
d10a93168b
commit
cc79d7a098
@ -45,4 +45,3 @@ support-files =
|
||||
[browser_newtab_undo.js]
|
||||
[browser_newtab_unpin.js]
|
||||
[browser_newtab_update.js]
|
||||
skip-if = true # Bug 1008029
|
||||
|
@ -277,11 +277,11 @@ let AllPages = {
|
||||
* @param aReason The reason for updating all pages.
|
||||
*/
|
||||
update(aExceptPage, aReason = "") {
|
||||
this._pages.forEach(function (aPage) {
|
||||
if (aExceptPage != aPage) {
|
||||
aPage.update(aReason);
|
||||
for (let page of this._pages.slice()) {
|
||||
if (aExceptPage != page) {
|
||||
page.update(aReason);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user