Commit Graph

60 Commits

Author SHA1 Message Date
Arturo Mejia
0cc70eea7d [components] Closes https://github.com/mozilla-mobile/android-components/issues/1205: Adding support for using SystemEngineView and
GeckoEngineView in a CoordinatorLayout
2018-11-05 14:06:51 +01:00
Grisha Kruglov
3898dbaba9 [components] Allow setting of historyTrackingDelegate on an Engine instance 2018-10-26 15:42:19 -07:00
Christian Sadilek
944f9bc375 [components] Issue https://github.com/mozilla-mobile/android-components/issues/1083: Improved test fix to be independent of post order 2018-10-25 16:30:13 -04:00
Sebastian Kaspari
53b3d1a71f [components] Update repository information in README files. 2018-10-25 15:37:46 +02:00
Christian Sadilek
ba150c3ddf [components] Closes https://github.com/mozilla-mobile/android-components/issues/1083: Flaky test on engine-gecko-[beta|nightly] 2018-10-25 14:21:43 +02:00
Christian Sadilek
1b4d44c35e [components] Closes https://github.com/mozilla-mobile/android-components/issues/1106: Enhance RequestInterceptor to load alternative URL 2018-10-25 10:11:23 +02:00
Sebastian Kaspari
9e17b84339 [components] Simplify build configuration. 2018-10-24 10:21:12 +02:00
Sebastian Kaspari
0422a86f46 [components] Issue https://github.com/mozilla-mobile/android-components/issues/1135: (Merge day) browser-engine-gecko-beta (63) -> browser-engine-gecko-release (63). 2018-10-24 09:56:10 +02:00
Christian Sadilek
4df2e8240d [components] Add missing annotations to gecko-engine-* tests 2018-10-23 19:11:42 +02:00
Johan Lorenzo
0ca864a1bf [components] Stop Bintray. Update {group,artifact}Ids. Remove massage task 2018-10-22 14:35:51 +02:00
Grisha Kruglov
3302d3917a [components] Engine history delegate API
The goal is to provide our engines with ability to query for browser history
and to record visits and page metadata updates (e.g. title changes).

GeckoView's APIs are still being implemented in https://bugzilla.mozilla.org/show_bug.cgi?id=1494713,
so this works from the implementation notes. WebView's APIs are well known.

History delegate is optional. Absence of it in settings when configuring an engine as akin to
disabling history tracking.

This patch explicitly doesn't provide an implementation of a delegate.
2018-10-17 13:50:13 -07:00
Marco
6e4f04af78 [components] Closes https://github.com/mozilla-mobile/android-components/issues/47: Remove test prefix from method names 2018-10-10 15:59:39 -04:00
Jonathan Almeida
b3dc0d1980 [components] Closes https://github.com/mozilla-mobile/android-components/issues/881: Error Page support for both engines
I decided to move the mappings to the respective EngineSession instead
of having them in the Engine, since it wasn't possible to have them
easily accessible from there via the RequestInterceptor. It made more
sense to keep them hidden inside the session as a companion function for
easier testing.

On the same note, tests have also been included.

Added an interceptor the SystemEngine sample app.

Cleaned up the styling of the actual error page HTML to make them more
mobile friendly.
2018-10-05 16:27:28 +02:00
Manuel Martin
7826c54bdc [components] Added support for GeckoView error pages 2018-10-05 16:27:28 +02:00
Fernando Garcia Alvarez
05c3a1d040 [components] Issue https://github.com/mozilla-mobile/android-components/issues/730: browser-engine-gecko-*: Add default runtime as default parameter to Engine
Closes https://github.com/mozilla-mobile/android-components/issues/730: browser-engine-gecko-*: Add default runtime as default parameter to Engine
2018-10-03 11:10:03 -04:00
Wajahat Karim
ed0729232c [components] Closes https://github.com/mozilla-mobile/android-components/issues/922: Update READMEs to point to maven.mozilla.org and use new artifact names. 2018-10-03 09:20:43 +02:00
Christian Sadilek
f165a254cd [components] Closes https://github.com/mozilla-mobile/android-components/issues/854: Add setting to enable remote debugging 2018-10-02 12:37:49 +02:00
Arturo Mejia
5bc1ca7173 [components] Closes https://github.com/mozilla-mobile/android-components/issues/495: Provide thumbnail of websites
* Adding captureThumbnail to EngineSession

