Commit graph

260 commits

Author SHA1 Message Date
Sebastian Kaspari
9afa3a75f7 [components] Revert Gradle, Android Gradle Plugin and Kotlin upgrade. (PR https://github.com/mozilla-mobile/android-components/pull/8360)
Revert "Address even more lint errors."

This reverts commit e98ee991b34d318e671c644d63daec53902e68ff.

Revert "Update to Gradle 6.6.1."

This reverts commit cdda701c8f2be6c0486ddf1494885accf78aab00.

Revert "Address lint errors."

This reverts commit 26cb5b27bc2be672c89e7e0c63eeeda9f64c0d08.

Revert "Move JNA configuration to root project."

This reverts commit 694ef37cc30e727f3ec5d275c0e9583385980a43.

Revert "Issue https://github.com/mozilla-mobile/android-components/issues/8319: Update to Kotlin 1.4, Coroutines 1.3.9 and Android lint 27.0.1."

This reverts commit ad675c35e794050dbf8514a2d2fe7506ce0c546c.

Revert "Update Glean to 33.0.4."

This reverts commit 4731c4e2fa52d40f4062a47f02078ca0c85de632.

Revert "Update Glean to 33.0.0."

This reverts commit 352cf88a4d4bad64330d0ec997814fd8b13928c2.

Revert "Update Gradle to 6.1.1."

This reverts commit 18e88aa1a2528b10f7d81ff9dbf1df094071b6ce.

Revert "Update Android Gradle Plugin to 4.0.1."

This reverts commit f915a3b47b0f5584889ff62a80c9642bccfa36ce.
2020-10-06 14:57:11 +02:00
Sebastian Kaspari
1142ece2d6 [components] Issue https://github.com/mozilla-mobile/android-components/issues/8319: Update to Kotlin 1.4, Coroutines 1.3.9 and Android lint 27.0.1. 2020-10-02 18:44:27 +00:00
Arturo Mejia
c5df5ad6d2 [components] Improve download flow 2020-09-25 20:22:57 +00:00
Grisha Kruglov
11d4f67fe1 [components] Glean doc update 2020-09-25 18:58:08 +00:00
Sebastian Kaspari
655373df68 [components] (Merge day) Update GeckoView (Release) to 81.0 2020-09-22 13:15:58 +00:00
Sebastian Kaspari
a8b7b69812 [components] Closes https://github.com/mozilla-mobile/android-components/issues/7719: Remove all default headers from GeckoViewFetchClient. 2020-09-21 13:53:27 +02:00
Arturo Mejia
78e44f6016 [components] Closes https://github.com/mozilla-mobile/android-components/issues/8431: Notify all new observers about
change on enableTrackingProtection.
2020-09-17 18:12:33 -04:00
Sebastian Kaspari
9d854eb6b7 [components] Issue https://github.com/mozilla-mobile/android-components/issues/7719: Remove default headers for "User-Agent" and "Connection". 2020-09-17 11:01:02 +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
e89445fc90 [components] Issue https://github.com/mozilla-mobile/android-components/issues/7689: Move Profiler interface from concept-engine to concept-base. 2020-09-08 12:41:07 +02:00
MozLando
63223a0a1e [components] Merge https://github.com/mozilla-mobile/android-components/pull/8310
8310: Lazily restore engine sessions after content process kill or crash. r=csadilek a=pocmo

* 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 (Fenix shows UI to the user for that).

Once this lands we can also change the `AutoSave` behavior since we now get a new state pushed and know that we can save it. I filed https://github.com/mozilla-mobile/android-components/issues/8308 for that.

Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
2020-09-07 12:50:41 +00: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
Sebastian Kaspari
e70e0b9fa7 [components] Issue https://github.com/mozilla-mobile/android-components/issues/8255: GeckoEngine: Drop speculative EngineSession if it crashed or was killed.
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
2020-09-02 12:01:43 -04:00
Arturo Mejia
24c42c956a [components] Closes https://github.com/mozilla-mobile/android-components/issues/8240: Only dismiss prompts that are
not already dismissed
2020-08-28 13:45:31 -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
Sebastian Kaspari
58a892d211 [components] (Merge day) browser-engine-gecko-beta (80) -> browser-engine-gecko (80) 2020-08-25 10:38:20 +02:00
MozLando
535b2518f1 [components] Merge https://github.com/mozilla-mobile/android-components/pull/8174
8174: For https://github.com/mozilla-mobile/android-components/issues/8123: Fix history title crash r=jonalmeida a=NotWoods



Co-authored-by: Tiger Oakes <toakes@mozilla.com>
2020-08-21 18:15:04 +00:00
Tiger Oakes
6f8afe6be4 [components] For https://github.com/mozilla-mobile/android-components/issues/8123: Fix history title crash 2020-08-21 11:14:31 -07:00
ekager
a9539741a4 [components] For https://github.com/mozilla-mobile/android-components/issues/7134 - Adds login selection to prompt feature 2020-08-21 11:34:58 -04:00
Arturo Mejia
0f2106765f [components] Closes issue https://github.com/mozilla-mobile/android-components/issues/7983: Generate a file name when the content provider doesn't provide one. 2020-08-13 16:46:32 -04:00
Simon Chae
196578018d [components] Closes https://github.com/mozilla-mobile/android-components/issues/7869: Load a non-mobile url when desktop mode is toggled on 2020-08-06 12:40:20 -04:00
Sebastian Kaspari
3d60943a0c [components] Issue https://github.com/mozilla-mobile/android-components/issues/7922: Temporarily catch IllegalArgumentException in setAutomaticFontSizeAdjustment(). 2020-07-30 14:24:00 +02:00
Sebastian Kaspari
e4f4feac14 [components] (Merge day) browser-engine-gecko-beta (79) -> browser-engine-gecko (79) 2020-07-29 16:42:27 +02:00
Gabriel Luong
c69235770a [components] Commit the updated metrics.md files generated from the glean_parser 2020-07-28 12:30:20 -04:00
Roger Yang
a085381461 [components] Closes https://github.com/mozilla-mobile/android-components/issues/7797: Strip common subdomain before checking if the new URL is in the same domain 2020-07-27 18:45:02 -04:00
Arturo Mejia
c087e5ea1d [components] Closes https://github.com/mozilla-mobile/android-components/issues/7711 and https://github.com/mozilla-mobile/android-components/issues/7721: Improve file picker selection. 2020-07-16 16:08:04 -04:00
Roger Yang
a5dca58a10 [components] Closes https://github.com/mozilla-mobile/android-components/issues/7710: Stop intercepting redirect with subframe load request without user action 2020-07-15 15:27:14 -04: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
MozLando
928bc13f2f [components] Merge https://github.com/mozilla-mobile/android-components/pull/7668
7668: Closes https://github.com/mozilla-mobile/android-components/issues/7664: Add EngineSession.goToHistoryIndex to jump to a specifi… r=jonalmeida a=person808

…c index in a sessions history.




Co-authored-by: Kainalu Hagiwara <kainaluh808@gmail.com>
2020-07-10 01:48:40 +00: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
Sawyer Blatz
1190b34cbc [components] For https://github.com/mozilla-mobile/android-components/issues/7586: Add email & call actions to context menu 2020-07-09 15:20:30 -07:00
Sawyer Blatz
649ddbbe9e [components] For https://github.com/mozilla-mobile/android-components/issues/7563: Allow GeckoActions to be sorted 2020-07-09 13:53:13 -07:00
Christian Sadilek
5eff8564de [components] Closes https://github.com/mozilla-mobile/android-components/issues/6356: Install built-in extensions using GV extension controller 2020-07-07 10:03:25 -04:00
MozLando
0cf291f07a [components] Merge https://github.com/mozilla-mobile/android-components/pull/7604 https://github.com/mozilla-mobile/android-components/pull/7612 https://github.com/mozilla-mobile/android-components/pull/7613 (part 1)
7604: Closes https://github.com/mozilla-mobile/android-components/issues/7603: Direct navigation should open in external app if user preference is on r=csadilek a=rocketsroger



7612:  GeckoView update (beta) (20200703-140633) r=Amejia481 a=MickeyMoz



7613:  GeckoView update (nightly) (20200703-140635) r=Amejia481 a=MickeyMoz



Co-authored-by: Roger Yang <royang@mozilla.com>
Co-authored-by: MickeyMoz <sebastian@mozilla.com>
2020-07-03 17:42:29 +00:00
Sebastian Kaspari
d9fde1459e [components] Issue https://github.com/mozilla-mobile/android-components/issues/6283, https://github.com/mozilla-mobile/android-components/issues/7571: Migrate TrackingProtectionUseCases to use BrowserStore. 2020-07-03 17:51:29 +02:00
Roger Yang
1b7fe5567f [components] Closes https://github.com/mozilla-mobile/android-components/issues/7603: Direct navigation should open in external app if user preference is on 2020-07-02 13:36:41 -04:00
Nazım Can Altınova
1320080327 [components] Add firefox profiler marker API to the GeckoEngine 2020-07-01 15:01:24 +02:00
Sebastian Kaspari
03f742c8cd [components] Issue https://github.com/mozilla-mobile/android-components/issues/7553: (Merge day) browser-engine-gecko-beta (78) -> browser-engine-gecko (78) 2020-06-30 07:25:58 +02:00
Roger Yang
d71419cce4 [components] Closes https://github.com/mozilla-mobile/android-components/issues/7507: Redirect should open in external app if user preference is on 2020-06-26 20:50:58 -04:00
Christian Sadilek
ee7ef7deb9 [components] Closes https://github.com/mozilla-mobile/android-components/issues/6641: Treat origins as nullable in extension metadata 2020-06-24 14:09:22 -04:00
ekager
00db2ae064 [components] For https://github.com/mozilla-mobile/android-components/issues/7376 - Update canClearSelection to check if text is empty 2020-06-15 17:44:10 -04:00
Jonathan Almeida
3788bbd183 [components] Close https://github.com/mozilla-mobile/android-components/issues/7297: Add support for source URL to WebNotification 2020-06-12 05:37:06 -04:00
Christian Sadilek
b43c309333 [components] Closes https://github.com/mozilla-mobile/android-components/issues/6680: Handle exceptions thrown by capturePixels
Checking firstContenfulPaint is not reliable to determine whether
or not the compositor is ready. There's no other way for us right
now to handle this but to catch all and return a null bitmap.
2020-06-11 16:53:50 -04:00
Christian Sadilek
8627fa0896 [components] Closes https://github.com/mozilla-mobile/android-components/issues/7223: Clear speculative session on engine settings change 2020-06-09 11:25:32 -04:00
Christian Sadilek
24f442e134 [components] Closes https://github.com/mozilla-mobile/android-components/issues/7269: Only register extension tab handler if needed 2020-06-05 12:03:54 -04:00
ekager
0630c53f8a [components] Closes https://github.com/mozilla-mobile/android-components/issues/7168 - Expose new GeckoRuntimeSetting setLoginAutofillEnabled in Engine Settings 2020-06-03 12:01:17 -04:00
Sebastian Kaspari
fa692716a6 [components] Issue https://github.com/mozilla-mobile/android-components/issues/7123: (Merge day) browser-engine-gecko-beta (77) -> browser-engine-gecko (77) 2020-06-02 16:35:30 +02:00
Jonathan Almeida
4a7562291a [components] Issue https://github.com/mozilla-mobile/android-components/issues/7164: Do not complete WebPush responses exceptionally
With the previous patch, we fixed a bug where we need to check if a
subscription exists. This new (correct) behaviour broke our original
implementation of how to handle the null case in the engine.
2020-05-29 16:17:43 -04:00
ekager
53bfb5184d [components] For https://github.com/mozilla-mobile/android-components/issues/7132 - Update to new Autocomplete API 2020-05-27 14:58:44 -04:00