Commit Graph

61 Commits

Author SHA1 Message Date
MozLando
8e1f42e65c [components] Merge https://github.com/mozilla-mobile/android-components/pull/6034
6034: Closes https://github.com/mozilla-mobile/android-components/issues/6011: Integrate DebuggerDelegate to support temporary extensions r=Amejia481 a=csadilek

GeckoView calls us back now when a debug / temporary extension was installed so we can refresh the list of installed extensions to make sure action handlers are hooked up. 

We're gonna have to uninstall all extensions and call `listInstalledExtensions` again to re-install everything that is there now incl. the new temporary extension. This is fine as it's for debugging purposes only.

Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
2020-02-24 18:44:10 +00:00
Christian Sadilek
318d58e5bd [components] Closes https://github.com/mozilla-mobile/android-components/issues/6011: Integrate DebuggerDelegate to support temporary extensions 2020-02-24 13:25:45 -05:00
Sebastian Kaspari
4dc2b68f89 [components] Closes https://github.com/mozilla-mobile/android-components/issues/5965: Migrate concept-tabstray, browser-tabstray and feature-tabs to use browser-state. 2020-02-24 09:52:41 +01:00
MozLando
d0659e1907 [components] Merge https://github.com/mozilla-mobile/android-components/pull/5864 https://github.com/mozilla-mobile/android-components/pull/5997 https://github.com/mozilla-mobile/android-components/pull/6008 (part 1)
5864: Fixed `ContextMenuFeature` and `DownloadsFeature` not working for non-selected normal tab r=pocmo a=JasonHK

- Added `BrowserState.findTabOrCustomTabOrSelectedTab` extension method.
- Fixed `ContextMenuFeature` not working for non-selected normal tab.
- Fixed `DownloadsFeature` not working for non-selected normal tab



5997: Closes https://github.com/mozilla-mobile/android-components/issues/5792: Potential deadlock between unsubscribe and dispatch r=pocmo a=csadilek

As with our previous deadlock fix, we do **not** want to change the lock on the `Subscription`, as it guarantees we never dispatch to paused or stopped observers. However, the inner lock on `subscriptions` is only there for visibility purposes. We can achieve the same, namely making sure retrievals reflect the results of the most recently completed update, by using a concurrent HashSet: A set projection of https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentHashMap.html

This removes the potential of a deadlock and I don't see any change in semantics: The `removeSubscription` case is guarded by the `Subscription` lock and can't overlap with dispatching to the same subscription. The `addSubscription` case is guarded by the lock on the `Store` which is also required for `dipsatching`, so add and dispatch can't overlap either.

@pocmo wdyt?

6008: Bug 1615248 - add missing nightly entry in .cron.yml r=pocmo a=MihaiTabara

Follow-up from https://github.com/mozilla-mobile/android-components/pull/5967, I forgot to add its `cron.yml` corresponding entry for nightly releases.

