Closed Bug 1742558 Opened 2 years ago Closed 2 years ago

Add optional image preview support to Places

Categories

(Toolkit :: Places, task, P3)

task

Tracking

()

RESOLVED FIXED
97 Branch
Tracking Status
firefox97 --- fixed

People

(Reporter: mak, Assigned: mak)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Adding optional thumbnails support to Places, not used by the UI yet. This is built on top of the existing BackgroundPageThumbs.jsm implementation.

Add a tombstones table for thumbnails, when places.thumbnails.enabled is true
this table is filled by an after delete trigger on moz_places.
This will then be used by PlacesThumbs to remove orphan thumbnails.

Assignee: nobody → mak
Status: NEW → ASSIGNED

Add a PlacesThumbs.jsm module that offers an alternative long term storage of
thumbnails. Thumbnails are stored using md5 hash of the page url, in WebP format.
Removals happen using the moz_thumbs_tombstones table, orphans removal happens
on Places weekly maintenance.
The same moz-page-thumb: protocol that is currently used for volatile thumbnails,
can be used with Places thumbnails, by using places-thumbnails as host.
All the feature is behind the places.thumbnails.enabled pref, not enabled yet.

Depends on D131915

Attachment #9252120 - Attachment description: Bug 1742558 - Add a Places Thumbnails module. r=Standard8 → Bug 1742558 - Add a Places Previews module. r=Standard8
Attachment #9252119 - Attachment description: Bug 1742558 - Add Places thumbnails tombstones table. r=Standard8 → Bug 1742558 - Add Places previews tombstones table. r=Standard8
Attachment #9252119 - Attachment description: Bug 1742558 - Add Places previews tombstones table. r=Standard8 → Bug 1742558 - Add Places Previews tombstones table. r=Standard8
Pushed by mak77@bonardo.net:
https://hg.mozilla.org/integration/autoland/rev/22241a8445f9
Add Places Previews tombstones table. r=Standard8
https://hg.mozilla.org/integration/autoland/rev/7fa69b62b226
Add a Places Previews module. r=Standard8

Backed out for causing android build bustages in PageThumbProtocolHandler

Backout link: https://hg.mozilla.org/integration/autoland/rev/f3ca8755ab56e691e1e52ce495dc685a6636d2bb

Push with failures

Failure log

 INFO -  In file included from Unified_cpp_netwerk_protocol_res0.cpp:11:
[task 2021-12-20T15:34:41.917Z] 15:34:41     INFO -  /builds/worker/checkouts/gecko/netwerk/protocol/res/PageThumbProtocolHandler.cpp:26:10: fatal error: 'nsIPlacesPreviewsHelperService.h' file not found
[task 2021-12-20T15:34:41.917Z] 15:34:41     INFO -  #include "nsIPlacesPreviewsHelperService.h"
Flags: needinfo?(mak)

ah of course, Android doesn't have Places, i should ifdef it.

Flags: needinfo?(mak)
Summary: Add optional thumbnails support to Places → Add optional image preview support to Places
Pushed by mak77@bonardo.net:
https://hg.mozilla.org/integration/autoland/rev/90d7643c5df5
Add Places Previews tombstones table. r=Standard8
https://hg.mozilla.org/integration/autoland/rev/106d816cc758
Add a Places Previews module. r=Standard8
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
Blocks: 1862135
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: