Commit Graph

3226 Commits (c006ae5056ab4cd4421e3a5abe5dafe72b025b18)

Author SHA1 Message Date
Codrut Topliceanu 4b56aeb12f
For #16592 - Fix missing collection snackbar for a11y (#16593)
Set null anchor for snackbar when using a11y services
4 years ago
mcarare f823a5d246 For #16353: Avoid strict mode death on reading onboarding preference. 4 years ago
mcarare de1fa74ac1 For #16353: Add unit tests for onboarding finishing conditions. 4 years ago
mcarare 089c79f868 For #16353: Finish onboarding on loading a web page, with exceptions. 4 years ago
mcarare 451f60b095 For #16353: Do not finish onboarding on search dialog opening. 4 years ago
ekager b9737bde95 For #16351 - Add divider lines for search dialog 4 years ago
Sebastian Kaspari 2b759e9d6f Integrate new search code from Android Components into Fenix. 4 years ago
MickeyMoz 2904ca8ac0 Update Android Components version to 68.0.20201120125142. 4 years ago
jhugman 9cdfb6db4a
Nimbus Global Opt Out (#16543) r=gl 4 years ago
ekager b7fe809ae4 For #16351 - Make homescreen interactive when search dialog is up 4 years ago
mcarare cf162c69d1 For #15788: Remove nested layouts in search dialog layout. 4 years ago
Jonathan Almeida cebab81e07
Update Android Components to 67.0.20201117165227 (#16619) 4 years ago
ekager f520586dcd
For #12062 - Remove feature flag for return to browser (#16622) 4 years ago
Mugurell ef5846dc3e
For #16614 - Ensure a stable order for the items in tabs tray. (#16618)
Items should follow the following ordering:
- current session open tabs
- collections options - currently the "Select tabs" button
- synced tabs items

This order should also be kept after returning from Multiselect mode.
4 years ago
Bryan Kok 5f9de1e261 Replace @string/tab_tray_menu_item_save with @string/tab_tray_menu_select, Remove "Share all tabs" option from tab tray's private browsing menu 4 years ago
ekager 614471495d
For #15091 - Fixes RecentlyClosedAdapter DiffCallback (#16608) 4 years ago
Christian Sadilek 1d5f74d865 Closes #16153: Intermittent failures of ShareControllerTest.handleShareToApp 4 years ago
mcarare 0d37c8f268 For #16420: Make search bar first view focused by a11y services on open. 4 years ago
Christian Sadilek 88f3f3564e Issue #16587: Make sure tab counter correctly reflects private/normal tab counts 4 years ago
Christian Sadilek fbbc25b54e Closes #16053: Fix crash when closing private tabs via notification 4 years ago
MickeyMoz 2c4f0624fd Update Android Components version to 67.0.20201115143123. 4 years ago
Jonathan Almeida 78715c3020
For #13477 - Move BiometricPrompt to a separate feature (#16498)
Instead of simply fixing the memory leak for this issue by directly
removing references, it makes more sense to move the whole
BiometricPrompt out of the fragment and into it's own feature to be
re-usable.
4 years ago
Mihai Adrian Carare 85dd2f8313
For #16511 - Change a11y parent of button without breaking the tab list. (#16555) 4 years ago
Michael Comella e8bf955893 No issue: move StrictModeManager to perf package.
While StrictMode is not exclusively used for performance purposes, it's
primarily used for perf purposes so let's move it to the perf package
and code owner it.
4 years ago
Jocelyne Abi Haidar 88233ef42d For #15725: Set up preferences in onCreatePreferences instead of onResume
set up preferences in onCreatePreferences instead of onResume so that their visibility is determined before the screen appears rather than after
4 years ago
mcarare d45bdfb0f4 For #16477: Switch to using an extension to update a11y collection info. 4 years ago
mcarare e2322a18f9 For #16477: Migrate updateAccessibilityCollectionItemInfo to extension. 4 years ago
mcarare b52f069573 For #16477: Update a11y info to collection item for both grid and list. 4 years ago
Mugurell c6de8632de
For #16461 - Ensure the proper items order after exiting Multiselect (#16482) 4 years ago
LeoMaldonado a06b30a73d Fixes Comment on #16563: DefaultToolbarMenu registering for bookmark changes
comment link: https://github.com/mozilla-mobile/fenix/pull/16536#discussion_r522387945
4 years ago
LeoMaldonado 2d8fe7a9ad Closes #16345: Update share icon shape
updating share icon to a filled shape, like default toolbar menu across all app
4 years ago
LeoMaldonado 84eda3d38f For #16345: use same share icon across all app
replace mozac_ic_share for ic_hollow_share on DefaultToolbarMenu
4 years ago
Gabriel Luong 27ee2ba4f6
For #15761 - [Grid View] Enable the grid view and remove its feature flag (#16546)
* For #15761 - Part 1: Turn ON the showGridViewInTabsSettings feature flag

* For #15761 - Part 2: Remove the showGridViewInTabsSettings feature flag and show the Tab view preference category
4 years ago
Gabriel Luong e9d335cb24
Revert "For #15761 - [Grid View] Enable the grid view and remove its feature flag (#16535)" (#16544)
This reverts commit 7499d33b32.
4 years ago
rxumoz 409041ae3b
For #16451 - Change default top sites to Baidu & JD in China build (#16515)
* Add top sites related strings

* Change default top sites to Baidu & JD in China build
4 years ago
Gabriel Luong 7499d33b32
For #15761 - [Grid View] Enable the grid view and remove its feature flag (#16535) 4 years ago
ekager 1ed9ebf622 For #16132 - Rename normal mode menu item, remove telemetry 4 years ago
Gabriel Luong ebadbdb352
For #14920 - Show a Tabs Tray CFR Banner for grid view tip (#16466) 4 years ago
Codrut Topliceanu f3edce5f16
For #11376 - Reverse tabs list order (#16245) 4 years ago
Johan Lorenzo 4570f5a14f Revert "Update Android Components version to 66.0.20201111143206."
This reverts commit dbdb68ac72.
4 years ago
Kate Glazko 6c68e79a22 For #14772: Crash in Downloads 4 years ago
Mugurell a097b135b3 For #16076 - Add new "share_image" telemetry event 4 years ago
MickeyMoz dbdb68ac72 Update Android Components version to 66.0.20201111143206. 4 years ago
mcarare c427ebf8d5 For #16416: Remove save to collection button from tab a11y list. 4 years ago
ekager a8db85fc22 For #16132 - Revise multiselect mode UI 4 years ago
Mugurell 5e58377948
For #16424 - Focus the right item in tabs tray when using Talkback (#16472)
To get the index of the current selected browser tab when using reverse layout
we should also account for items placed below of the browser tabs.
The patch here unifies the logic already used for some calls but not all.
4 years ago
Codrut Topliceanu 6e4393a199
For #15720 - Remove unused telemetry (#15887) 4 years ago
Gabriel Luong b5c25ccf3b
For #15960 - Enable Grid View in Nightly only (#16462) 4 years ago
Christian Sadilek 0fbc8410a4 Closes #16430: ExternalAppBrowserActivity should not handle incoming intents 4 years ago
Mihai Adrian Carare c641ed72dc
For #15764 - Update Tabs summary description. (#16428) 4 years ago
Christian Sadilek 96e2123f86
Update Android Components version to 66.0.20201106143126 (#16439) 4 years ago
Christian Sadilek 4abd399002 Closes #16327: Refactor MenuPresenter to use browser store 4 years ago
Arturo Mejia 50d7792330 For issue #15934 fix ConcurrentModificationException
on WifiConnectionMonitor
4 years ago
Michael Comella afa080c956 For #15279 - review: set LazyMonitored to private. 4 years ago
Michael Comella 090650485f For #15279: remove redundant lazy wrapper from storage APIs.
They're currently lazy { lazy { value } }. Accessing `lazy.value`
directly allows us to make it lazy { value }. This should be more
performant and prevents us from double-counting these components.
4 years ago
Michael Comella 89541a17f7 For #15279: LazyMonitored implement Lazy + update built-in API use.
By having LazyMonitored implement Lazy, we can continue to pass these
values directly into the ac APIs that require Lazy references. For some
reason, implementing `Lazy.value` can replace `operator fun getValue`
required for delegates.
4 years ago
Michael Comella 901c78684c For #15279: replace lazy with lazyMonitored in component groups.
By component groups, I mean I applied this to any class with the
class kdoc, "Component group for...".

There are a few instances of lazy we had to keep using the old API to
avoid having to update constructor arguments.
4 years ago
Michael Comella f37ace0630 For #15279: add LazyMonitored and tests. 4 years ago
Kate Glazko 0ae268914b For #352: Delete a download 4 years ago
ekager c0e01373e1 No issue: Update stable androidx and material versions 4 years ago
Mugurell 88bfaaabe7
For #6521 - Remove auto sigin onboarding card (#16315)
With the Fennec -> Fenix migration complete there is no other Mozilla
application that would serve as a custom account provider hence the automatic
signin would not be possible.
Make this more obvious by commenting out the code that would trigger an
onboarding banner for it but keep the code in the app for when #15694 would add
to Fenix the ability to serve as a custom account provider.
4 years ago
Mugurell 172977f698
For #14980 - Effectively disable tabs tray STATE_HALF_EXPANDED (#16052)
STATE_HALF_EXPANDED cannot be disabled while also keeping fitToContents = true
based on which the tabs tray layout is currently set.
To work around this we'll set a a minuscule height for the tab tray when in
this state and then immediately advance to STATE_HIDDEN so to make it
imperceptible to the users.
Since I couldn't write unit tests because of InflateExceptions in Robolectric
I've written UI tests to protect against regressions.
4 years ago
Mihai Adrian Carare db58022fbb
For #13172 - Tab swipe order follows text direction from oldest to newest (#16178) 4 years ago
Rafał Opiłowski 96fb9f4676
For #12971 - Show collection saved snackbar above FAB (#16311) 4 years ago
Mugurell 34f0c84d46
For #16339 - Initialize FxaAccountManager with also a CrashReporter (#16340) 4 years ago
Sebastian Kaspari baaa85db80 Closes #16256: Introduce build flag for "Mozilla Online" variant.
This patch introduces a build flag that can be used on demand on the command line (`./gradlew -PmozillaOnline [..}`) or
permanently when added to local.properties (`mozillaOnline`).

At runtime `Config.channel.isMozillaOnline` will return `true` if the flag was set at build time.
4 years ago
Michael Comella 2b621fcb1b No issue - review: clarify thread safety of suppressionCount. 4 years ago
Michael Comella bff8a0d6a7 No issue: make StrictMode suppression count thread safe. 4 years ago
Christian Sadilek d7688c8427 For #12062: Switch to consumeFlow and add tests 4 years ago
ekager bd2c407943 For #4652 - Remove activityViewModels workarounds 4 years ago
MarcLeclair 7b1af41b40
15278 detekt rule runblocking (#15942)
* For #15278: added CoroutineManager to count runBlocking calls

* For #15278: Added actual detekt rule for runblocking and its config to the yaml

* For #15278: Added unit test for RunblockingCounter

* For #15278: renamed StrictModeStartupSuppressionCountTest.kt to PerformanceStartupTest.kt and added runBlockingCount test

* Lint fix

* For #15278: made runblocking a Long to prevent overflow

* For #15278: fixed MozRunblocking name, description and moved RunBlockingCounter to perf package

* For #15278:Renamed MozillaRunblockingCheck to MozillaRunBlockingCheck

* For #15278: Added setup for unit test, since it failed without restting counter

* For #15278: Fixed naming for RunBlocking lint check

* For #15278: removed changes made to test to use runBlockingIncrement

* For #15728: added test exclusion for runBlocking check

* For #15278: changed null check and added Synchronized to count setter

* For #15278: fix for nits

* For #15278: added StartupExcessiveResourceUseTest to CODEOWNERS

* For #15278: fixed for nits

* For #15278: Moved increment function to extension function and fixed indentation

* For #15278: Added tests for Atomic Integer extension and nit fix
4 years ago
ekager d46fc7b142 For #6313 - Remove unneeded delay in BrowserAnimator 4 years ago
Roger Yang b65c798450
For #16268 - Allowing multiple task while sharing (#16275) 4 years ago
Jocelyne Abi Haidar 1b204158e5
For #15931: Sort Downloads from newest to oldest (#15939) 4 years ago
mcarare 142d7a418c For #15430: Fix StrictMode death on opening app from widget voice search. 4 years ago
mcarare 5b0bdda974 For #15430: Fix StrictMode death on opening app from widget text search. 4 years ago
Mugurell a6092c34cc For #15963 - Increase touch target for the close button in the tabs tray grid layout
We need to ensure it has at least 48dp while also not appearing too big.
4 years ago
Mugurell 83bd80c873 For #15757 - Avoid the double spacing issues for grid items in tabs tray
Items should have a 16dp all around padding.
Have them have a 8dp padding that will add to 16 when placed together.
Have the parent have another 8dp that will add to 16 for when items are placed
to the edge of the available screen.
4 years ago
Mugurell 0324baef03 For #15968 - Show a border for the selected tab in the grid based tabs tray
The border for the grid item will now be updated in the same method that
updates the background for the list item.
4 years ago
Gabriel Luong 66210469c0
For #9548 - Ability to rename top sites (#16285)
* Ability to rename top sites, closes #9548

* Highlight the "Remove" top site action as destructive

With more menu items in the top site contextual menu, it makes sense to differentiate

* Added test for the top site renaming action

* Fixed lint check (wildcard imports, blank spaces)

* Applied suggestions from code review

* Apply suggestions from code review

Co-authored-by: Gabriel Luong <gabriel.luong@gmail.com>

* Implemented dialog click listener with manual dismiss/cancel

Co-authored-by: Lorenzo Stanco <lorenzo.stanco@gmail.com>
4 years ago
Codrut Topliceanu 975a5b76ec
For #14637 - Fix sitePermissionsFeature breaking change + AC bump (#16229)
* For #14637 - Compatibility patch for AC - 8554

* Update Android Components version to 65.0.20201029143039

Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>
4 years ago
mcarare 3cb2c83980 For #16250: Disable remote USB debugging for SDK <23. 4 years ago
Mihai Adrian Carare 0ee7e1c28d
For # 15929: Remove the search widget discoverability experiment. (#16081)
* For #15929: Remove SearchWidgetCFR telemetry.

* For #15929: Remove SearchWidgetCFR and search widget experiment.

* For #15929: Remove unit tests references to search widget experiment.
4 years ago
mcarare 9748c65c71 For #15413: Use proper url when bookmarking a page. 4 years ago
Arturo Mejia bb7d821804 Fix AddonsManagementFragment detekt error 4 years ago
Christian Sadilek c330426bb7 No issue: Fix onConfigurationChange crashes in Debug build 4 years ago
Christian Sadilek 601aa19176 Closes #11285: Replace Session[Manager] observers in BaseBrowserFragment 4 years ago
Grisha Kruglov 655a5cbf54 Closes #15816 - Attempt to handle 'allowInPrivate..' pref with detached context 4 years ago
mcarare 21a67de947 For #15379: Use proper url when sharing. 4 years ago
ekager 9b2162fca2 For #16199 - Don't pass BrowserToolbarView in onStart when we just need parent 4 years ago
Arturo Mejia 0ae0b89d65 Fix add-on translation braking changes 4 years ago
ekager e15f50712a For #6313 - Set session ClearColor through Engine DefaultSettings 4 years ago
Jocelyne Abi Haidar f514f6099a
For #15508: Show error when trying to save empty or invalid bookmark URL (#15674) 4 years ago
Mugurell 358ca2c87f
For #15543 - Adjust the height of the tabs tray depending on the number of tabs (#15749) 4 years ago
ekager aae43b84eb
For #12062 - Feature Flag return to browser (#16099) 4 years ago
ekager 6b8f2001df
For #16084 - Match elevation of Tab in Collection to header (#16100) 4 years ago
ekager d5cb9c599c
For #15910 - Adds back automatic toggle, disables slider when enabled (#16070) 4 years ago
mcarare 1a10215caf For #14619: Show half a tab top offset when scrolling to selected tab. 4 years ago
Mugurell 57462d612f
For #16054 - Enable pull to refresh webpage in Nightly and Debug (#16060) 4 years ago
Elise Richards 7e3c26914c
For #15080: Handle default search engine when editing or removing (#15768) 4 years ago