Co-authored-by: Jason Kwok <JasonHK@users.noreply.github.com>
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
Co-authored-by: Mihai Tabara <mtabara@mozilla.com>
2020-02-20 19:52:44 +00:00
Sebastian Kaspari
821b87e3ce [components] Closes https://github.com/mozilla-mobile/android-components/issues/5966: Migrate browser-icons to use browser-state. 2020-02-19 09:48:42 +01:00
Severin Rudie
5b868c9ca0 [components] For https://github.com/mozilla-mobile/fenix/issues/5695: adds '{app} Search' to text selection context menu 2020-02-14 08:40:46 -08:00
Jason Kwok
e47487dee0 [components] Added BrowserState.findCustomTabOrSelectedTab extension method 2020-02-09 22:49:06 +08:00
Christian Sadilek
83bb0be49c [components] Closes https://github.com/mozilla-mobile/android-components/issues/5805: Addon name missing after uninstall / reinstall 2020-02-04 12:38:53 -05:00
Simon Chae
d4d7831a78 [components] For https://github.com/mozilla-mobile/android-components/issues/5572: Refactor web extension popup initialization 2020-01-23 19:36:58 -05:00
Simon Chae
be37eb80ce [components] Closes https://github.com/mozilla-mobile/android-components/issues/5572: Update BrowserAction to allow opening a popup 2020-01-22 14:16:35 -05:00
Christian Sadilek
70570d5ac2 [components] Issue https://github.com/mozilla-mobile/android-components/issues/4470: Wire up API for page action support
- This is basically just a copy of our browser action API, with some
refactoring to make some types and methods generic
2020-01-20 17:41:21 -05:00
Tiger Oakes
00ae4eaf07 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3963 - Use stable AndroidX Browser lib 2019-12-18 20:55:03 -08:00
Arturo Mejia
d62d205d48 [components] For issue https://github.com/mozilla-mobile/android-components/issues/5143 Initial support for triggering Addon updates. 2019-12-13 10:53:08 -05:00
Christian Sadilek
12d68f202e [components] Issue https://github.com/mozilla-mobile/android-components/issues/4500: Add API for installing/uninstalling third-party extensions 2019-12-11 16:57:12 -05:00
Sawyer Blatz
da864f4056 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/5264: Passes DownloadState to FetchDownloadManager when completed 2019-12-09 10:31:59 -08:00
Christian Sadilek
9d0f21d694 [components] Issue https://github.com/mozilla-mobile/android-components/issues/4500: Add action / state to enable and disable extension 2019-12-05 17:29:36 -05:00
Christian Sadilek
15c3b5aa99 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4774: Link addons to their installed extensions 2019-12-05 13:40:38 -05:00
Christian Sadilek
805815825b [components] Closes https://github.com/mozilla-mobile/android-components/issues/4791: Support opening default action popup, +sample 2019-11-29 15:09:07 -05:00
Christian Sadilek
acb8a8106e [components] Closes https://github.com/mozilla-mobile/android-components/issues/4398: Add reader state to browser-state 2019-11-21 21:16:16 -05:00
Arturo Mejia
a5e881a4e2 [components] Closes https://github.com/mozilla-mobile/android-components/issues/5091: Fix clashing file providers in feature-prompts and
feature-downloads.
2019-11-19 15:38:38 -05:00
Christian Sadilek
8777fc0c62 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4553: Migrate WindowFeature to browser-state 2019-10-31 15:31:50 -04:00
Sawyer Blatz
97904ab7d8 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4896: Adds download management 2019-10-30 09:46:44 -07:00
Tiger Oakes
31c87e1ee0 [components] Add externalAppType field 2019-10-23 09:07:00 -07:00
Arturo Mejia
b64e1891d0 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4469: Add API for supporting WebExtension browserActions 2019-10-11 17:01:52 +02:00
Sebastian Kaspari
c6c2b3c6fb [components] feature-contextmenu: Do not show download confirmation dialog for "save image". 2019-10-08 16:30:33 +02:00
Arturo Mejia
5864df650c [components] For issue https://github.com/mozilla-mobile/android-components/issues/3264 Display the OFF_FOR_A_SITE tracking protection state. 2019-10-07 09:59:19 -04:00
Tiger Oakes
bf0f4f076d [components] Hide close button in PWAs 2019-09-26 08:45:26 -07:00
Sebastian Kaspari
e6e0bc1fa4 [components] Issue https://github.com/mozilla-mobile/android-components/issues/4421: Remove download property from Session. 2019-09-25 16:13:25 +02:00
Denys M
b95c932f81 [components] For https://github.com/mozilla-mobile/android-components/issues/4460. Fix detekt warning about license in project files. 2019-09-24 01:01:03 +04:00
Sebastian Kaspari
c6fecc6f06 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4283: Migrate feature-contextmenu to use browser-state. 2019-09-16 12:09:09 +02:00
Christian Sadilek
5102a8be3d [components] Closes https://github.com/mozilla-mobile/android-components/issues/4292: Add FindResult to browser-state 2019-09-11 10:38:02 -04:00
Christian Sadilek
328d4c50a3 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4290: Add PromptRequest to browser-state 2019-09-10 14:13:31 -04:00
Christian Sadilek
961e9d8d6d [components] Closes https://github.com/mozilla-mobile/android-components/issues/3558: browser-state: Add engine session state and keep in sync 2019-09-06 14:10:14 -04:00
Christian Sadilek
0cb71c28fc [components] Make BrowserAction names consistent 2019-09-05 16:11:38 -04:00
Christian Sadilek
9b28cad809 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4284: Sync downloads between browser-session and browser-state
Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
2019-09-04 20:27:04 -04:00
Christian Sadilek
03b4e2e474 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4285: Add HitTarget to browser-state 2019-09-04 16:01:32 -04:00
MozLando
354147ba90 [components] Merge https://github.com/mozilla-mobile/android-components/pull/3783
3783: Migrate feature-toolbar to use browser-state. r=csadilek a=pocmo

