Commit Graph

2444 Commits

Author SHA1 Message Date
mcarare
f6a66562dd For #4487 Set activity title only once in Bookmark fragment
Removed label from nav_graph that caused label to be set for each navigation
Removed title setting in onCreate() called for each navigation
Changed logic for checking current root when setting UI for normal mode
2019-11-12 08:21:53 -08:00
Arturo Mejia
0275ca0693 No issue: Do not prevent trackers duplication in the tracking
protection panel.
2019-11-12 08:15:30 -08:00
mcarare
13637c59a2 For #6543 Hide keyboard when saving a new bookmarks folder 2019-11-12 08:09:55 -08:00
Severin Rudie
f0468f8099
For #4281: fixed metrics.yaml for QAB removal (#6555) 2019-11-11 18:01:22 -08:00
Severin Rudie
6909a76bcb
4281 remove qab (#6310)
* For #4281: small ToolbarMenu refactor

This makes it easier to see how items are ordered in the menuItems list

* For 4281: add QAB buttons to menu

* For 4281: removed menu back button per mocks

I double checked with UX, and we'll be relying on the hardware back button for its functionality

* For 4281: add content descriptions for bookmarking

* For 4281: updated BrowserToolbarController for new functionality

* For 4281: provided simple dependencies to browser controller

More complex changes will be in a following commit, for review readability

* For 4281: move toolbar controller dependencies up to BaseBrowserFragment

The functionality they control is being moved into the toolbar menu, which is shared by both normal tabs and custom ones

* For 4281: removed (now unused) code related to QAB

* For 4281: fix test compilation after QAB removal

Tests still need to be expanded to include added functionality

* For 4281: updated menu to show if url is bookmarked

This sloppy workaround is required because TwoStateButton requires that `isInPrimaryState` be a synchronous call, and checking whether or not the current site is bookmarked is quite slow (10-50 MS, in my tests).  After days of work and many attempted solutions, this was the least abhorrent among them.

https://github.com/mozilla-mobile/android-components/issues/4915 was opened against AC to evaluate potentially supporting async `isInPrimaryState` functions.
https://github.com/mozilla-mobile/fenix/issues/6370 was opened against Fenix to investigate the unexpectedly slow call to `BookmarkStorage`.

* For 4281: update reader mode switch

* For 4281: selectively show/hide menu items

* For 4281: add reader mode appearance

* For 4281: update bookmark button when it is clicked

* For 4281: removed unused QAB code

* For 4281: removed QAB robot, updated UI tests

* For 4281: removed QuickActionSheet metrics

Since this behavior now lives in the toolbar, it is tracked via Event.BrowserMenuItemTapped

* For 4281: fixed lint errors

* For 4281: add new strings for buttons added to menu

This is necessary because the location change (from QAB to toolbar menu) could affect the grammar in some languages

* For 4281: remove outdated TODOs

* For 4281: removed QAB container

* For 4281: removed back button reference from UI test

This button no longer exists

* For 4821: Fixes a visual defect (extra padding on top of toolbar)

* For 4281: update copy on reader mode

* For 4281: fixed review nits
2019-11-11 17:10:14 -08:00
mcarare
11ad1010a9 For #6323 Creating 1st collection from tab shows Name collection screen
Added a check for existence of at least a collection to select from.
2019-11-11 14:36:55 -08:00
Sawyer Blatz
d6aeeb2dec
For #5958: Adds in app download notifications (#6506) 2019-11-11 14:08:51 -08:00
Mihai Tabara
18bfe8c97a Point taskgraph to tip of the repo 2019-11-11 18:20:06 +01:00
Mitchell Hentges
8e409cbb4e Uses scriptworker-k8s scriptworkers 2019-11-11 18:20:06 +01:00
Mihai Tabara
64c25eed45 Adjust the URL 2019-11-11 17:40:20 +01:00
Mozilla L10n Automation Bot
79a9722e76 Import l10n. 2019-11-08 14:44:57 -08:00
Mihai Adrian
1388156953 For #1211 Hide the keyboard when scrolling through engine suggestions (#6474) 2019-11-08 14:36:39 -08:00
Tiger Oakes
f476c624d7 For #6255 - Fix beta icon filenames (#6407) 2019-11-08 14:11:32 -08:00
Mitchell Hentges
7b90a5bf55 Switch to aws-provider worker types (#6501) 2019-11-08 14:09:30 -08:00
RAJESH KUMAR ARUMUGAM
6ee59322b5 Added Vibration Effect On Scanning QR Code (#6129)
* Added Vibration Effect On Scanning QR Code

Added Vibration Feature for the new feature Request
Vibrate phone upon successful pairing #2928

* Added Vibration Effect On Scanning QR Code

Added Vibration Feature for the new feature Request
Vibrate phone upon successful pairing #2928

* Update PairFragment.kt

Removed unwanted blank lines

* Update PairFragment.kt

Removed the Casting with !!
2019-11-08 13:37:36 -08:00
Emily Kager
d9615108ee For #6354 - Removes ETP Experiment, Removes Feature Flags, Sets Strict Default 2019-11-08 08:37:15 -08:00
mcarare
1ff5a1934e For #5709 Do not animate switch for ETP panel 2019-11-08 08:36:30 -08:00
ValentinTimisica
e1f3611fdd Fixes #6408: Pop stack to homeFragment when opening bookmarks from homeFragment
When bookmark fragment is opened from homeFragment, libraryFragment does not
exists so the popBackStack(R.id.libraryFragment, true) would have failed. So
the solution for this was to pop back stack to homeFragment when the
bookmarks/history fragments are opened from homeFragment.
2019-11-07 16:00:48 -08:00
Grisha Kruglov
40047315c2 For #6490 - track abnormal FxA behaviour via Sentry 2019-11-07 15:11:41 -08:00
Emily Kager
b1623cbba6 Fix components, core tests 2019-11-07 14:50:24 -08:00
Emily Kager
ef7a23c875 Adds webAppShortcutManager argument 2019-11-07 14:50:24 -08:00
Tiger Oakes
afda836f1f Use ManifestUpdateFeature 2019-11-07 14:50:24 -08:00
Sawyer Blatz
4183dea591 For #5547: Reuse biometricPrompt when authenticating
This fixes an issue with Samsung devices where an invisible DeviceCredentialHandler because the executor was "null" (it wasn't actually)

You *must* reuse the biometric object instead of creating a new one.
2019-11-07 13:45:41 -08:00
Emily Kager
3e2b88cc91 For #5547 - Add top level auth when accessing passwords 2019-11-07 13:45:41 -08:00
Shangeeth Sivan
218763f9be For #4556: Removed redundant code in few tests. (#6367)
* Moved some values as member variables as having them declared separately in methods seemed redundant.

* Added @Before method in logtest to avoid code duplication Fixes #4556

* Added @Before method to FragmentTest class Fixes #4556

* variable renamed and added private access specifier; removed set from member variable as it is used only once and we can convert the list to set when needed

* Fixes linter errors
2019-11-07 13:20:51 -08:00
Sawyer Blatz
284f3cf0f5 For #4456: Updates total_uri_count upload (#6482) 2019-11-06 19:10:56 -08:00
Grisha Kruglov
0a05d40ee0 Migrate FxA state 2019-11-06 14:29:24 -08:00
Mihai Branescu
8f50e2af5d For #6269 Rtl-wrong-search-positioning (#6400)
* For #6269
- Added start/end margin for rtl support in shortcuts label

* For #6269
- Refactored search fragment xml, extracted dimens + added styles
2019-11-06 11:54:43 -08:00
Sawyer Blatz
a4ad2116ae
For #6390: Fixes textColor on download prompt (#6468) 2019-11-06 11:10:17 -08:00
Sawyer Blatz
0d5fb67303 For #6284: Fixes SearchShortcut button functionality when in a session
This makes it so searchShortcuts button works when going from browser -> search
2019-11-06 11:08:41 -08:00
Mihai Branescu
2b955c1a1a For #6087
- added engine hashmap so that we create each type of search provider once
(previously the providers to be added were checked by id, but since the id
is a UUID, it was always unique -> bug with multiple providers with same engine
but different id
- refactored update() flow so that it's more understandable + remove complex
method warning
2019-11-06 11:08:41 -08:00
Emily Kager
b160f6ce79 No issue: Update to AC 21 SNAPSHOT (#6466) 2019-11-06 10:31:43 -08:00
Mozilla L10n Automation Bot
7ab6b64dcc Import l10n. 2019-11-06 09:34:26 -08:00
ekager
18c0525ff6 Use new API for ETP Exceptions 2019-11-05 12:45:58 -08:00
Emily Kager
ca8ba57635 For #6441: Fix variant build type matching (#6462) 2019-11-05 12:28:14 -08:00
mozilla-l10n-automation-bot
eabf206588 Import l10n. (#6414) 2019-11-05 09:44:23 -08:00
Emily Kager
cf8cab8eb1 No issue: Ignore rest of HistoryTest tests (#6450) 2019-11-05 08:53:07 -08:00
Emily Kager
1ee0703bc3 For #6441 - Only enable experiments for Beta/Prod 2019-11-04 16:45:35 -08:00
Richard Pappalardo
fa780f6790
Temp disable all History UI tests (#6443) 2019-11-04 15:25:29 -08:00
Emily Kager
52ad5dafe2 Closes #6369 - Use padding set from style for protection settings 2019-11-04 10:25:15 -08:00
Jeffrey Starke
f1d52ce2da Use vector compat in TrackingProtectionPanelView (#6376) 2019-11-04 10:04:02 -08:00
Richard Pappalardo
01b4213b2a Temp disable flaky deleteMultipleSelectionTest (#6405)
* Temp disable flaky deleteMultipleSelectionTest

* Fix indentation
2019-11-04 09:44:44 -08:00
Christian Sadilek
b3d62094cc Upgrade Mozilla Application Services to 0.42.2 2019-11-02 19:31:40 -04:00
liuche
35d60130f2
Closes #6097 - Bump activation ping expiry date. (#6309) 2019-11-01 14:06:44 -07:00
Christian Sadilek
a7e139da8e Use new WindowFeature API after browser-state migration 2019-11-01 15:52:37 -04:00
Mugurell
c5739df969 For #4126 - Add tests for the new classes resulting from refactoring
Used runBlocking to ensure we wait for the code using coroutines to execute
instead of runBlockingTest and join() since this last option led to failed
tests in CI because of
"java.lang.IllegalStateException: This job has not completed yet".
2019-10-31 17:08:40 -07:00
Mugurell
9f56624788 For #4126 - Document the newly introduced public APIs
Now that the code should be in a ready-to-ship form it would be nice to have
all the major functionalities properly documented.
2019-10-31 17:08:40 -07:00
Mugurell
d70afcaa90 For #4126 - Handle all business logic with Interactors and a Controller
Combined all Stores into one for all Views shown in on Fragment.
Used a static `createStore()` which will build the initial state residing
inside the Store and not in the Fragment as to decouple the Fragment from the
business logic needed to build all the needed initial States.
Added Interactors that handle a MVI View's business logic for
TrackingProtectionView and WebsitePermissionsView.
WebsiteInfoView doesn't register any user input events and does not have any
reason to change while it is displayed so it does not have an Interactor.
The two Interactors will delegate Fragment's QuickSettingsController for
complex Android interactions, communication with other app features or for
Store updates.
Also refactored the stubs from the previous commit so that with this commit the
the quicksettings feature should all be working now based on lib-state.
2019-10-31 17:08:40 -07:00
Mugurell
f1f74bc3d6 For #4126 - Refactor Views and layouts
Refactored `fragment_quick_settings_dialog_sheet` to now be composed of of
FrameLayouts placeholders in which each independent View will inflate itself.
Refactored the QuickSettingsUIView and Component to 3 standalone Views with
their own lib-state components: Store, State, Actions, Reducer.
2019-10-31 17:08:40 -07:00
mozilla-l10n-automation-bot
5cca5d7a70 Import strings from android-l10n (#6359) 2019-10-31 17:02:17 -07:00