Commit Graph

136 Commits

Author SHA1 Message Date
Sawyer Blatz
6478c8b23f [components] For https://github.com/mozilla-mobile/android-components/issues/3451: Properly persists search terms 2019-06-24 10:40:44 -07:00
Sebastian Kaspari
c945e72437 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3341: Allow restoring Tab/TabCollection without reusing session ids. 2019-06-14 14:18:21 +02:00
Denys M
1f8fc3fa5b [components] For https://github.com/mozilla-mobile/android-components/issues/1481. Enable unit test binary resources globally.
Excluded few modules.
2019-06-13 09:29:52 +02:00
Denys M
75b4d928d1 [components] For https://github.com/mozilla-mobile/android-components/issues/1481. Use androidx runner in browser-session. 2019-06-11 12:38:30 +02:00
Sebastian Kaspari
16c2f6c175 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3256: Add Session.hasParentSession. 2019-06-10 13:47:10 -04:00
Tiger Oakes
1931410fdc [components] Use only 1 Size class for HTML sizes attribute
Reduce duplication by sharing logic for "sizes" in browser-icons
and "sizes" in WebAppManifest, which are supposed to be treated the same
in spec anyways.
2019-06-07 12:53:11 -07:00
James Hugman
8768f56b97 [components] Fix https://github.com/mozilla-mobile/android-components/issues/3293 Feed request URL to session observer from different engines
This allows the slack:// (and other custom schemes).
2019-06-07 18:15:13 +01:00
Sebastian Kaspari
ca8d151ce2 [components] Issue https://github.com/mozilla-mobile/android-components/issues/2124: Workaround: Clear list of recording devices when location changes. 2019-05-30 14:25:50 -04:00
James Hugman
6a99c552f1 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/2976 Introduce feature-app-links
This includes UI in private tabs.

Squashed commits:
[180e515e8] Connect to Session Observer and thence to AppLinksFeature.
[77922dcc0] browser-engine-system tests passing
[045717868] lint etc
[6f7b44cad] Thread another Boolean through EngineObserver -> Session onLoadRequest
[18693cad0] Start testing the feature.
[5e0a93556] Fixup tests to use shadow package manager, and catch some new bugs.
[3a5976dde] Split use cases up for menu and intercepting cases.
[f7eae96dd] Address reviewer comments re: dead code and docs
[b15ffb88c] Rename triggeredByUserInteraction to loadRequestTriggeredByUserInteraction
[edc49b573] Move session observer into member of feature
[91ed1f5ac] Add changelog entry
[098dc5067] Add boolean flag to prevent interception of links
[f92731a44] Add load request/trigger by user interaction to session.observer
[46385577d] Move opening to another use case, with test
[56da7e7c1] Change into using feature
[643c9f453] Remove duplicate copyright
[6b3f80bbc] Add testing of get and a fragment for open use cases
[669c84567] Add AppLinksRedirectConfig and supporting use cases.

There is a url redirect creation use case, a load URL use case and an interceptor.
[72896a567] AppLinksUseCases detects if a URL can be opened with another non-browser app
[939eb62fa] Initial commit of empty feature-app-links
2019-05-30 16:36:16 +01:00
Tiger Oakes
8b60dd788b [components] For https://github.com/mozilla-mobile/android-components/issues/1828 - Move WebAppManifest to concept-engine 2019-05-29 09:40:35 -07:00
Tiger Oakes
63413515fe [components] Closes https://github.com/mozilla-mobile/android-components/issues/1828 - Update WebAppManifest from engine 2019-05-29 09:40:35 -07:00
Christian Sadilek
04de05e949 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1798: Add clear data functionality to Gecko engine 2019-05-29 09:10:00 -04:00
Sebastian Kaspari
8c2736f62a [components] Issue https://github.com/mozilla-mobile/android-components/issues/2124: Expose recording devices in Session. 2019-05-27 17:57:54 -04:00
Sebastian Kaspari
b34e1ac249 [components] Issue https://github.com/mozilla-mobile/android-components/issues/2460: Add callbacks for register/unregister to AllSessionsObserver. 2019-05-27 12:56:00 -04:00
Sebastian Kaspari
6a3c4b27e8 [components] Move public version of AllSessionsObserver to browser-session. 2019-05-22 08:47:23 -04:00
Sebastian Kaspari
329cf189cf [components] Closes https://github.com/mozilla-mobile/android-components/issues/2898: Do not clear title and icon if URL hasn't changed. 2019-05-15 09:26:40 -04:00
Arturo Mejia
5281fb4675 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2978 runWithSessionIdOrSelected incorrectly runs for provided
AND selected session.
2019-05-10 13:46:49 -04:00
Arturo Mejia
d0b26d0b2d [components] Enable Site Permissions in custom tabs fixed minor issue https://github.com/mozilla-mobile/android-components/issues/2908 2019-05-09 14:22:38 -04:00
Arturo Mejia
0798606390 [components] Added runWithSessionIdOrSelected function to Session manager 2019-05-09 14:22:38 -04:00
Sebastian Kaspari
cb1c34c313 [components] Issue https://github.com/mozilla-mobile/android-components/issues/2883: Allow creating and restoring snapshots of single sessions. 2019-05-09 09:14:34 -04:00
Sebastian Kaspari
5c54ec453d [components] Closes https://github.com/mozilla-mobile/android-components/issues/842: Migrate from support libraries to AndroidX. 2019-05-02 16:08:55 +02:00
Christian Sadilek
e87100e647 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2624: ReaderView: Wire up messaging between feature and web ext. 2019-05-01 08:54:39 -04:00
Christian Sadilek
144cdd2b3d [components] Closes https://github.com/mozilla-mobile/android-components/issues/1385: Determine and expose reader-ability state 2019-04-26 15:15:23 -04:00
Sebastian Kaspari
feffcaa2b1 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2771: Only clear Session.searchTerms after request initiated by the user. 2019-04-22 11:28:43 -04:00
Sebastian Kaspari
a0ef550c63 [components] Issue https://github.com/mozilla-mobile/android-components/issues/1843: Turn SessionManager into a facade and move functionality to LegacySessionManager. 2019-04-15 17:56:00 +02:00
Sebastian Kaspari
e674ede1e2 [components] Closes https://github.com/mozilla-mobile/android-components/issues/494: Expose icon (Bitmap) in Session. 2019-04-05 13:50:24 -04:00
Sebastian Kaspari
a1aa6eb4b3 [components] Issue https://github.com/mozilla-mobile/android-components/issues/2571: Add option to recover from crashed sessions. 2019-04-01 20:12:25 +02:00
Sebastian Kaspari
bacd2b34fd [components] Issue https://github.com/mozilla-mobile/android-components/issues/2569: Expose "crashed" state in Session. 2019-04-01 14:16:05 +02:00
Sebastian Kaspari
4e791bff9a [components] Issue https://github.com/mozilla-mobile/android-components/issues/1845: Expose list of media in Session. 2019-03-21 15:08:00 +01:00
Sebastian Kaspari
fd72da8d56 [components] Issue https://github.com/mozilla-mobile/android-components/issues/2346: Fix Kotlin compiler warnings in browser-session. 2019-03-18 11:27:09 +01:00
Sebastian Kaspari
c1ae01d76b [components] Closes https://github.com/mozilla-mobile/android-components/issues/2332: Add WebAppManifestParser for creating WebAppManifest from JSON. 2019-03-13 19:42:33 +01:00
Sebastian Kaspari
e23b6bf9c8 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2216: feature-session-bundling: Save state outside of database. 2019-03-13 19:42:21 +01:00
Sebastian Kaspari
77b95d432a [components] Issue https://github.com/mozilla-mobile/android-components/issues/2216: Move code for saving and loading snapshots to AtomicFile extension methods. 2019-03-13 19:42:21 +01:00
Arturo Mejia
509556dee9 [components] Moving captureThumbnail from EngineSession to EngineView. 2019-03-13 10:33:47 -04:00
Sebastian Kaspari
ff62b676ef [components] Closes https://github.com/mozilla-mobile/android-components/issues/2290: Expose WebAppManifest in Session. 2019-03-12 12:41:10 +01:00
RomanWuattier
691b85df42 [components] Observe session based on the session ID
Create the function `observeIdOrSelected` to start observing changes based on
the given `sessionId`. If the session does not exist, then observe the
selected session.

