Closed
Bug 717428
Opened 13 years ago
Closed 12 years ago
AndroidBrowserDB/BrowserProvider cleanup
Categories
(Firefox for Android Graveyard :: General, defect, P2)
Tracking
(firefox15 verified, firefox16 verified, blocking-fennec1.0 -)
VERIFIED
FIXED
Firefox 17
People
(Reporter: bnicholson, Assigned: bnicholson)
References
Details
Attachments
(2 files, 4 obsolete files)
18.08 KB,
patch
|
lucasr
:
review+
|
Details | Diff | Splinter Review |
1.09 KB,
patch
|
lucasr
:
review+
lsblakk
:
approval-mozilla-aurora+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
We should store a reference to a page's favicon id rather than an actual favicon blob. If several pages use the same favicon (like http://www.google.com/m?q=foo and http://www.google.com/m?q=bar), this allows us to reuse the same favicon without duplicating it for each page entry in the database.
Updated•13 years ago
|
Assignee: nobody → bnicholson
tracking-fennec: --- → 12+
Priority: -- → P3
Assignee | ||
Comment 1•13 years ago
|
||
The DB schema has changed a bit since this bug was filed, but the problem of storing duplicate favicons still exists. We create a duplicate entries in the images table for the same favicons. We can fix this by indexing the table based on the favicon URL itself rather than the URL of the page that uses it. This is what we do on desktop.
blocking-fennec1.0: --- → ?
Comment 2•13 years ago
|
||
This would fix bug 716729 as well: https://bugzilla.mozilla.org/show_bug.cgi?id=716729#c15
Comment 3•13 years ago
|
||
Lets start the investigation to make this happen
blocking-fennec1.0: ? → beta+
Priority: P3 → P2
Comment 4•13 years ago
|
||
We decided that this bug is important and wanted, but not explicitly needed for the initial release
blocking-fennec1.0: beta+ → -
Assignee | ||
Comment 5•13 years ago
|
||
Stopping work on this for now since it's no longer a blocker, but I'll add my WIP patches for when it get picked up again.
Assignee | ||
Comment 6•13 years ago
|
||
We currently store favicon URLs in favicon_urls.db. This patch imports them into the images table and removes the obsolete favicon_urls.db.
Assignee | ||
Comment 7•13 years ago
|
||
uploaded wrong patch
Attachment #611668 -
Attachment is obsolete: true
Assignee | ||
Comment 8•13 years ago
|
||
To prevents duplicates, we need a separate favicons table where each row is a unique favicon. The history table includes a new column, favicon_id, which allows each page to refer to a favicon entry.
Assignee | ||
Comment 9•13 years ago
|
||
Imports favicon URLs/data from the images table into the new favicons table.
Comment 11•13 years ago
|
||
Note that we won't be able to sync favicons until the existing uniqueness constraint goes away, either by adjusting the current schema or applying this change. (Right now each page needs to have a different favicon GUID.)
Blocks: 709404
Updated•12 years ago
|
tracking-fennec: 12+ → 16+
Assignee | ||
Comment 12•12 years ago
|
||
This change will create a favicons table, meaning the history/bookmarks tables will contain IDs pointing to these entries. This, in turn, requires factoring out history/bookmarks into a places DB, similar to what we do on desktop.
Summary: Reuse favicons in DB → Change DB schema to more closely resemble places
Assignee | ||
Comment 14•12 years ago
|
||
I think AndroidBrowserDB is long gone, so we should go ahead and drop it.
Attachment #611669 -
Attachment is obsolete: true
Attachment #611670 -
Attachment is obsolete: true
Attachment #611671 -
Attachment is obsolete: true
Attachment #650355 -
Flags: review?(lucasr.at.mozilla)
Assignee | ||
Comment 15•12 years ago
|
||
Seems like these typos here will be cause us to repeat steps our migration logic...
Attachment #650356 -
Flags: review?(lucasr.at.mozilla)
Comment 16•12 years ago
|
||
Comment on attachment 650355 [details] [diff] [review] Part 1: Remove AndroidBrowserDB Review of attachment 650355 [details] [diff] [review]: ----------------------------------------------------------------- Nice. I assume you grep'd the whole project to make sure there are references to AndroidBrowserDB anymore.
Attachment #650355 -
Flags: review?(lucasr.at.mozilla) → review+
Comment 17•12 years ago
|
||
Comment on attachment 650356 [details] [diff] [review] Part 2: Add missing breaks in database upgrade logic Review of attachment 650356 [details] [diff] [review]: ----------------------------------------------------------------- Ouch.
Attachment #650356 -
Flags: review?(lucasr.at.mozilla) → review+
Assignee | ||
Comment 18•12 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/ab946a12992a http://hg.mozilla.org/integration/mozilla-inbound/rev/8e5ce6580352
Whiteboard: [leave open]
Comment 19•12 years ago
|
||
Maybe split this bug?
Status: NEW → ASSIGNED
Target Milestone: --- → Firefox 17
Comment 20•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/ab946a12992a https://hg.mozilla.org/mozilla-central/rev/8e5ce6580352
Comment 21•12 years ago
|
||
We want to make sure we get a full 6 weeks of testing on trunk before moving this change, so fx18 is the earliest vehicle for that.
tracking-fennec: 16+ → 18+
Assignee | ||
Comment 22•12 years ago
|
||
I should have put the patches here in a separate bug, so I've split this one and created bug 784086 for the DB schema refactor.
Assignee | ||
Updated•12 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 23•12 years ago
|
||
Comment on attachment 650356 [details] [diff] [review] Part 2: Add missing breaks in database upgrade logic [Approval Request Comment] Bug caused by (feature/regressing bug #): User impact if declined: db migration could be slower Testing completed (on m-c, etc.): m-c Risk to taking this patch (and alternatives if risky): low risk String or UUID changes made by this patch: none We're missing some breaks when we do the database migration, meaning some steps are being repeated. This is likely hurting first run performance.
Attachment #650356 -
Flags: approval-mozilla-beta?
Attachment #650356 -
Flags: approval-mozilla-aurora?
Assignee | ||
Updated•12 years ago
|
status-firefox15:
--- → affected
status-firefox16:
--- → affected
Comment 24•12 years ago
|
||
Comment on attachment 650356 [details] [diff] [review] Part 2: Add missing breaks in database upgrade logic Approving for branch uplift, low risk, mobile-only, improvements to first-run perf.
Attachment #650356 -
Flags: approval-mozilla-beta?
Attachment #650356 -
Flags: approval-mozilla-beta+
Attachment #650356 -
Flags: approval-mozilla-aurora?
Attachment #650356 -
Flags: approval-mozilla-aurora+
Comment 27•12 years ago
|
||
Changes were applied for m-a and also for Firefox 15 and Firefox 16. Closing bug as verified fixed. -- Device: Galaxy Note OS: Android 4.0.4
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•