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)
Tracking
(fennec1.0+)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
fennec | 1.0+ | --- |
People
(Reporter: stechz, Assigned: mfinkle)
Details
Attachments
(1 file)
3.12 KB,
patch
|
stechz
:
review+
dougt
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•15 years ago
|
||
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)
Assignee | ||
Updated•15 years ago
|
Attachment #421674 -
Flags: review?(pavlov)
Assignee | ||
Updated•15 years ago
|
Attachment #421674 -
Flags: review?(pavlov) → review?(mozbugz)
Updated•15 years ago
|
Attachment #421674 -
Flags: review?(mozbugz) → review+
Reporter | ||
Updated•15 years ago
|
Attachment #421674 -
Flags: review?(webapps) → review+
Reporter | ||
Comment 2•15 years ago
|
||
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.
Assignee | ||
Updated•15 years ago
|
tracking-fennec: --- → ?
Assignee | ||
Comment 3•15 years ago
|
||
(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.
Updated•15 years ago
|
tracking-fennec: ? → 1.0+
Assignee | ||
Comment 4•15 years ago
|
||
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.
Description
•