Closes: https://github.com/mozilla-mobile/android-components/issues/1940
2019-02-25 18:34:00 -05:00
Sebastian Kaspari
312bfa8d76 [components] Issue https://github.com/mozilla-mobile/android-components/issues/2062: SessionManager: Allow calling restore() with empty snapshot. 2019-02-14 10:31:18 -05:00
Sebastian Kaspari
83a1bb7112 [components] SnapshotSerializer: Save and restore session title. 2019-02-13 23:50:59 +01:00
Christian Sadilek
f2836ab496 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1908: AutoSave doesn't work if no sessions left 2019-02-12 13:48:22 -05:00
Sebastian Kaspari
a55e705604 [components] AutoSave: Save state after removing all sessions.
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
2019-01-31 13:33:39 -05:00
Jonathan Almeida
ae236346ec [components] Closes https://github.com/mozilla-mobile/android-components/issues/1885: Add workaround for Custom Tabs Jetifier bug 2019-01-29 12:32:17 -05:00
Jonathan Almeida
371ef7d6a2 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1401: Add default share menu for CustomTabs 2019-01-22 11:05:11 -05:00
Jonathan Almeida
aa9c4b389b [components] Closes https://github.com/mozilla-mobile/android-components/issues/1724: Use pixel density to get accurate icon size 2019-01-21 10:27:38 -05:00
Jonathan Almeida
8b44f50eb0 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1400: Add close button to custom tabs
Also makes the toolbar unclickable so it can't be switching into
edit mode, and removes all other actions.

Moved the custom tab back button bitmap checking to the feature from the
CustomTabConfig since we needed to know the DisplayMetrics for the
current screen to properly compare it to the max dp value.
2019-01-21 10:27:38 -05:00
Christian Sadilek
43905d4c7e [components] Closes https://github.com/mozilla-mobile/android-components/issues/1518: Select session of same type when session is removed 2019-01-11 18:16:07 +01:00
Sebastian Kaspari
8ef7647504 [components] AutoSave: Do not block on background save.
Android doesn't kill the process immediately after all foreground activities are gone. So we still have
time to save the state from our background thread.

This also avoids ANRs and issues we saw related to blocking the UI thread, e.g.:
https://github.com/mozilla-mobile/reference-browser/issues/405
2019-01-11 14:14:33 +01:00
Mitchell Hentges
8fd19cdf3a [components] Moves description to be part of project.ext 2019-01-11 10:08:32 +01:00
Mitchell Hentges
3ee4d96a84 [components] Reads componentsVersion from .buildconfig.yml 2019-01-11 10:08:32 +01:00
Sebastian Kaspari
6a87f4d360 [components] Issue https://github.com/mozilla-mobile/android-components/issues/1541: feature-session-bundling: New component that saves sessions in grouped bundles. 2019-01-03 12:12:49 +01:00
Colin Lee
5f1b789127 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/1624: Session: Crash because trackersBlocked is empty 2018-12-28 18:03:50 -05:00