Commit Graph

53 Commits (44242148941651ac2138d135a7734b81f46349aa)

Author SHA1 Message Date
William Durand 4424214894 Bug 1881676 - Unconditionally set the "Enabled" label on the toggle switch 3 months ago
William Durand 37138b62a1 Bug 1875229 - Add support for extensions not allowed in private windows 4 months ago
Matthew Tighe bd7a90d34b Revert "Bug 1861459 - Remove BrowsingModeManager usages outside of the Home Screen"
This reverts commit d5856268ec720ad0e41585a3f75201ae8d5e6755.
5 months ago
Matthew Tighe 9f196caa04 Bug 1861459 - Remove BrowsingModeManager usages outside of the Home Screen 5 months ago
William Durand 1e2b8d5920 Bug 1867498 - Add report add-on button in detail view 6 months ago
William Durand 92a1a0d3fe Bug 1847266 - Implement status message for incompatible add-ons in the manager 8 months ago
William Durand c623101f19 Bug 1847266 - Implement status message for add-ons not signed correctly in the manager 8 months ago
Arturo Mejia 9740f5ed0a Bug 1844557 - Disable the switch control when the add-on is blockedlisted. 8 months ago
rahulsainani 7886ec7d7b [fenix] Bug 1796319 - Select existing addon settings tab if already opened 1 year ago
Alexandru2909 82701fd0f0 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26911 - Allow users to enable re-supported Fennec extensions 2 years ago
mcarare 932823c871 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26844: Fix ktlint issues and remove them from baseline. 2 years ago
Arturo Mejia fb6344d0d4 [fenix] No issue: Renew/Remove metrics set to expire in v104 2 years ago
mcarare ebb6647c37 [fenix] For https://github.com/mozilla-mobile/fenix/issues/24715: Remove wrapper from addons metrics. 2 years ago
Arturo Mejia b2329b0802 [fenix] For https://github.com/mozilla-mobile/fenix/issues/22995: Address crash when switching languages. 2 years ago
codrut.topliceanu 48eff4f831 [fenix] For https://github.com/mozilla-mobile/fenix/issues/17917: Use View binding in add-ons 3 years ago
Roger Yang 63775af142 [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/19921: Update appcompat and fragment dependencies to 1.3.x 3 years ago
Sebastian Kaspari e25cfcdc48 [fenix] Complete browser-state migration and remove browser-session dependency.
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
3 years ago
MarcLeclair 4c45f615bb [fenix] 16900 make navgraph inflation asynchronous (https://github.com/mozilla-mobile/fenix/pull/18889)
* For https://github.com/mozilla-mobile/fenix/issues/16900: implement async navgraph inflation

For https://github.com/mozilla-mobile/fenix/issues/16900: removed nav graph from xml

For https://github.com/mozilla-mobile/fenix/issues/16900: inflate navGraph programatically

For https://github.com/mozilla-mobile/fenix/issues/16900: Made NavGraph inflation asynchronous

For https://github.com/mozilla-mobile/fenix/issues/16900: Changed to block with runBlocking

For https://github.com/mozilla-mobile/fenix/issues/16900: Refactored blocking call into a function

For 16900: NavGraph inflation is now async

We now attach the nav graph (or check if its attached) on every nav call ( an extension function for NavController).
This is done by checking the value of the job stored in PerfNavController.map which keeps track of the job with the NavController as a Key.
If the job hasn't been completed, it will block the main thread until the job is done. The job itself is responsible for attaching the navgraph
to the navcontroller (and the inflation of the latter too)

For 16900: rebased upstream master

For 16900: Rebase on master

For https://github.com/mozilla-mobile/fenix/issues/16900: Fixed Async Navgraph navigation per review comments.

1)The Asynchronous method is now found in NavGraphProvider.kt. It creates a job on the IO dispatcher
2)The Job is tracked through a WeakHashMap from Controller --> NavGraph
3)The Coroutine scope doesn't use MainScope() anymore
4)The Coroutine is cancelled if the Activity is destroyed
5)The tests mockk the blockForNavGraphInflation method through the FenixReoboelectricTestApplication instead of calling the mock every setup()

For https://github.com/mozilla-mobile/fenix/issues/16900: inflateNavGraphAsync now takes navController

