Closed
Bug 1903565
Opened 2 years ago
Closed 1 year ago
Display the homepage as a thumbnail in tabs tray
Categories
(Firefox for Android :: Homepage, task, P3)
Tracking
()
RESOLVED
FIXED
142 Branch
| Tracking | Status | |
|---|---|---|
| firefox142 | --- | fixed |
People
(Reporter: gl, Assigned: adhingra)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxdroid] [group5])
Attachments
(2 external files, 1 obsolete file)
As part of Homepage as a New Tab, we will be able to see the homepage as a tab in the Tabs Tray. We currently only display thumbnails of websites and will need to add the ability to display a screenshot of the homepage.
| Reporter | ||
Comment 1•1 year ago
|
||
From talking to Petru, here's something to try for getting a thumbnail screenshot of the homepage that could be stored in the existing thumbnail storage.
Bitmap.createBitmap(requireView().getDrawingCache()).getDrawingCachemight be deprecated after API 28 according to https://stackoverflow.com/questions/52642055/view-getdrawingcache-is-deprecated-in-android-api-28, which also provides newer solutions to try.- Seems like we could use
getDrawingCacheup until API 24 after which we can use https://developer.android.com/reference/android/view/PixelCopy - Important: Scale down the image. There should be an API specifically for this. Otherwise, the Bitmap will be 5-10MB in size, which might just be a bit too much for a thumbnail.
Comment 2•1 year ago
|
||
(In reply to Gabriel Luong [:gl] (ΦωΦ) from comment #1)
- Important: Scale down the image. There should be an API specifically for this. Otherwise, the Bitmap will be 5-10MB in size, which might just be a bit too much for a thumbnail.
If you use the ThumbnailsStorage for storing it, then you get this for free.
| Assignee | ||
Updated•1 year ago
|
Assignee: nobody → adhingra
Status: NEW → ASSIGNED
Comment 3•1 year ago
|
||
(In reply to Gabriel Luong [:gl] (ΦωΦ) from comment #1)
Bitmap.createBitmap(requireView().getDrawingCache()).getDrawingCachemight be deprecated after API 28 according to https://stackoverflow.com/questions/52642055/view-getdrawingcache-is-deprecated-in-android-api-28, which also provides newer solutions to try.- Seems like we could use
getDrawingCacheup until API 24 after which we can use https://developer.android.com/reference/android/view/PixelCopy
This unfortunately does not help us any more since we've moved the homescreen over to Compose and we should implement it just for that. adhingra is exporing this currently.
| Reporter | ||
Updated•1 year ago
|
Whiteboard: [fxdroid] [group5]
Updated•1 year ago
|
| Assignee | ||
Comment 4•1 year ago
|
||
| Assignee | ||
Comment 5•1 year ago
|
||
Updated•1 year ago
|
Attachment #9499030 -
Attachment is obsolete: true
Updated•1 year ago
|
Attachment #9498811 -
Attachment description: WIP: Bug 1903565 - Display the homepage as a thumbnail in tabs tray → Bug 1903565 - Display the homepage as a thumbnail in tabs tray
| Assignee | ||
Comment 6•1 year ago
|
||
Pushed by adhingra@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/02c748b430bf
https://hg.mozilla.org/integration/autoland/rev/784c2170cff0
Display the homepage as a thumbnail in tabs tray r=android-reviewers,jonalmeida
Comment 8•1 year ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox142:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
Pushed by adhingra@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/8baedd6abf55
https://hg.mozilla.org/integration/autoland/rev/d0c89372983e
Add background to homepage thumbnail based on theme. r=android-reviewers,jonalmeida
Comment 10•1 year ago
|
||
| bugherder | ||
You need to log in
before you can comment on or make changes to this bug.
Description
•