Backed out 2 changesets (bug 911307) for frequent timeouts in browser_newtab_perwindow_private_browsing.js

Backed out changeset 70638b7c97f1 (bug 911307)
Backed out changeset 3951f7e82b4c (bug 911307)
This commit is contained in:
Phil Ringnalda
2014-03-29 12:13:11 -07:00
parent 6f6baaae45
commit 304bd1a718
23 changed files with 61 additions and 1324 deletions

View File

@@ -65,13 +65,10 @@ let gPage = {
/**
* Updates the whole page and the grid when the storage has changed.
* @param aOnlyIfHidden If true, the page is updated only if it's hidden in
* the preloader.
*/
update: function Page_update(aOnlyIfHidden=false) {
let skipUpdate = aOnlyIfHidden && this.allowBackgroundCaptures;
update: function Page_update() {
// The grid might not be ready yet as we initialize it asynchronously.
if (gGrid.ready && !skipUpdate) {
if (gGrid.ready) {
gGrid.refresh();
}
},