For https://github.com/mozilla-mobile/fenix/issues/16900: Pass lifecycleScope to NavGraphProvider

For https://github.com/mozilla-mobile/fenix/issues/16900: removed unused mock

For https://github.com/mozilla-mobile/fenix/issues/16900: Added linter rules for navigate calls

We need linting rules to make sure no one calls the NavController.navigate() methods

For https://github.com/mozilla-mobile/fenix/issues/16900: Added TestRule to help abstract the mocks in the code

For 16900: Fix linting problems

For https://github.com/mozilla-mobile/fenix/issues/16900: Cleaned duplicated code in tests

For https://github.com/mozilla-mobile/fenix/issues/16900: cleaned up NavGraphTestRule for finished test

For https://github.com/mozilla-mobile/fenix/issues/16900: had to revert an accidentally edited file

For https://github.com/mozilla-mobile/fenix/issues/16900: rebased master

* For https://github.com/mozilla-mobile/fenix/issues/16900: Review nits for async navgraph

This is composed of squash commits, the original messages can be found below:

-> DisableNavGraphProviderAssertionRule + kdoc.

Use test rule in RobolectricApplication.

Fix failing CrashReporterControllerTest

Fix blame by -> navigate in tests.

This commit was generated by the following commands only:
```
find app/src/test -type f -exec sed -i '' "/import org.mozilla.fenix.ext.navigateBlockingForAsyncNavGraph/d" {} \;
find app/src/test -type f -exec sed -i "" "s/navigateBlockingForAsyncNavGraph/navigate/g" {} \;
git checkout app/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker
```

Fix various blame

This is expected to be squashed into the first commit so, if so, it'd
fix the blame.

Move test rule to helpers pkg.

add missing license header

Add import change I missed

fix unused imports

Replace robolectricTestrunner with test rule.

Improve navGraphProvider docs

Remove unnecessary rule as defined by robolectric.

add clarifying comment to robolectric

remove unnecessary space

* For https://github.com/mozilla-mobile/fenix/issues/16900: nit fixes for MozillaNavigateCheck and lint fixes

3 squash commits:
 *Changed violation message and fixed the lint rule for MozillaNavigateCheck
 *Added suppression to NavController.kt
 *Fixed detekt violations

* For 16900: Fixed failing tests

