Bug 1008029 - Fix intermittent browser_newtab_update.js failures r=Gijs

This commit is contained in:
Tim Taubert 2014-11-14 20:21:17 +01:00
parent d10a93168b
commit cc79d7a098
2 changed files with 4 additions and 5 deletions

View File

@ -45,4 +45,3 @@ support-files =
[browser_newtab_undo.js]
[browser_newtab_unpin.js]
[browser_newtab_update.js]
skip-if = true # Bug 1008029

View File

@ -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);
}
});
}
},
/**