Bug 1435290 - [1.0] Enable automatic image resizing for Fennec and custom tabs. r=kats

This commit is contained in:
Eugen Sawin 2018-02-02 16:51:45 +01:00
parent 2d7b351c2c
commit 86a254d584
2 changed files with 3 additions and 4 deletions

View File

@ -84,6 +84,9 @@ pref("browser.cache.offline.enable", true);
pref("browser.cache.offline.capacity", 5120); // kilobytes
pref("offline-apps.quota.warn", 1024); // kilobytes
// Automatically shrink-to-fit image documents.
pref("browser.enable_automatic_image_resizing", true);
// cache compression turned off for now - see bug #715198
pref("browser.cache.compression_level", 0);

View File

@ -4715,10 +4715,6 @@ Tab.prototype = {
BrowserApp.contentDocumentChanged();
}
this.contentDocumentIsDisplayed = true;
if (contentDocument instanceof Ci.nsIImageDocument) {
contentDocument.shrinkToFit();
}
}
break;