Commit graph

20 commits

Author SHA1 Message Date
Jonathan Almeida
ac73bae091 [components] Close https://github.com/mozilla-mobile/android-components/issues/8040: Move ImageLoader to support-base
The `ImageLoader` API is public and we should have it in a better place.
2020-10-06 14:39:58 +00:00
MozLando
aaa61a39f5 [components] Merge https://github.com/mozilla-mobile/android-components/pull/8121
8121: Issue https://github.com/mozilla-mobile/android-components/issues/7867: Move EngineSession from SessionManager to BrowserState. r=csadilek a=pocmo

Fenix PR: https://github.com/mozilla-mobile/fenix/pull/13933
R-B PR: https://github.com/mozilla-mobile/reference-browser/pull/1292



Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
2020-08-26 15:55:09 +00:00
Sebastian Kaspari
212c7d73c1 [components] Issue https://github.com/mozilla-mobile/android-components/issues/7867: Move EngineSession from SessionManager to BrowserState.
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>

Issue https://github.com/mozilla-mobile/android-components/pull/8121: Replace MigrationStore with MigrationContext and prevent usage outside of a Middleware.

* Before executing the reducer chain we now verify that we are on the store thread and throw if we are on a different thread.
* MigrationContext now provides a store property that returns the underlying Store instance. This can be used to pass it to
  other components and threads that are not part of the Middleware.
* Fixed existing Middleware implementations to use the MiddlewareContext or pass the actual Store instance around.
2020-08-26 10:50:47 -04:00
Jonathan Almeida
54ad9dba34 [components] Close https://github.com/mozilla-mobile/android-components/issues/8181: Expose requestScreenshot on BrowserThumbnails 2020-08-21 13:51:41 -04:00
Jonathan Almeida
ec1134b20b [components] Close https://github.com/mozilla-mobile/android-components/issues/8067: Add usage documentation on how to setup feature-thumbnails
Setting up thumbnails for the first time is more complex than our other
features, so having more documentation on how to do this is always good!
2020-08-18 18:52:16 -04:00
Kainalu Hagiwara
411a76ffd1 [components] Closes https://github.com/mozilla-mobile/android-components/issues/7533 - Allow loading a thumbnail at maximum size. 2020-07-14 16:40:11 -07:00
MozLando
258b42092a [components] Merge https://github.com/mozilla-mobile/android-components/pull/7499
7499: Close https://github.com/mozilla-mobile/android-components/issues/7495: Wait for firstContentfulPaint in BrowserThumbnail r=gabrielluong a=jonalmeida



Co-authored-by: Jonathan Almeida <jalmeida@mozilla.com>
2020-06-26 06:53:03 +00:00
Gabriel Luong
4423fc8ba8 [components] Issue https://github.com/mozilla-mobile/android-components/issues/7138: Add ImageRequest to ImageLoader to allow consumers to specify the preferred image size 2020-06-25 20:08:36 -04:00
Jonathan Almeida
8a69c5805f [components] Close https://github.com/mozilla-mobile/android-components/issues/7495: Wait for firstContentfulPaint in BrowserThumbnail 2020-06-25 15:53:10 -04:00
MozLando
0133c37b2f [components] Merge https://github.com/mozilla-mobile/android-components/pull/7442
7442: Issue https://github.com/mozilla-mobile/android-components/issues/7441: Remove unused ThumbnailsUseCase r=pocmo a=gabrielluong



Co-authored-by: Gabriel Luong <gabriel.luong@gmail.com>
2020-06-25 12:15:52 +00:00
Jonathan Almeida
b07a354f3e [components] Close https://github.com/mozilla-mobile/android-components/issues/7496: Fix intermittent failing test in BrowserThumbnails 2020-06-24 18:13:27 -04:00
Gabriel Luong
d5fa78855e [components] Issue https://github.com/mozilla-mobile/android-components/issues/7441: Remove unused ThumbnailsUseCase 2020-06-23 20:27:02 -04:00
Gabriel Luong
cc964a2270 [components] Issue https://github.com/mozilla-mobile/android-components/issues/7185: Delete thumbnails when a session is removed 2020-06-23 19:18:45 -04:00
Jonathan Almeida
9a50e9b6f7 [components] Close https://github.com/mozilla-mobile/android-components/issues/7313: Use storage/loader to get thumbnails
We were seeing odd bugs and performance issues from trying to map the
disk cache into the TabsTrayPresenter.

A better solution, would be to load the thumbnails straight from the
cache, and incremental updates via the store.
2020-06-12 12:30:10 -04:00
Christian Sadilek
f79337f01f [components] Issue https://github.com/mozilla-mobile/android-components/issues/7295: Don't block store thread when saving thumbnail 2020-06-09 09:37:19 -04:00
Gabriel Luong
bffa57d108 [components] Issue https://github.com/mozilla-mobile/android-components/issues/7021: Integrate the ThumbnailDiskCache with BrowserThumbnails 2020-05-28 16:56:20 -04:00
Gabriel Luong
368b1a3f4c [components] Issue https://github.com/mozilla-mobile/android-components/issues/2754: Adds ThumbnailDiskCache for persisting and restoring thumbnails. 2020-05-21 13:39:07 -04:00
Jonathan Almeida
58f7a73883 [components] Close https://github.com/mozilla-mobile/android-components/issues/6842: Migrate to browser-state in BrowserThumbnails 2020-05-12 18:46:24 -04:00
Christian Sadilek
387b26e835 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2985: Launch reader view in extension page 2020-05-05 13:15:51 -04:00
Gabriel Luong
f5b851bd14 [components] Issue https://github.com/mozilla-mobile/android-components/issues/6827: Move Thumbnails into its own browser component 2020-05-01 18:21:24 -04:00