* Updating TabViewHolder to add thumbnail

* Adding thumbnail to Session

* Adding a new product flavor for systemEngine
2018-09-20 12:51:00 -04:00
Christian Sadilek
5ed6c62799 [components] Closes https://github.com/mozilla-mobile/android-components/issues/688: Extend engine settings for WebView 2018-09-20 12:01:41 -04:00
Jonathan Almeida
da6f4a83e2 [components] Closes https://github.com/mozilla-mobile/android-components/issues/644: Clear Data (WebView only)
This only includes the implementation for the SystemWebView that's based
off of what we currently do in Focus/Fire TV. Since this is needed for
those apps now, we can work with this implementation until GeckoView
provides us with a nicer API to do the equivalent for it. (Bug 1489669)

We also don't notify any observers since there isn't any
confirmation/information available that we can propagate to cients.
2018-09-11 16:30:30 -04:00
Jonathan Almeida
69563c770e [components] Closes https://github.com/mozilla-mobile/android-components/issues/643: FullScreen mode support 2018-09-11 14:37:57 -04:00
Sebastian Kaspari
38a9e260d4 [components] Issue https://github.com/mozilla-mobile/android-components/issues/679: Add first iteration of documentation for engine components. 2018-09-07 18:23:32 +02:00
Sebastian Kaspari
d626f3f8e7 [components] Issue https://github.com/mozilla-mobile/android-components/issues/671: (Gecko Merge day) release -> 62, beta -> 63, nightly -> 64.
* browser-engine-gecko-beta (62) -> browser-engine-gecko-release (62)
 * browser-engine-gecko-nightly (63) -> browser-engine-gecko-beta (63)
 * browser-engine-gecko-nightly -> 64
2018-09-07 13:09:43 +02:00
Arturo Mejia
8ced4b7828 [components] Closes https://github.com/mozilla-mobile/android-components/issues/701: Exposing browser-session Desktop mode
* Adding desktopMode property to Session

* Adding onDesktopModeChanged in Session

* Renaming RequestDesktopSite to RequestDesktopSiteUseCase to follow
  the convention

* Implementing onDesktopModeChange in EngineObserver

Renaming:

On EngineSession.Observer
    from onDesktopModeEnabled to onDesktopModeChange
    from setDesktopMode to toggleDesktopMode

On Session
    from onDesktopModeEnabledChanged to onDesktopModeChanged
2018-09-06 18:17:44 -04:00
Christian Sadilek
191531ef71 [components] Closes https://github.com/mozilla-mobile/android-components/issues/703: Remove setActive calls in engine-gecko-* 2018-09-06 10:07:05 -04:00
Christian Sadilek
f992f8aef9 [components] Closes https://github.com/mozilla-mobile/android-components/issues/689: Add setting for blocking web fonts 2018-09-05 16:25:01 +02:00
Christian Sadilek
2d6335c65a [components] Closes https://github.com/mozilla-mobile/android-components/issues/657: Forward lifecycle events to EngineView 2018-09-03 14:51:26 -04:00
Christian Sadilek
25d2dfc396 [components] Closes https://github.com/mozilla-mobile/android-components/issues/656: Add find in page functionality to engine/session 2018-08-30 14:06:39 -04:00
Jonathan Almeida
be422f354a [components] Issue https://github.com/mozilla-mobile/android-components/issues/647: Desktop mode support
Closes https://github.com/mozilla-mobile/android-components/issues/647
2018-08-29 11:36:07 -04:00
Christian Sadilek
1988de71e0 [components] Closes https://github.com/mozilla-mobile/android-components/issues/662: Provide API to set engine/session defaults 2018-08-28 18:13:34 -04:00
Jonathan Almeida
2ff709d589 [components] Issue https://github.com/mozilla-mobile/android-components/issues/476: Add long press support as observable
Fixes https://github.com/mozilla-mobile/android-components/issues/476
2018-08-27 13:44:11 -04:00
Christian Sadilek
85e4d8ab77 [components] Issue https://github.com/mozilla-mobile/android-components/issues/521: Add support for modifying engine session settings 2018-08-24 10:53:14 -04:00
Christian Sadilek
536775b259 [components] Issue https://github.com/mozilla-mobile/android-components/issues/499: Support private browsing mode 2018-08-23 18:36:28 +02:00
Sebastian Kaspari
946410ca86 [components] Configure dependencies from buildSrc Kotlin code. 2018-08-21 11:16:21 -04:00
Jonathan Almeida
7086b9c595 [components] Issue https://github.com/mozilla-mobile/android-components/issues/605: Include base64 support + review comments 2018-08-17 17:59:00 -04:00
Jonathan Almeida
3210ec6f11 [components] Closes https://github.com/mozilla-mobile/android-components/issues/605: Add loadData to Engine 2018-08-17 17:59:00 -04:00
Jonathan Almeida
0ab0fbe341 [components] Issue https://github.com/mozilla-mobile/android-components/issues/604: Add Engine ability to stop loading
Adds the ability to stop loading a session that would have already
started.