Co-authored-by: Michael Comella <michael.l.comella@gmail.com>
3 years ago
Roger Yang c164b2308b [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/18706 - Remove unneeded add-on telemetry calls (https://github.com/mozilla-mobile/fenix/pull/18707) 3 years ago
Roger Yang e1404fab67 [fenix] For https://github.com/mozilla-mobile/fenix/issues/17644: Record when user taps on a add-on's setting (https://github.com/mozilla-mobile/fenix/pull/18504) 3 years ago
Elise Richards c4e0ad6451 [fenix] Update metrics when an addon is installed or enabled (https://github.com/mozilla-mobile/fenix/pull/17669) 3 years ago
Hakkı Kaan Çalışkan 39c21ff474 [fenix] For https://github.com/mozilla-mobile/fenix/issues/17303: Move ext fun runIfFragmentIsAttached to utils
move to ext
3 years ago
Arturo Mejia d3faecd59c [fenix] Fix add-on translation braking changes 4 years ago
Simon Chae f26917773c [fenix] For https://github.com/mozilla-mobile/fenix/issues/13256: Set add-on settings tab mode based on BrowsingModeManager 4 years ago
ekager a42bb3c9de [fenix] For https://github.com/mozilla-mobile/fenix/issues/6313 - Removes unused browser animations, improve delayed paint interactions 4 years ago
Tiger Oakes adbadba250 [fenix] Move settings in components (https://github.com/mozilla-mobile/fenix/pull/12675) 4 years ago
Hakkı Kaan Çalışkan 415bbf6574 [fenix] For https://github.com/mozilla-mobile/fenix/issues/12509: Set height of remove add on button to 36dp 4 years ago
Tiger Oakes 01faa91808 [fenix] Migrate some SessionManager usage to BrowserStore (https://github.com/mozilla-mobile/fenix/pull/10789) 4 years ago
Simon Chae b07bb079f4 [fenix] For https://github.com/mozilla-mobile/fenix/issues/10552: Set initial add-on details fragment visibility to false (https://github.com/mozilla-mobile/fenix/pull/10565) 4 years ago
Simon Chae e2adba7ca7 [fenix] For https://github.com/mozilla-mobile/fenix/issues/10473: Fetch the addon from addon manager instead of the store 4 years ago
Simon Chae 886039a695 [fenix] For https://github.com/mozilla-mobile/fenix/issues/10196: Remove clickable locks for enable and private-browsing UI (https://github.com/mozilla-mobile/fenix/pull/10445) 4 years ago
Simon Chae 6fbf233d88 [fenix] For https://github.com/mozilla-mobile/fenix/issues/10195, https://github.com/mozilla-mobile/fenix/issues/10196: Allow private browsing mode switch to sync with enable state 4 years ago
Simon Chae f765736b27 [fenix] For https://github.com/mozilla-mobile/fenix/issues/10162: Set switch back to prev state when failed to enable/disable addon (https://github.com/mozilla-mobile/fenix/pull/10164) 4 years ago
Simon Chae c4dda61fe8 [fenix] For https://github.com/mozilla-mobile/fenix/issues/6123: Expose WebExtensions in private browsing control 4 years ago
mcarare 880722de99 [fenix] For https://github.com/mozilla-mobile/fenix/issues/9984: Update addon before settings visibility check 4 years ago
Arturo Mejia bda6aa50f3 [fenix] For issue https://github.com/mozilla-mobile/fenix/issues/9930 Do not assume all add-ons have a settings page 4 years ago
Arturo Mejia f38165ad6d [fenix] No issue: Fix add-on translate() breaking change 4 years ago
Christian Sadilek 07b1f84ec6 [fenix] No issue: Re-use existing usecases for addons 4 years ago
Arturo Mejia 174af614f4 [fenix] For issue https://github.com/mozilla-mobile/fenix/issues/9647 Crash when tapping settings after quickly
enabling/disabling add-on
4 years ago
Arturo Mejia 12237fdca1 [fenix] For issue https://github.com/mozilla-mobile/fenix/issues/8520: Polish Add-on manager UIs 4 years ago
Arturo Mejia bc61f5151c [fenix] Remove @UseExperimental for usages of the flow api 4 years ago
Christian Sadilek 30ce746bb0 [fenix] For https://github.com/mozilla-mobile/fenix/issues/8808 https://github.com/mozilla-mobile/fenix/issues/9139: Add-on should be able to configure how to open options page 4 years ago
ekager b24a4cbcb4 [fenix] For https://github.com/mozilla-mobile/fenix/issues/8641 - Update addon text selector to use attr colors 4 years ago
Simon Chae 821063dde4 [fenix] For https://github.com/mozilla-mobile/fenix/issues/8699: Add view.settings to setAllInteractiveViewsClickable (https://github.com/mozilla-mobile/fenix/pull/8820) 4 years ago
Simon Chae 8ce8c11b4b [fenix] For https://github.com/mozilla-mobile/fenix/issues/8699: Add setAllInteractiveViewsClickable for add-on pending removal (https://github.com/mozilla-mobile/fenix/pull/8776) 4 years ago
Arturo Mejia ba62a9cad6 [fenix] For issue https://github.com/mozilla-mobile/fenix/issues/8570: Disabling uBlock and quickly opening the Settings
section cause a crash
4 years ago
Arturo Mejia 3003f9c72a [fenix] For issues https://github.com/mozilla-mobile/fenix/issues/8310 Disable the remove button while disabling an add-on
and vice versa.
4 years ago
Christian Sadilek 1e69fb8146 [fenix] For https://github.com/mozilla-mobile/fenix/issues/8201: Enable/Disable uBlock button status isn't updated 4 years ago
Christian Sadilek d675e82e4b [fenix] For https://github.com/mozilla-mobile/fenix/issues/8202: Remove settings if add-on disabled
- Also fixes the crash described in https://github.com/mozilla-mobile/fenix/issues/8202.
4 years ago
Christian Sadilek 9a364fc648 [fenix] For https://github.com/mozilla-mobile/fenix/issues/6124 https://github.com/mozilla-mobile/fenix/issues/8158: Prevent infinite loop on fast taps on enable switch 4 years ago