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:
@@ -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();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user