Some considerations were made about whether
`EngineSession.Observer#onLoaingStateChanged` should be called. In our
current `SystemEngine` and `GeckoEngine` there isn't any explicit
callback for handling a stop loading event so there wouldn't be any way
to do this.
2018-08-14 22:24:35 -04:00
Christian Sadilek
c48c96f55e [components] Closes https://github.com/mozilla-mobile/android-components/issues/352: Expose tracking protection in session/engine 2018-07-25 13:38:25 -04:00
Christian Sadilek
a402d77434 [components] Closes https://github.com/mozilla-mobile/android-components/issues/403: Ignore first load of about:blank in engine-gecko 2018-07-18 18:04:40 +02:00
Angelo Rüggeberg
4e497962b0 [components] Closes https://github.com/mozilla-mobile/android-components/issues/291 - Unified lint warnings as error and fail on error 2018-07-03 14:29:55 -04:00
Sebastian Kaspari
144930cfa9 [components] Issue https://github.com/mozilla-mobile/android-components/issues/323: Merge Day: engine-gecko-beta -> engine-gecko (61.0). 2018-06-29 10:57:11 +02:00
Christian Sadilek
d724c95ec0 [components] Closes https://github.com/mozilla-mobile/android-components/issues/334: Storage should not restore state from different engine 2018-06-26 13:51:54 -04:00
Sebastian Kaspari
9bce9b5d4b [components] Issue https://github.com/mozilla-mobile/android-components/issues/197: Samples-Browser: Create product flavor for different processor architectures and release channels. 2018-06-21 15:40:53 -04:00
Sebastian Kaspari
a6f00ab3b9 [components] Issue https://github.com/mozilla-mobile/android-components/issues/246: Create separate engine-gecko variants based on release channel. 2018-06-20 17:27:55 +02:00
Christian Sadilek
c98f32cbdc [components] Issue https://github.com/mozilla-mobile/android-components/issues/248: Save/Restore engine session state 2018-06-06 12:25:03 -04:00
Christian Sadilek
d9bad1a75a [components] Closes https://github.com/mozilla-mobile/android-components/issues/216: Add SSL info to session 2018-05-30 12:20:33 -04:00
Sebastian Kaspari
b58dd3798a [components] Issue https://github.com/mozilla-mobile/android-components/issues/232: Add READMEs for every component and link them from the root README. 2018-05-28 17:33:12 +02:00
Christian Sadilek
79aa746f7b [components] Closes https://github.com/mozilla-mobile/android-components/issues/176: Add use case for reloading 2018-05-17 14:39:49 -04:00
Christian Sadilek
645ee2f965 [components] Closes https://github.com/mozilla-mobile/android-components/issues/156: Gecko crashes when activity/app is paused and resumed 2018-05-04 10:35:27 -04:00
Sebastian Kaspari
89d3db535c [components] Use GeckoView by default in sample browser app. 2018-05-03 11:30:52 -04:00