Commit Graph

63 Commits (382ca721c4788c348da1bc4c24f702a26fdbe707)

Author SHA1 Message Date
Arturo Mejia 2d714dd4af Bug 1842039 - Add bread crumbs for IllegalArgumentException when navigating.
Co-authored-by: Jonathan Almeida <jalmeida@mozilla.com>
Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>
11 months ago
mike a 321dd0e532 Bug 1815637 - cherry picking 548379d, the original rtl commit 11 months ago
Arturo Mejia 2773bf7f30 Reverts "Bug 1815637 - Add rtl support." 12 months ago
rxu dd1531b08a Bug 1832006 - Add description of site permissions fragment 1 year ago
mike a 2e8080b4ff Bug 1815637 - Add rtl support 1 year ago
Arturo Mejia a14dd075ef [fenix] Improve site permissions 2 years ago
Gabriel Luong 1ec4cf8dad [fenix] For https://github.com/mozilla-mobile/fenix/issues/27667 - Remove import-ordering from the list of disabled ktlint rules 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
mcarare b6d1500f3e [fenix] For https://github.com/mozilla-mobile/fenix/issues/24761: Remove wrapper from autoplay settings metrics. 2 years ago
mike a a2dbecb63f [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/24276: add documentation to classes marked as UndocumentedPublicClass by lint 2 years ago
mike a 2150bebf5a [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/24276:
– make comments inside HistoryDataSource capitalized and informative
– remove scroll to first item in swipe-to-refresh
– change adapter initialization
– fixed SitePermissionsExceptionsFragment flickering empty state
2 years ago
mike a 4b38d79472 [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/24276: removed deprecated paging from SitePermissionsExceptionsFragment 2 years ago
mike a 3bbd8d2571 [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/24276: updating pagination library, changing history related classes 2 years ago
Gabriel Luong 2a0b826945 [fenix] For https://github.com/mozilla-mobile/fenix/issues/24252 - Rename secondaryText attribute to textSecondary 2 years ago
Alexandru2909 48a83be7cf [fenix] For https://github.com/mozilla-mobile/fenix/issues/23719 - Replace preference framework strings with string resources 2 years ago
Geordan Neukum 00ca6eb509 [fenix] For https://github.com/mozilla-mobile/fenix/issues/16395 - Use Secondary Text for the Site Permissions subtext 2 years ago
Arturo Mejia b2329b0802 [fenix] For https://github.com/mozilla-mobile/fenix/issues/22995: Address crash when switching languages. 3 years ago
Mugurell ae7909671e [fenix] For https://github.com/mozilla-mobile/fenix/issues/22852 - Add a new "Storage access" permission 3 years ago
Gabriel Luong 29dfb8ee7f [fenix] For https://github.com/mozilla-mobile/fenix/issues/21776 - Remove unnecessary type argument 3 years ago
Gabriel Luong 5fbd63386d [fenix] For https://github.com/mozilla-mobile/fenix/issues/21776 - Remove reductant SAM constructor 3 years ago
Sebastian Kaspari 6ea19d4b17 [fenix] Run ktlintFormat to adapt to latest formatting rules. 3 years ago
mcarare e3b9c8b633 [fenix] For https://github.com/mozilla-mobile/fenix/issues/17917: Use View binding in settings screens. 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
Arturo Mejia 10e4bf1d7f [fenix] Improvements to site permissions 3 years ago
Arturo Mejia 80fb799bb7 [fenix] Fix site permissions breaking changes 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
Arturo Mejia d024b9bc93 [fenix] For issue https://github.com/mozilla-mobile/fenix/issues/16557 set autoplay block audio only
by default
3 years ago
Arturo Mejia 59b50be098 [fenix] Target Android 11 3 years ago
Christian Sadilek 8aa8caa944 [fenix] Refactor tryReloadTabBy to use browser store 3 years ago
Arturo Mejia 905f243ceb [fenix] For issue: https://github.com/mozilla-mobile/fenix/issues/16846 Add ui for controlling exceptions for auto play 4 years ago
Arturo Mejia 9a3a4faf12 [fenix] For issue https://github.com/mozilla-mobile/fenix/issues/16847 Show the autoplay icon in the toolbar 4 years ago
Emilio Cobos Álvarez 042f7dd697 [fenix] Add support for EME permission.
This accompanies the changes in https://github.com/mozilla-mobile/android-components/pull/9121.

Closes https://github.com/mozilla-mobile/fenix/issues/1175
4 years ago
Jonathan Almeida 8281e16c83 [fenix] Fix lint warnings and test in site permissions 4 years ago
Arturo Mejia 4f67095c8b [fenix] Add support for local storage permission 4 years ago
Grisha Kruglov a41022554b [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/15443: Use fragment's lifecycleScope for AlertDialog actions 4 years ago
Tiger Oakes e77e039413 [fenix] Enforce IO thread inside of components (https://github.com/mozilla-mobile/fenix/pull/14704)
* Automatically run PermissionStorage on IO thread

* Run TabCollectionStorage on dedicated scope + IO

* Update findSitePermissionsBy calls
4 years ago
Tiger Oakes 64aa8c17bd [fenix] Remove un-needed nullables (https://github.com/mozilla-mobile/fenix/pull/13816) 4 years ago
Jeff Boek d2d7fceb94 [fenix] For https://github.com/mozilla-mobile/fenix/issues/11579 - Adds telemetry for autoplay settings in Site Permissions 4 years ago
Tiger Oakes c3391dd74d [fenix] Add method to test fragments in roboletric (https://github.com/mozilla-mobile/fenix/pull/12261) 4 years ago
ekager 34b326f313 [fenix] For https://github.com/mozilla-mobile/fenix/issues/5636 - Unregisters wifiConnectedListener when setting changes, sets default blocked 4 years ago
Tiger Oakes 5d852c326c [fenix] Replace PhoneFeature.getPreferenceKey 4 years ago
Tiger Oakes 4c16bf3f97 [fenix] Replace requireNotNull(findPreference()) 4 years ago
Tiger Oakes 867a1ee86d [fenix] Simplify `PhoneFeature` code (https://github.com/mozilla-mobile/fenix/pull/10810) 4 years ago
ekager 4cee96a5d4 [fenix] For https://github.com/mozilla-mobile/fenix/issues/10485 - Restore block video/audio on cellular data radio button 4 years ago
Simon Chae 8a493357ba [fenix] Update Android Components version to 41.0.20200506130132 (https://github.com/mozilla-mobile/fenix/pull/10443) 4 years ago
Arturo Mejia 7be16b503d [fenix] For issue https://github.com/mozilla-mobile/fenix/issues/9493: Reload after cleaning individual site permissions exceptions 4 years ago
ekager b5f847467f [fenix] For https://github.com/mozilla-mobile/fenix/issues/6832 - Fix various fragment not attached to a context crashes 4 years ago
Arturo Mejia 07fcd5106a [fenix] For issue https://github.com/mozilla-mobile/fenix/issues/9493: Reload after cleaning all site permissions exceptions 4 years ago
Arturo Mejia 23c3c286de [fenix] For issue https://github.com/mozilla-mobile/fenix/issues/8017 enable SitePermissionsWifiIntegration 4 years ago
Arturo Mejia bbe7a09e13 [fenix] For issue https://github.com/mozilla-mobile/fenix/issues/9364 Crash when blocking app permissions and returning to
the app
4 years ago