Commit Graph

312 Commits

Author SHA1 Message Date
Mugurell
372b60754f [components] Fix https://github.com/mozilla-mobile/android-components/issues/9614 - Deprecate EngineView#InputResult
This will be replaced by the new InputResultDetail.
2021-03-30 13:44:44 +00:00
Michael Droettboom
8c604e1155 [components] Bug 1689162: Upgrade to new version of Glean metrics.yaml schema (https://github.com/mozilla-mobile/android-components/pull/9990)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-03-29 14:27:14 +00:00
Travis Long
d5e49d5b0a [components] [SDK-217] Allow consumer to set appName and channel for experiment filtering
Update samples-glean to pass in appName and channel, and use feature-id


Suppress lint warning


Update to A-S v74.0.1


Make `app_name` and `channel` part of a data struct


Update samples-glean


Fix test


lint
2021-03-19 19:02:56 +00:00
Christian Sadilek
c9d791c53b [components] Adjust detekt TooManyFunctions threshold 2021-03-18 15:25:40 +00:00
Jonathan Almeida
d3450e71bf [components] Issue https://github.com/mozilla-mobile/android-components/issues/9899: (Merge day) browser-engine-gecko-beta (87) -> browser-engine-gecko-release (87) 2021-03-16 16:42:05 +00:00
Roger Yang
0182d4d8b4 [components] Closes https://github.com/mozilla-mobile/android-components/issues/9859: Detect media notification icon size is incorrect 2021-03-10 17:26:09 +00:00
Roger Yang
a099c9e20e [components] Remove deprecated references to old MediaSession API 2021-03-03 17:27:16 +00:00
Arturo Mejia
d335091a6c [components] Closes https://github.com/mozilla-mobile/android-components/issues/9787 separate content blocking setting from TrackingProtectionState.enabled 2021-03-02 16:22:42 +00:00
Michael Droettboom
f0a9e90e0d [components] Upgrade to Glean 35.0.0 2021-02-26 15:50:59 +00:00
Sebastian Kaspari
1596845e0a [components] Issue https://github.com/mozilla-mobile/android-components/issues/9746: (Merge day) browser-engine-gecko-beta (86) -> browser-engine-gecko (86) 2021-02-23 16:45:17 +00:00
Sebastian Kaspari
282f5e3aef [components] Remove old media APIs. 2021-02-10 13:02:22 +00:00
codrut.topliceanu
354fdf44cb [components] For https://github.com/mozilla-mobile/android-components/issues/9606 - Adds defaultSettings when creating a new GeckoEngineSession
This fixes the issue where some new WebExtension tabs would have no ETP setting in Fenix.

For https://github.com/mozilla-mobile/android-components/issues/9606 - Removes fallback policy, adds settings to onOpenOptionsPage

For https://github.com/mozilla-mobile/android-components/issues/9606 - Adds defaultSettings to onToggleActionPopup on init GeckoEngineSession

For https://github.com/mozilla-mobile/android-components/issues/9606 - Removes new instance of trackingPolicy and uses passed parameter

For https://github.com/mozilla-mobile/android-components/issues/9606 - Adds documentation to new defaultSettings parameter

For https://github.com/mozilla-mobile/android-components/issues/9606 - Fixes formatting
2021-02-09 19:32:12 +00:00
mcarare
fbbe75889f [components] For https://github.com/mozilla-mobile/android-components/issues/8519: Fix nullability changes in SDK 30 in unit tests. 2021-02-09 18:03:01 +00:00
mcarare
7586242be2 [components] For https://github.com/mozilla-mobile/android-components/issues/8519: Suppress SDK 30 deprecations in tests and link to opened issues. 2021-02-09 18:03:01 +00:00
Michael Comella
b0ef030768 [components] For https://github.com/mozilla-mobile/fenix/issues/17816: add IMPLEMENTATION_DETAIL Fact for GeckoSession.load.
I tested the Nightly and Beta versions of this code. I was unable to test
Release because there were build errors due to using a local ac with
fenix.
2021-02-04 21:16:45 +00:00
Arturo Mejia
9181677d7c [components] Closes https://github.com/mozilla-mobile/android-components/issues/9553: Sanitize downloads content type 2021-02-01 16:53:07 +00:00
Jonathan Almeida
abdbbf2e8e [components] Re-land: "Closes https://github.com/mozilla-mobile/android-components/issues/8693: Integrate GeckoWebExecutor#FETCH_FLAG_PRIVATE."
This re-lands commit bc1719598b0980b12bf7717d35ee31d15eb05365.
2021-01-29 19:51:36 +00:00
Roger Yang
8545bb01b7 [components] Closes https://github.com/mozilla-mobile/android-components/issues/9531: Return content icon if get artwork fails 2021-01-28 16:06:09 +00:00
Sebastian Kaspari
8707f6eaf1 [components] Issue https://github.com/mozilla-mobile/android-components/issues/9502: (Merge day) browser-engine-gecko-beta (85) -> browser-engine-gecko (85) 2021-01-26 15:55:12 +00:00
Roger Yang
436b127cdb [components] Closes https://github.com/mozilla-mobile/android-components/issues/9170: Use MediaSession Metadata in Media Notification 2021-01-26 09:23:01 +00:00
Jonathan Almeida
a2c22bd0ec [components] Revert "Closes https://github.com/mozilla-mobile/android-components/issues/8693: Integrate GeckoWebExecutor#FETCH_FLAG_PRIVATE."
This reverts commit 7f97412251cbec11a371fce1652ad7a760184d93.
2021-01-22 20:13:55 +00:00
mcarare
d1cc03c074 [components] For https://github.com/mozilla-mobile/android-components/issues/9445: On restoring state also check if actual state is empty. 2021-01-20 15:36:30 +00:00
Arturo Mejia
c1a6273aa5 [components] Closes https://github.com/mozilla-mobile/android-components/issues/8693: Integrate GeckoWebExecutor#FETCH_FLAG_PRIVATE. 2021-01-19 18:26:00 +00:00
Sebastian Kaspari
8753b66468 [components] Closes https://github.com/mozilla-mobile/android-components/issues/8370: Remove EngineSessionState.toJSON(). 2021-01-08 15:02:53 +00:00
Christian Sadilek
bca1a212ee [components] Closes https://github.com/mozilla-mobile/android-components/issues/9325: engine-gecko: Introduce blocked schemes 2021-01-07 09:54:35 +00:00
Sebastian Kaspari
9817288680 [components] Issue https://github.com/mozilla-mobile/android-components/issues/9332: GeckoEngineSessionState: Handle JSONException coming out of GeckoView. 2021-01-06 14:27:22 +00:00
Sebastian Kaspari
8c9479eb8c [components] GeckoEngineSessionState: Handle empty engine session state. 2021-01-05 12:16:46 +00:00
Sebastian Kaspari
dca326ea45 [components] Reland "Issue https://github.com/mozilla-mobile/android-components/issues/8873: Migrate feature-tab-collections to use browser-state."
This reverts commit 31659483d081ddd98b767d438db1d834587eded2.
2020-12-16 09:30:32 +00:00
Christian Sadilek
6a5dcadba5 [components] Revert "Issue https://github.com/mozilla-mobile/android-components/issues/8873: Migrate feature-tab-collections to use browser-state."
This reverts commit 30d3ebb4130d05846a2b3e7fd488eef128be262c.
2020-12-15 17:20:12 +00:00
Christian Sadilek
a228860aa9 [components] Revert "GeckoEngineSessionState: Return empty state for invalid JSON."
This reverts commit e21bd60796a26e00708885ded8463988a2f367a7.
2020-12-15 17:20:12 +00:00
Sebastian Kaspari
3eda263503 [components] GeckoEngineSessionState: Return empty state for invalid JSON. 2020-12-15 15:37:00 +00:00
Sebastian Kaspari
800fb0d46f [components] Issue https://github.com/mozilla-mobile/android-components/issues/8873: Migrate feature-tab-collections to use browser-state. 2020-12-15 15:37:00 +00:00
Sebastian Kaspari
2191eda94e [components] Closes https://github.com/mozilla-mobile/android-components/issues/4571: Introduce API to purge (back/forward) history of tabs.
* For `PurgeHistoryUseCase` I decided to not introduce a "tab ID" parameter and instead have
  it purge the history of all tabs. It seems like this is what we need and individual tab
  history removal is not needed for now.
* Some tabs may not have an `EngineSession` assigned. Creating one just to call purgeHistory()
  seems excessive. Instead I am dropping an attached `EngineSessionState` which will cause
  those tabs to just reload the URL with not back/forward history when they get restored.
2020-12-08 19:43:08 +00:00
Jonathan Almeida
6584c4b5fa [components] Issue https://github.com/mozilla-mobile/android-components/issues/9171: (Merge day) browser-engine-gecko-beta (84) -> browser-engine-gecko (84) 2020-12-08 19:17:02 +00:00
Emilio Cobos Álvarez
8d0be73cb3 [components] Handle GeckoView EME permission requests.
This allows Fenix to play EME content without having to toggle manually
`media.eme.require-app-approval=false` in `about:config`.

Closes https://github.com/mozilla-mobile/android-components/issues/7121
2020-12-07 15:10:40 +00:00
Mugurell
3feb7af7a8 [components] For https://github.com/mozilla-mobile/android-components/issues/9091 - Remove the data url error page
This was already deprecated. No need to keep supporting it.
2020-12-04 12:21:51 +00:00
Emilio Cobos Álvarez
41d375b7d9 [components] ktlint: Add missing newlines.
Running ./gradlew ktlint locally reports a lot of stuff like:

/home/emilio/src/moz/android-components/components/support/migration/src/test/java/mozilla/components/support/migration/MigrationIntentProcessorTest.kt:1:1: File must end with a newline (\n)

This fixes it with:

    for f in $(cat files | cut -d : -f 1); do echo "" >> $f; done

Making ./gradlew ktlint pass.
2020-12-03 17:24:44 +00:00
Arturo Mejia
0013bea26e [components] Closes https://github.com/mozilla-mobile/android-components/issues/9073 remove unwanted dots in the file name 2020-12-02 00:54:58 +00:00
Mugurell
577225d8ef [components] For https://github.com/mozilla-mobile/android-components/issues/9042 - Dismiss pull to refresh if beforeunload prompt is cancelled 2020-11-23 22:05:25 +00:00
Mugurell
1b60b0029f [components] For https://github.com/mozilla-mobile/android-components/issues/9043 - Stop leaking the old MotionEvent handled state
How a previous touch was handled was reset when NestedGeckoView would be called
to act for the next touch.
This means the container of NestedGeckoView would get the old status if
querying for it in onInterceptTouchEvent, before NestedGeckoView having the
chance to act upon the new touch.
Resetting the status when the touch is finished ensures any following checks
before NestedGeckoView had the chance to update the status would return the
default UNHANDLED value.
2020-11-23 21:45:49 +00:00
Arturo Mejia
0e53f9e593 [components] Closes https://github.com/mozilla-mobile/android-components/issues/8464 ensure prompts are not completed before confirming 2020-11-18 10:11:19 +00:00
Christian Sadilek
9707e50bbd [components] Issue https://github.com/mozilla-mobile/android-components/issues/8947: (Merge day) browser-engine-gecko-beta (83) -> browser-engine-gecko (83) 2020-11-17 10:27:27 -05:00
Mugurell
737db48acc [components] For https://github.com/mozilla-mobile/android-components/issues/8987 - Better handling of ACTION_DOWN in NestedGeckoView 2020-11-16 16:56:33 +00:00
Christian Sadilek
b69eec6b77 [components] Closes https://github.com/mozilla-mobile/android-components/issues/8867: Correctly handle PageAction enabled state 2020-11-04 17:36:29 +00:00
codrut.topliceanu
c84123dfb8 [components] For https://github.com/mozilla-mobile/android-components/issues/8554 - Migrate permissionFeature to KotlinFlow 2020-10-28 19:47:01 +00:00
ekager
a6656de348 [components] Closes https://github.com/mozilla-mobile/android-components/issues/8757 - Expose CompositorController ClearColor as Setting 2020-10-20 22:47:46 +00:00
Roger Yang
fee5f18a8f [components] Issue https://github.com/mozilla-mobile/android-components/issues/8740: (Merge day) browser-engine-gecko-beta (82) -> browser-engine-gecko (82) 2020-10-20 15:29:29 +00:00
Arturo Mejia
84504c1088 [components] Add support for host permissions when updating an extension. 2020-10-19 21:20:47 +00:00
Arturo Mejia
3bff10f141 [components] Closes https://github.com/mozilla-mobile/android-components/issues/8681: Do not retry to update an extension when an unrecoverable exception happens 2020-10-19 21:20:47 +00:00
Sebastian Kaspari
e445c6eb58 [components] Update to Gradle 6.1.1, Android Gradle plugin 4.0.1, Kotlin 1.4 and Coroutines 1.3.9.
This patch reintroduces the changes from PR https://github.com/mozilla-mobile/android-components/pull/8360 that we reverted in PR https://github.com/mozilla-mobile/android-components/pull/8623. Now the issues in
Fenix are resolved and we can land this again.
2020-10-19 07:01:53 +00:00