summaryrefslogtreecommitdiffstats
path: root/application/basilisk/base/content/newtab/page.js
diff options
context:
space:
mode:
authoradeshkp <adeshkp@users.noreply.github.com>2019-05-25 11:19:38 -0400
committeradeshkp <adeshkp@users.noreply.github.com>2019-05-25 11:19:38 -0400
commit1eca3c3a6306e33efe3c18ce60e91d2a71095c56 (patch)
tree0b6b13a2a36652702da9ec571c30e16670137050 /application/basilisk/base/content/newtab/page.js
parent915ffc660053cc48153c00dec66b913517dba794 (diff)
downloadUXP-1eca3c3a6306e33efe3c18ce60e91d2a71095c56.tar
UXP-1eca3c3a6306e33efe3c18ce60e91d2a71095c56.tar.gz
UXP-1eca3c3a6306e33efe3c18ce60e91d2a71095c56.tar.lz
UXP-1eca3c3a6306e33efe3c18ce60e91d2a71095c56.tar.xz
UXP-1eca3c3a6306e33efe3c18ce60e91d2a71095c56.zip
Issue #246 - Revert "Revert "Remove unwanted newtab page code""
Page thumbnails hiccups seem to have resolved, so it can be landed again. This reverts commit 51792b31a36b9539fdd1b4b85abe486c1652b6c4. Conflicts: application/basilisk/modules/DirectoryLinksProvider.jsm
Diffstat (limited to 'application/basilisk/base/content/newtab/page.js')
-rw-r--r--application/basilisk/base/content/newtab/page.js24
1 files changed, 2 insertions, 22 deletions
diff --git a/application/basilisk/base/content/newtab/page.js b/application/basilisk/base/content/newtab/page.js
index f7626ced2..b92d3d5ce 100644
--- a/application/basilisk/base/content/newtab/page.js
+++ b/application/basilisk/base/content/newtab/page.js
@@ -48,11 +48,6 @@ var gPage = {
let enabled = gAllPages.enabled;
this._updateAttributes(enabled);
- // Update thumbnails to the new enhanced setting
- if (aData == "browser.newtabpage.enhanced") {
- this.update();
- }
-
// Initialize the whole page if we haven't done that, yet.
if (enabled) {
this._init();
@@ -79,10 +74,7 @@ var gPage = {
update(reason = "") {
// Update immediately if we're visible.
if (!document.hidden) {
- // Ignore updates where reason=links-changed as those signal that the
- // provider's set of links changed. We don't want to update visible pages
- // in that case, it is ok to wait until the user opens the next tab.
- if (reason != "links-changed" && gGrid.ready) {
+ if (gGrid.ready) {
gGrid.refresh();
}
@@ -119,10 +111,6 @@ var gPage = {
document.getElementById("newtab-search-submit").value =
document.body.getAttribute("dir") == "ltr" ? "\u25B6" : "\u25C0";
- if (Services.prefs.getBoolPref("browser.newtabpage.compact")) {
- document.body.classList.add("compact");
- }
-
// Initialize search.
gSearch.init();
@@ -260,8 +248,6 @@ var gPage = {
onPageVisibleAndLoaded() {
// Send the index of the last visible tile.
this.reportLastVisibleTileIndex();
- // Maybe tell the user they can undo an initial automigration
- this.maybeShowAutoMigrationUndoNotification();
},
reportLastVisibleTileIndex() {
@@ -287,11 +273,5 @@ var gPage = {
}
}
}
-
- DirectoryLinksProvider.reportSitesAction(sites, "view", lastIndex);
- },
-
- maybeShowAutoMigrationUndoNotification() {
- sendAsyncMessage("NewTab:MaybeShowAutoMigrationUndoNotification");
- },
+ }
};