Mugurell
e277dd03f0
[components] For https://github.com/mozilla-mobile/android-components/issues/10803 - Force expanding the toolbar if requested by GeckoView
2021-08-16 07:46:15 +00:00
Jonathan Almeida
478711a6bf
[components] Close https://github.com/mozilla-mobile/android-components/issues/10677 : Update Mockito to 3.11.2
...
Co-authored-by: Mugurell <Mugurell@users.noreply.github.com >
2021-08-12 02:25:56 +00:00
Sebastian Kaspari
ce323400dd
[components] Run ktlintFormat to fix new ktlint errors.
2021-07-28 12:03:23 +00:00
Arturo Mejia
20c74779f3
[components] Closes https://github.com/mozilla-mobile/android-components/issues/10127 expose new GV api for detecting SmartBlock exceptions.
2021-07-22 20:54:06 +00:00
Sebastian Kaspari
9fb6953940
[components] Upgrade Android Gradle Plugin to 4.2.2 and Gradle to 6.7.1.
2021-07-19 09:32:44 +00:00
Sebastian Kaspari
28a76101be
[components] Update Kotlin to 1.5.10 (and Coroutines to 1.5.0 and Room to 2.3.0).
2021-07-19 09:32:44 +00:00
Mugurell
fd7e80ae98
[components] For https://github.com/mozilla-mobile/android-components/issues/10555 - Fix InputResultDetail hashcode() collisions
...
The previous implementation was affected by the fact that the class has 3
integer properties, all with values [0..4] (-1 was added recently) and it
would just add those value to compute the hashcode.
Collisions were a given.
By using decimal places for each property the new implementation should avoid
collisions while allowing for all the other expected guarantees.
2021-07-16 12:37:29 +00:00
Mugurell
acf8635f10
[components] For https://github.com/mozilla-mobile/android-components/issues/10555 - Use INPUT_HANDLING_UNKNOWN as the default of InputResultDetail
...
We need to wait until having a response from GeckoView on how it handled the
touch only after which we'll know whether to animate the toolbar or not.
The edgecase scenario of having pull to refresh enabled even before having a
response from GeckoView will still work because "canOverscrollTop()" only
checks for the touch to not be handled by the browser to pan the page.
2021-07-16 12:37:29 +00:00
mcarare
636adaf2a9
[components] For https://github.com/mozilla-mobile/android-components/issues/10404 : Remove deprecated kotlin-android-extensions plugin
...
(cherry picked from commit d99621583ceb11e7d91ebe284e40aec145793e48)
2021-06-15 08:32:26 +00:00
Christian Sadilek
4dfb6d92c1
[components] Revert "For https://github.com/mozilla-mobile/android-components/issues/10404 : Remove deprecated kotlin-android-extensions plugin"
...
This reverts commit d99621583ceb11e7d91ebe284e40aec145793e48.
2021-06-14 18:09:24 +00:00
mcarare
17c2336fde
[components] For https://github.com/mozilla-mobile/android-components/issues/10404 : Remove deprecated kotlin-android-extensions plugin
2021-06-14 10:05:57 +00:00
Arturo Mejia
6ee48a1640
[components] Closes https://github.com/mozilla-mobile/android-components/issues/9391 Add support for geckoView site permissions storage.
2021-06-09 18:36:18 +00:00
Arturo Mejia
2cd66e8675
[components] Don't dismiss on load SaveLoginPrompt requests
2021-06-03 06:25:23 +00:00
Mugurell
5fc28020ea
[components] For https://github.com/mozilla-mobile/android-components/issues/8989 - Support multiple prompts in the same Session
...
Following crash reports it was seen that it is possible for multiple prompts to
be shown at the same time with an edgecase being that one prompt request comes
after the user interacted with a previous prompt but before the consume call
completing in AC / GV time at which this code will try to use the new prompt,
not the one the user interacted with.
Having support for multiple prompt requests in ContentState and tightly
coupling a PromptDialogFragment with it's PromptRequest ensures any action
consuming a PromptDialogFragment will always consume the PromptRequest for
which that dialog was shown irrespective of the number of prompts or which is
currently shown on top.
2021-06-02 12:04:17 +00:00
Arturo Mejia
90c7a7564c
[components] Closes https://github.com/mozilla-mobile/android-components/issues/10126 : Expose the new gecko API for
...
controlling CookieBehaviorPrivateMode.
2021-05-27 15:02:45 +00:00
Sebastian Kaspari
45c921d834
[components] AuthenticationDialogFragment: Use URL from prompt request.
2021-05-25 16:10:02 +02:00
Codrut Topliceanu
5eaf878c11
[components] For https://github.com/mozilla-mobile/android-components/issues/10248 - Obfuscates credit card numbers autofill prompt ( https://github.com/mozilla-mobile/android-components/pull/10256 )
...
* For https://github.com/mozilla-mobile/android-components/issues/10248 - Obfuscates credit card numbers autofill prompt
* For https://github.com/mozilla-mobile/android-components/issues/10248 - Changed string extension to getters in CreditCards
* For https://github.com/mozilla-mobile/android-components/issues/10248 - Addressed comments
* For https://github.com/mozilla-mobile/android-components/issues/10248 - Updates tests
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-05-19 14:57:54 +00:00
Gabriel Luong
398885d893
[components] Issue https://github.com/mozilla-mobile/android-components/issues/9457 : Add support to display a credit card picker to handle a SelectCreditCard request
2021-05-12 20:21:24 +00:00
Gabriel Luong
838c9e6222
[components] Issue https://github.com/mozilla-mobile/android-components/issues/10205 : Add support for select credit card prompt
...
- Implements an override function of `onCreditCardSelect` in `GeckoPromptDelegate`
- Adds a new `CreditCard` data class in `concept-engine`. This is a parallel of GV's
`Autocomplete.CreditCard`. We can't using the existing `CreditCard` from `concept-storage`
since that has encryption dependencies whereas the card number is already decrypted
when it reaches GV.
- Adds a new `SelectCreditCard` in `PromptRequest`
2021-05-11 01:22:18 +00:00
Roger Yang
ee67642224
[components] Closes https://github.com/mozilla-mobile/android-components/issues/10200 : Expose enterpriseRootsEnabled runtime setting
2021-05-04 18:50:00 +00:00
Mugurell
ac57109a6e
[components] For https://github.com/mozilla-mobile/android-components/issues/10162 - Expose the list of blocked url schemes
...
Some URL schemes may be blocked from loading in a new tab.
To ensure consistency with other app features this list needs to be easily
accessible.
2021-04-29 14:42:24 +00:00
Gabriel Luong
6121fe222c
[components] No issue - Format PromptRequestTest.kt
...
This formats `PromptRequestTest.kt` by breaking up the one single test into their individual `PromptRequest`.
2021-04-27 20:30:26 +00:00
Christian Sadilek
564d021f78
[components] Improve prompt/popup handling
2021-04-13 14:24:47 +00:00
Mugurell
c755974f4c
[components] Fix https://github.com/mozilla-mobile/android-components/issues/9614 - Use the new InputResultDetail
...
Both NestedGeckoView and NestedWebView will now return an InputResultDetail
wrapping many new details about how a touch event will be handled.
NestedGeckoView's InputResultDetail will be used to more accurately decide when
to animate the toolbar or start the pull to refresh feature.
NestedWebView's InputResultDetail will only have details about if it will
handle the touch or not. With all the other being unknown the dynamic toolbar
or pull to refresh features will not work.
2021-03-30 13:44:44 +00:00
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
Mugurell
2240f1756f
[components] Fix https://github.com/mozilla-mobile/android-components/issues/9614 - Add a new InputResultDetail
...
This will serve the following purposes:
- wrapper for all the new data from GeckoView's onTouchEventForDetailResult
- filters out values not in range (eg: GV's INPUT_RESULT_IGNORED)
- controls how the data can be updated and offers clear APIs for querying this
data without needing to know about the implementation specifics.
2021-03-30 13:44:44 +00:00
Christian Sadilek
c9d791c53b
[components] Adjust detekt TooManyFunctions threshold
2021-03-18 15:25:40 +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
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
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
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
6b2f64b21d
[components] Close https://github.com/mozilla-mobile/android-components/issues/8598 : Adds ActivityDelegate to support the GeckoView delegate
2021-01-18 12:45:49 +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
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
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
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
Christian Sadilek
c917dd2cee
[components] Closes https://github.com/mozilla-mobile/android-components/issues/9022 : Memory leak in BrowserThumbnails.requestScreenshot
2020-11-19 16:54:42 +00:00
Roger Yang
d5392af1e7
[components] Closes https://github.com/mozilla-mobile/android-components/issues/8743 , closes https://github.com/mozilla-mobile/android-components/issues/8886 : Use MediaSesssion API in Media Notification
2020-11-18 11:09:19 +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
Christian Sadilek
c752c47bf1
[components] Closes https://github.com/mozilla-mobile/android-components/issues/8800 : Allow notifications from web extensions
2020-10-26 21:34:23 +00:00
Arturo Mejia
650aff1562
[components] Closes https://github.com/mozilla-mobile/android-components/issues/8769 mark shimmed resources as blocked
2020-10-22 21:15:32 +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