Closes https://github.com/mozilla-mobile/android-components/issues/3530.

### Pull Request checklist
<!-- Before submitting the PR, please address each item -->
- [x] **Quality**: This PR builds and passes detekt/ktlint checks (A pre-push hook is recommended)
- [x] **Tests**: This PR includes thorough tests or an explanation of why it does not
- [x] **Changelog**: This PR includes [a changelog entry](https://github.com/mozilla-mobile/android-components/blob/master/docs/changelog.md) or does not need one
- [x] **Accessibility**: The code in this PR follows [accessibility best practices](https://github.com/mozilla-mobile/shared-docs/blob/master/android/accessibility_guide.md) or does not include any user facing features


Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
2019-09-03 17:52:39 +00:00
Sebastian Kaspari
f2c0cca8d6 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3530: Migrate feature-toolbar to use browser-state. 2019-09-03 14:23:03 +02:00
Sebastian Kaspari
68e177172b [components] Issue https://github.com/mozilla-mobile/android-components/issues/4284: Add DownloadState to browser-state. 2019-09-03 12:20:09 +02:00
Christian Sadilek
b51324ba7d [components] Closes https://github.com/mozilla-mobile/android-components/issues/3544: Add custom tab config to browser-state 2019-08-29 17:51:12 -04:00
Sebastian Kaspari
46e5967464 [components] Issue https://github.com/mozilla-mobile/android-components/issues/4119: Add tracking protection state to browser-state. 2019-08-29 18:34:43 +02:00
Christian Sadilek
1bb77a5027 [components] Closes https://github.com/mozilla-mobile/android-components/pull/3680: Synchronize icons between browser-store and session 2019-07-22 14:23:56 -04:00
Christian Sadilek
d6510bdd64 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3528: Validate initial browser-store state 2019-07-18 10:12:26 -04:00
Sebastian Kaspari
d2a619dc58 [components] Issue https://github.com/mozilla-mobile/android-components/issues/3432: Add AddMultipleTabsAction to add multiple tabs at once to BrowserStore. 2019-07-15 13:37:24 +02:00
Christian Sadilek
aa2bba778e [components] Closes https://github.com/mozilla-mobile/android-components/issues/3639: browser-state: Add onLowMemory behavior 2019-07-12 11:07:05 -04:00
Christian Sadilek
7fa782c657 [components] Closes https://github.com/mozilla-mobile/android-components/pull/3680: Synchronize thumbnails between browser-store and session 2019-07-11 10:22:30 -04:00
Christian Sadilek
af85ec3bf3 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3524: browser-state: Prevent duplicated tabs (id) 2019-07-10 15:47:03 +02:00
Christian Sadilek
dab920cc5c [components] Issue https://github.com/mozilla-mobile/android-components/issues/3563: Introduce StoreException for errors caught in Store/Reducer 2019-07-05 17:22:38 +02:00
Christian Sadilek
f753837bb1 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3527: browser-state: Add parent tab functionality 2019-07-05 17:22:38 +02:00
Christian Sadilek
60e610e4fc [components] Closes https://github.com/mozilla-mobile/android-components/issues/3559: Add actions for removing tabs to browser-state 2019-07-01 14:38:02 +02:00