Closed Bug 539481 Opened 15 years ago Closed 15 years ago

tile.cache.size default should be set every time Fennec loads

Categories

(Firefox for Android Graveyard :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(fennec1.0+)

RESOLVED FIXED
Tracking Status
fennec 1.0+ ---

People

(Reporter: stechz, Assigned: mfinkle)

Details

Attachments

(1 file)

Right now, tile.cache.size is set to a positive value when a new profile is created.  Instead, every time we load Fennec if cache size is -1, we should use the device-specific default.  We should leave the preference at -1 in case we ever care to change the default.
Attached patch patchSplinter Review
Moves the tile cache "auto sizing" back to BrowserView. Leaves the N810 plugin disable code and "initNewProfile" alone.
Assignee: nobody → mark.finkle
Attachment #421674 - Flags: review?(webapps)
Attachment #421674 - Flags: review?(pavlov)
Attachment #421674 - Flags: review?(pavlov) → review?(mozbugz)
Attachment #421674 - Flags: review?(mozbugz) → review+
Attachment #421674 - Flags: review?(webapps) → review+
Comment on attachment 421674 [details] [diff] [review]
patch

>diff --git a/chrome/content/BrowserView.js b/chrome/content/BrowserView.js
>--- a/chrome/content/BrowserView.js
>+++ b/chrome/content/BrowserView.js
>@@ -243,17 +243,36 @@ BrowserView.prototype = {
> 
>     let cacheSize = kBrowserViewCacheSize;
>     try {
>       cacheSize = gPrefService.getIntPref("tile.cache.size");
>       // XXX cacheSize still can be -1 even though new profile sets it to a positive value
>       if (cacheSize == -1)
>         cacheSize = kBrowserViewCacheSize;
>     } catch(e) {}

Take this out so that cacheSize is still -1.  Otherwise the below code will do nothing.

r+ otherwise.
tracking-fennec: --- → ?
(In reply to comment #2)
<snip>
 
> Take this out so that cacheSize is still -1.  Otherwise the below code will do
> nothing.
> 
> r+ otherwise.

Nice catch. Serves me right for only looking at the single patch the made the initial change.
tracking-fennec: ? → 1.0+
pushed to default with stechz'z change:
http://hg.mozilla.org/mobile-browser/rev/02dc280e8168
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: