Sebastian Kaspari
08cdf3c6f0
[components] Closes https://github.com/mozilla-mobile/android-components/issues/8406 : Create separate usecases for removing all normal/private tabs.
2020-09-18 18:15:18 +02:00
Sebastian Kaspari
2bd27c677a
[components] Issue https://github.com/mozilla-mobile/android-components/issues/8417 : SessionStorage: Remove invalid selected tab id before saving state to disk.
2020-09-16 15:56:32 +02:00
Sebastian Kaspari
ab57ccf41c
[components] Closes https://github.com/mozilla-mobile/android-components/issues/7886 : SessionStorage: Write state as stream to disk instead of building model in memory first.
2020-09-11 13:16:32 +02:00
Sebastian Kaspari
e65a3926b6
[components] Issue https://github.com/mozilla-mobile/android-components/issues/7886 : SessionStorage: Catch "OutOfMemoryError" when writing to disk and log error.
2020-09-11 11:39:18 +02:00
ekager
d453dd86e6
[components] Closes https://github.com/mozilla-mobile/android-components/issues/8253 - Adds RecentlyClosedTabStorage
2020-09-09 09:04:48 -07:00
Sebastian Kaspari
c66d74ce23
[components] Issue https://github.com/mozilla-mobile/android-components/issues/8255 : Lazily restore engine sessions after content process kill or crash.
...
* Instead of keeping the EngineSessionState inside EngineSession, we now always attach it to EngineState and also do not
clear it anymore.
* If the content process gets killed we now just suspend affected EngineSession instances. They will automatically and
lazily get restored from the last EngineSessionState once needed.
* On a content process crash we now mark the EngineState as crashed and suspend the EngineSession. We will not restore
the EngineSession until explicitly restored by the application.
2020-09-07 13:30:04 +02:00
Jonathan Almeida
a4d8824526
[components] Close https://github.com/mozilla-mobile/android-components/issues/7476 : Persists lastAccess to SnapshotSerializer
2020-08-28 23:43:48 -04: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
Jamie Nicol
82f933c588
[components] For https://github.com/mozilla-mobile/android-components/issues/7413 - Listen for onPaintStatusReset and don't thumbnail until subsequent contentful paint
2020-08-21 15:46:27 +01:00
Kate Glazko
02bd5bb0fe
[components] For https://github.com/mozilla-mobile/android-components/issues/7673 : Move DownloadProgress and Status to DownloadState
2020-07-28 16:50:02 -04:00
Christian Sadilek
c43ad0e9a5
[components] Closes https://github.com/mozilla-mobile/android-components/issues/7741 : Move Session.Source to browser state
2020-07-16 16:01:33 -04:00
Sebastian Kaspari
f77ce1f5f1
[components] Issue https://github.com/mozilla-mobile/android-components/issues/7737 : Remove fullScreenMode and layoutInDisplayCutoutMode from Session.
2020-07-16 16:15:35 +02:00
Sebastian Kaspari
c4c35fdaea
[components] Issue https://github.com/mozilla-mobile/android-components/issues/7737 : Remove hitResult from Session.
2020-07-16 16:15:33 +02:00
Sebastian Kaspari
4587591eff
[components] Issue https://github.com/mozilla-mobile/android-components/issues/7737 : Remove findResults from Session.
2020-07-16 15:36:29 +02:00
Jeff Boek
b1ddac9b1d
[components] For https://github.com/mozilla-mobile/fenix/issues/2681 - Adds bypassCache parameter to reload.
2020-07-14 10:53:24 -07:00
Kainalu Hagiwara
ad50481c81
[components] Closes https://github.com/mozilla-mobile/android-components/issues/7664 : Add EngineSession.goToHistoryIndex to jump to a specific index in a sessions history.
2020-07-09 18:24:20 -07:00
MozLando
56fda11603
[components] Merge https://github.com/mozilla-mobile/android-components/pull/7607
...
7607: Closes https://github.com/mozilla-mobile/android-components/issues/7606 Consume contentPermissionRequest only when loading new site r=csadilek a=Amejia481
Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>
2020-07-06 13:34:31 +00:00
Arturo Mejia
92125d5f1f
[components] Closes https://github.com/mozilla-mobile/android-components/issues/7606 Consume contentPermissionRequest only when loading new site
2020-07-03 16:55:10 -04:00
Sebastian Kaspari
cb1edbe63b
[components] Issue https://github.com/mozilla-mobile/android-components/issues/7571 : SessionManager: Deprecate getEngineSession().
2020-07-03 17:51:31 +02:00
Sebastian Kaspari
8ebf70a0f4
[components] Issue https://github.com/mozilla-mobile/android-components/issues/7571 : EngineSessionUseCases: Remove GetUseCase.
2020-07-03 17:51:31 +02:00
Sebastian Kaspari
e210e98268
[components] Issue https://github.com/mozilla-mobile/android-components/issues/7571 : Refactor unit tests to read EngineSession from BrowserStore.
2020-07-03 17:51:31 +02:00
Sebastian Kaspari
0e8519d9e6
[components] Issue https://github.com/mozilla-mobile/android-components/issues/7480 : Migrate SessionFeature to use BrowserStore.
2020-07-02 17:36:36 +02:00
Arturo Mejia
3d6538d133
[components] Closes issue https://github.com/mozilla-mobile/android-components/issues/7398 : Avoid passing negative values to the download
...
contentLength
2020-06-15 16:57:16 -04:00
Tiger Oakes
d11f6f2e9f
[components] Add sameOriginAs Uri helper
2020-06-11 09:16:32 -07:00
MozLando
60bfa6d522
[components] Merge https://github.com/mozilla-mobile/android-components/pull/7100
...
7100: Issue https://github.com/mozilla-mobile/android-components/issues/7011 : Correctly evaluate memory trimming levels. r=psymoon a=pocmo
Previously we assumed the value passed to onTrimMemory() represents a single linear progression of memory limits. But this
is not the case. We need to look at the values individually.
See:
https://developer.android.com/reference/android/content/ComponentCallbacks2
Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
2020-05-27 08:58:06 +00:00
Roger Yang
3672e26e74
[components] Closes https://github.com/mozilla-mobile/android-components/issues/7047 : Add handling for onSubframeLoadRequest for GeckoEngineSession
2020-05-25 15:43:17 -04:00
Sebastian Kaspari
f35046eb85
[components] Issue https://github.com/mozilla-mobile/android-components/issues/7011 : Correctly evaluate memory trimming levels.
...
Previously we assumed the value passed to onTrimMemory() represents a single linear progression of memory limits. But this
is not the case. We need to look at the values individually.
See:
https://developer.android.com/reference/android/content/ComponentCallbacks2
2020-05-25 18:47:21 +02:00
Tiger Oakes
ecbbc64d60
[components] Closes https://github.com/mozilla-mobile/android-components/issues/7023 - Add HistoryState to content state
2020-05-22 09:56:22 -07:00
Tiger Oakes
c6c313f409
[components] Update lifecycle version
2020-05-20 13:46:06 -07:00
ekager
efaa39ca49
[components] Adds MediaFullscreenOrientationFeature
2020-05-19 16:13:48 +02:00
ekager
13a8e25103
[components] For https://github.com/mozilla-mobile/android-components/issues/6757 - Adds firstContentfulPaint callback and var to session
2020-05-13 20:44:34 -07:00
Tiger Oakes
d44f30c932
[components] For https://github.com/mozilla-mobile/android-components/issues/5028 - Add webAppManifest to ContentState
2020-05-13 15:03:27 -07:00
MozLando
c6936c0926
[components] Merge https://github.com/mozilla-mobile/android-components/pull/6885
...
6885: Issue https://github.com/mozilla-mobile/android-components/issues/6884 : SessionManager.onTrimMemory(): Do not remove engine session state from sessions. r=csadilek a=pocmo
When trimming memory we want to save the state of an engine session, attach it to the holder and close the engine session. Right now we try to do this for all sessions and then "unlink" them. This causes the engine session state to be cleared from sessions that either did not have an engine session (e.g. restored sessions) or that have been trimmed before. We should only perform this action for sessions that actually have an engine session. All other sessions can be left as-is.
Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
2020-05-06 14:44:47 +00:00
Sebastian Kaspari
9b1149c2bf
[components] Issue https://github.com/mozilla-mobile/android-components/issues/6884 : SessionManager.onTrimMemory(): Do not remove engine session state from sessions.
2020-05-06 12:11:57 +02: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
MozLando
74d2b171f3
[components] Merge https://github.com/mozilla-mobile/android-components/pull/6769
...
6769: Closes https://github.com/mozilla-mobile/android-components/issues/6538 : Add navigation state to browser state r=pocmo a=csadilek
Need this for my reader mode refactor :).
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
2020-04-28 13:13:57 +00:00
MozLando
35abfe1203
[components] Merge https://github.com/mozilla-mobile/android-components/pull/6787
...
6787: Closes https://github.com/mozilla-mobile/android-components/issues/6783 : Engine session state is not restored r=pocmo a=csadilek
Regression is fairly recent and my mistake.
Introduced by this change:
d4fca7f058 (diff-d386a820f3dab49f970fb183c2a57201)
We now use the wrong key to look up the engine session JSON object. We use `Keys.SESSION_KEY` instead of `Keys.ENGINE_SESSION_KEY`. 🤦
I've also add a unit test here so this doesn't happen again.
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
2020-04-28 08:29:06 +00:00
Jonathan Almeida
b86fa6dfb5
[components] Close https://github.com/mozilla-mobile/android-components/issues/6601 : Update targetSdkVersion to 29
2020-04-28 03:16:54 -04:00
Christian Sadilek
d601e612ae
[components] Closes https://github.com/mozilla-mobile/android-components/issues/6783 : Engine session state is not restored
2020-04-27 19:57:51 -04:00
Christian Sadilek
3df4ba49df
[components] Closes https://github.com/mozilla-mobile/android-components/issues/6538 : Add navigation state to browser state
2020-04-27 18:58:27 -04:00
ekager
6e42e586a7
[components] Closes https://github.com/mozilla-mobile/android-components/issues/6651 - Do not restore Session source, adds Session.Source.RESTORED
2020-04-27 10:09:04 -07:00
Christian Sadilek
29d3da1b68
[components] Closes https://github.com/mozilla-mobile/android-components/issues/6584 : TabUseCases may call loadUrl twice
2020-04-09 13:22:55 -04:00
Roger Yang
4d09fc463c
[components] Close https://github.com/mozilla-mobile/android-components/issues/5795 : Support viewport-fit descriptor via onMetaViewportFitChange
2020-04-08 18:19:11 -04:00
Sebastian Kaspari
9312a769b8
[components] Issue https://github.com/mozilla-mobile/android-components/issues/6580 : Do not launch media service for muted media.
...
Co-authored-by: Caleb Everett <everett.caleb@gmail.com>
2020-04-08 16:28:35 +02:00
MozLando
ec3d2bb58f
[components] Merge https://github.com/mozilla-mobile/android-components/pull/6568
...
6568: Close https://github.com/mozilla-mobile/android-components/issues/6567 : Return result of block in runWithSessionIdOrSelected r=ekager a=jonalmeida
This is consistent with our behaviour in `runWithSession` and is more in
line with what a consumer would expect.
Co-authored-by: Jonathan Almeida <jalmeida@mozilla.com>
2020-04-07 23:52:01 +00:00
Jonathan Almeida
ab6f10be22
[components] Close https://github.com/mozilla-mobile/android-components/issues/6567 : Return result of block in runWithSessionIdOrSelected
...
This is consistent with our behaviour in `runWithSession` and is more in
line with what a consumer would expect.
2020-04-07 17:00:51 -04:00
Christian Sadilek
69624c4f41
[components] Closes https://github.com/mozilla-mobile/android-components/issues/4397 : Migrate feature-readerview to browser-state
2020-04-06 14:51:20 -04:00
Gabriel Luong
2498983b5d
[components] Closes https://github.com/mozilla-mobile/android-components/issues/6352 : Add contextId to BrowserState
2020-03-28 00:09:42 -04:00
MozLando
9718d78236
[components] Merge https://github.com/mozilla-mobile/android-components/pull/6362
...
6362: Issue https://github.com/mozilla-mobile/android-components/issues/4287 : Refactor feature-media to use browser-state instead of browser-session. r=csadilek a=pocmo
This is finally ready. :)
With this I completely removed anything related to media from `browser-session` and moved it to `browser-state`. This required a bigger refactoring of `feature-media`. The state machine is gone and that functionality is now provided by a middleware that can be installed on `BrowserStore`.
Note that this also introduces a `Dispatchers` object in `support-base` for creating AC and app specific dispatchers.
Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
2020-03-27 09:50:20 +00:00