Commit Graph

5089 Commits

Author SHA1 Message Date
Michael Comella
993428cd0f For #17969: add duration probes for App.onCreate and HomeActivity.onCreate. 2021-02-19 13:20:34 -08:00
Mugurell
6e0a64897b For #17899 - Expand toolbar when returning from fullscreen video
This was the previous behavior for both the top and bottom toolbars.
Regressed when changing to use a new custom behavior for the top toolbar.

When entering fullscreen we will now collapse and hide the toolbar, allow the
browser to expand to the entire screen estate and then, when exiting fullscreen
expand the toolbar.
Collapsing and then expanding the toolbar will trigger the
EngineViewBrowserToolbarBehavior to place the browser below the toolbar.
2021-02-19 17:46:49 +02:00
Roger Yang
64f32b9d95
Closes #17089: Add metric to track both normal and private URI opened (#17935) 2021-02-19 10:37:07 -05:00
Sebastian Kaspari
a2566f9e9e Issue #12731: Collect telemetry about the content process of tabs getting killed. 2021-02-19 11:32:56 +01:00
Sebastian Kaspari
fc80dbfb57 Update Kotlin to 1.4.30 and Coroutines to 1.4.2. 2021-02-19 11:31:15 +01:00
Mozilla L10n Automation Bot
666833c2e5 Import l10n. 2021-02-19 00:31:43 +00:00
Arturo Mejia
21d10aa931 Update toolbar autoplay strings 2021-02-18 16:40:43 -05:00
Christian Sadilek
e07f4ac590 Deprecate SessionManager component 2021-02-18 14:28:28 -05:00
Christian Sadilek
2d87307144 Remove remaining usages of Session[Manager] in BrowserFragment 2021-02-18 14:28:28 -05:00
Christian Sadilek
c9b8f57f96 Refactor BrowserToolbarMenuController to use browser store 2021-02-18 14:28:28 -05:00
Arturo Mejia
b6ac5079b2 For issue #18049 Download complete dialog is not showing in custom tab. 2021-02-18 12:43:52 -05:00
Victor
2193be27b2 Solves Leaks on SavedLoginFragment
disables options menu to avoid leak
 removes on click listener to avoid leak
2021-02-18 19:00:44 +02:00
Sebastian Kaspari
9b65e63422 Closes #18006: DefaultSessionControlControllerTest: Correctly unmock SearchStateKt class.
The test class left SearchStateKt mocked and caused other tests to fail intermittently when
running after it.
2021-02-18 15:49:31 +01:00
mcarare
af9c32983f For #17807: Fix systemWindowInset deprecation. 2021-02-18 09:14:53 -05:00
Oana Horvath
d7f1117e17 For #16317 UI tests: save longTap preference to restore it 2021-02-18 13:46:09 +02:00
Mozilla L10n Automation Bot
7e70eccca0 Import l10n. 2021-02-18 00:36:55 +00:00
Ryan Kelly
56914cd42d Reset experiment telemetry identifiers on data prefs change.
When the user opts out of telemetry, we need to reset the user identifiers
used by the experiment system, so that there's no risk of tracking the
user across the reset event if they later decide to re-enable telemetry.
2021-02-17 16:07:57 -05:00
Oana Horvath
4e4bbcc334 For #16317: resets long press delay at the end of UI tests 2021-02-17 16:39:44 +02:00
Mozilla L10n Automation Bot
dfc5628ca1 Import l10n. 2021-02-17 00:39:54 +00:00
Jan-Erik Rediger
3e9ab1b150 Glean: Check for renamed reason 2021-02-16 16:32:14 -05:00
Mugurell
611ff8f25b For #17195 - Don't try setting an idle resource if the View is already off screen
Speculative fix based on the Firebase logs which shows that on a second check
of R.id.tab_wrapper it is not found the screen.
It may be because after `advanceToHalfExpandedState` and before getting a
reference to it in `waitForTabTrayBehaviorToIdle` it was already animated off
the screen.
With this in mind I've added a null check for the view reference before trying
to register an idling resource on it's Behavior.

Also added and used a way to click at a specific location in a View, not just
in the default middle in the View.
It was observed from the Firebase videos that a "click" on the topBar actually
selected the private tabs section. This would leave us to believe that the
"click" was caught by that other View which was placed above the x,y middle of
the topBar.
2021-02-16 16:26:17 +02:00
Mugurell
32493491fa For #17195 - Test a potential fix for the test 2021-02-16 16:26:17 +02:00
Oana Horvath
23cc3522aa For #17484, #18003 UI tests: retry closing tab if it fails 2021-02-16 14:28:26 +02:00
Mozilla L10n Automation Bot
f5cb3a9920 Import l10n. 2021-02-16 00:29:18 +00:00
Christian Sadilek
5a5cf9cd12 Refactor BrowserToolbarController to use browser store 2021-02-15 15:01:29 +01:00
Codrut Topliceanu
ec54397637
For #17352 - Fixes deleted downloads reappearing (#17930)
* For #17352 - Fixes deleted downloads reappearing

The `getDeleteDownloadItemsOperation` job would check fragment context not null after the fragment was stopped. Removing that check and only passing the downloadUseCase as a parameter fixes the problem.
2021-02-15 11:22:09 +02:00
Mozilla L10n Automation Bot
9fee349600 Import l10n. 2021-02-15 00:40:59 +00:00
Mozilla L10n Automation Bot
ed0a188e7e Import l10n. 2021-02-14 00:36:56 +00:00
Mozilla L10n Automation Bot
3c54562504 Import l10n. 2021-02-13 01:55:06 +00:00
Elise Richards
bab7693b9d
Remove unneeded temporary UI test ignores (#17980) 2021-02-12 17:01:38 -06:00
Mugurell
3311e68d14 For #17686 - Use a custom behavior to scroll InfoBanner with the top toolbar
Previously when the toolbar was on top the banner was inflated in the toolbar's parent - an AppBarLayout.
After migrating to use a custom behavior for scrolling the toolbar and not use
anymore the AppbarLayout for this we needed a new solution.
Using a new behavior to keep this banner in sync with the y translation of the
toolbar gives us most of the old behavior back.
2021-02-12 16:05:19 +02:00
Elise Richards
d0fd3e82c5
For #17771: three-dot menu reorder (#17838)
* Feature flag for toolbar menu redesign. Add new items to menu and reorder.

* Handle toolbar items in menu controller

* Menu controller tests

* Make icons invisible

* Lint

* UI tests reflect design change

* Refactor test names

* Lint fixes

* UI tests
2021-02-11 18:55:12 -06:00
Mozilla L10n Automation Bot
eabde04679 Import l10n. 2021-02-12 00:24:31 +00:00
Michael Comella
b41041c739 For #17920: move manufacturer StrictMode exception to ignores function.
I think this is more consistent and centralizes the violation ignores.
2021-02-11 15:22:50 -08:00
Michael Comella
5cb296b098 For #17920: use StrictMode penaltyDeathWithIgnores. 2021-02-11 15:22:50 -08:00
Michael Comella
a86b4ef1bd For 17920: add ThreadPenaltyDeathWithIgnoresListener, tests, helpers. 2021-02-11 15:22:50 -08:00
Michael Comella
e9e067615a For #17920: add ManufacturerCodes. 2021-02-11 15:22:50 -08:00
Michael Comella
2e45483eb0 For #17816: add ProfilerFactProcessor and register it, tests. 2021-02-11 14:52:36 -08:00
Mugurell
41f9388380 For #17803 - Use the main looper for Handler()s
This was already the one inferred.
Targeting Android 11 means we need to pass it explicitly.
2021-02-11 19:42:33 +02:00
Codrut Topliceanu
d56b4a2b92
For #17418 - Added telemetry for Google Default Top Site (#17637)
* For #17418 - Adds channel "ts" to TrackKey

This is used to track if the `InContentTelemetry` is a result of the user using the Google Top Site. It looks for `&channel=ts` within the uri.

* For #17418 - Adds TopSite PerformedSearch back in

* For #17418 - Check now looks for equality with GOOGLE_URL

* For #17418 - Adds test for topSite changes
2021-02-11 11:31:01 -05:00
Mozilla L10n Automation Bot
9d07b7ae03 Import l10n. 2021-02-11 09:45:42 +00:00
Sebastian Kaspari
a3b556aa35 ToolbarIntegration: Use global public suffix list instance. 2021-02-11 09:33:40 +02:00
Roger Yang
8dfa4525ca
Fix OpenSpecificTabIntentProcessorTest to remove AbstractMediaService (#17955) 2021-02-10 13:33:39 -05:00
Sebastian Kaspari
f4f5e4b663 Issue #17174: Remove usage of old media APIs. 2021-02-10 16:42:58 +01:00
Christian Sadilek
88facc4608 Closes #17889: Wrong tab selected/reloaded when restored from collection 2021-02-10 10:46:13 +01:00
Mozilla L10n Automation Bot
ca57a132c7 Import l10n. 2021-02-10 00:29:59 +00:00
ekager
08a1e0f728 For #17906 - Allow screenshots for private home screenshot test 2021-02-09 12:52:46 -07:00
Oana Horvath
a98b40896d For #15259 UI test: waits for home screen to be visible 2021-02-09 17:22:24 +02:00
AndiAJ
e31b4f49e9 For #17195 Fix Intermittent UI test verifyTabTrayNotShowingStateHalfExpanded 2021-02-09 16:46:31 +02:00
AndiAJ
e0c70582b8 For #17852 Change and Fix Intermittent UI test openNewTabTest 2021-02-09 16:43:56 +02:00
Michael Comella
b3ef8a11e8 For #17816: add profiler marker for onPreDraw via HomeActivity.onStart.
This may be useful for MAIN start up to determine when the user begins
seeing content.
2021-02-08 17:46:32 -08:00
Michael Comella
4de49c7585 For #17816: add profiler marker for 2x Activity.onCreate.
The IntentReceiverActivity one is particularly useful to quickly determine
when we can begin executing code in the WARM VIEW case (i.e. "Set selection
begin here").

The HomeActivity one is useful for COLD start up analysis in similar
ways and to see the Activity transitions in WARM VIEW.
2021-02-08 17:46:32 -08:00
Mozilla L10n Automation Bot
4084664d30 Import l10n. 2021-02-09 00:42:20 +00:00
ekager
5e9fb855f5 For #17915 - Do not launch system settings on Role Request Intent cancel 2021-02-08 09:56:38 -07:00
AndiAJ
46888cc70f For #14523 Fix Intermittent tests verifyContextOpenLinkNewTab & verifyContextOpenLinkPrivateTab 2021-02-08 18:15:14 +02:00
Oana Horvath
c6bf949a03 For #17847: Removes editCustomSearchEngineTest UI test 2021-02-08 17:47:05 +02:00
Mozilla L10n Automation Bot
e24580f0b7 Import l10n. 2021-02-08 00:34:20 +00:00
Arturo Mejia
3a1d56d7c8 For #17817 Change the feature prompt references from fragment to activity. 2021-02-07 08:10:57 -05:00
Mozilla L10n Automation Bot
b057dead45 Import l10n. 2021-02-07 00:39:01 +00:00
Abhinav Gupta
13f5df33a1 Hiding the usernameview if the data item.username is blank. 2021-02-06 13:20:22 -07:00
ekager
f6455b0148
Closes #17871 - use viewLifecycleOwner for TopSitesFeature owner on HomeFragment (#17873) 2021-02-05 19:47:25 -05:00
Mozilla L10n Automation Bot
dc8c88fa50 Import l10n. 2021-02-06 00:25:11 +00:00
Roger Yang
993cf74e72
Closes #17174: Remove the New Media Session API Feature Flag (#17863) 2021-02-05 18:54:37 -05:00
ekager
0defc54449 Closes #13089 - Adds correct animations for account settings 2021-02-05 14:03:18 -07:00
ekager
f5b068a453 For #17785 - Use screenshots setting when adding secure flag 2021-02-05 13:17:47 -07:00
jhugman
1ef4102e13
Fixes #17738 - Early initialization of Nimbus (#17834) r=christian 2021-02-05 18:54:47 +00:00
Mugurell
8bf1cae2ca For #10686 - Use the AC custom behavior for both the top and bottom toolbars
This comes to unify the experience (with improvements but also specific issues)
for the url toolbar irrespective of it being placed at the bottom or at the top
Going further this will ease development and ensure the best UX for users.
2021-02-05 18:23:32 +01:00
Gabriel Luong
a3d401a3b7
For #17418 - Add event ping telemetry for the Google Top Site click (#17862)
Co-authored-by: codrut.topliceanu <codrut.topliceanu@softvision.ro>
Co-authored-by: Gabriel Luong <gabriel.luong@gmail.com>
2021-02-05 12:06:32 -05:00
jhugman
0b764fd3e4
Fixes #17833 - increment A/A experiment id (#17835) r=christian 2021-02-05 16:41:46 +00:00
Christian Sadilek
50e66b469d Remove SessionManager reference from FenixApplication 2021-02-05 14:16:35 +01:00
Oana Horvath
f0b7b3b987 For #17847: disables editCustomSearchEngineTest 2021-02-05 11:11:33 +02:00
MickeyMoz
378e68f3a6 Update Android Components version to 73.0.20210204143136. 2021-02-04 18:21:26 +01:00
Andrei Joltan
936966596a
For #16020 Fix Intermittent tests caused by the Menu Button (#17829) 2021-02-04 11:42:58 -05:00
Oana Horvath
9783930ac5 For #16615: UI smoke test customTrackingProtectionSettingsTest 2021-02-04 12:17:23 +02:00
AndiAJ
a4a2a59b7d For #12895 Fix Intermittent test navigateBookmarksFoldersTest 2021-02-04 10:06:39 +02:00
hwinnemo
c488bb0e11 For #17724: Wait for tab to be fully created before showing ETP Onboarding if ETP is active 2021-02-03 17:24:23 -07:00
Sebastian Kaspari
f4a7b4c066 Remove TabsUseCases methods that take a Session object. 2021-02-03 15:16:39 -05:00
Grisha Kruglov
3ce9bf93bc Exclude separators from the bookmarks UI 2021-02-03 11:09:01 -08:00
Grisha Kruglov
ebca575e26 Reuse helper functions in bookmark tests 2021-02-03 11:09:01 -08:00
Mugurell
40fc9c1085 For #12414 - Support sharing images through ShareDownloadFeature
Register a ViewBoundFeatureWrapper<ShareDownloadFeature> that will respond to
"Share image" from the browser contextual menu
2021-02-03 18:35:20 +02:00
Michael Droettboom
fedc2e1187 Update bug numbers to URLs for activation ping
Earlier versions of Glean supported bug numbers of the metadata, but this causes
ambiguity, particularly for Fenix where issues exist in both Bugzilla and
Github. This just updates the Bugzilla numbers to full URLs.

We made the use of numbers an error sometime ago, but neglected to enforce this
on "pings" in addition to "metrics".  A future version of `glean_parser` [1] will make
this an error and this will set Fenix up to be ready for that.

[1] https://github.com/mozilla/glean_parser/pull/262
2021-02-03 09:45:28 -05:00
mcarare
994ec4d55a For #17364: Make hint scrollable and do not overlap other elements. 2021-02-03 14:54:03 +02:00
mcarare
d7ad203544 For #17364: Do not show search suggestion hint before starting to type. 2021-02-03 14:54:03 +02:00
rxu
542071a344 Add mozcn safebrowsing for release variant 2021-02-03 10:35:32 +01:00
Christian Sadilek
e76445b299 Refactor WebAppSiteControlsBuilder to use browser store 2021-02-03 10:16:06 +01:00
Mozilla L10n Automation Bot
dca0cb8c10 Import l10n. 2021-02-03 00:27:35 +00:00
Christian Sadilek
3dc638700f Refactor tryReloadTabBy to use browser store 2021-02-02 17:13:13 -05:00
Sebastian Kaspari
28c105dcb3 Remove SessionManager dependency from CustomTabsIntegration. 2021-02-02 14:17:46 -05:00
Elise Richards
854a5e676f
Increase date on expired metrics (#17766) 2021-02-02 12:27:10 -06:00
Arturo Mejia
e3b6f060ae For #12822 - Opt-in of scoped storage 2021-02-02 12:58:44 -05:00
Jonathan Almeida
824f3fd821 Issue #1340: Forward Activity results to the fragment 2021-02-02 19:46:20 +04:00
Oana Horvath
f180d932c8 For #16959: verify page url not content in swipeToSwitchTabTest 2021-02-02 15:19:00 +02:00
AndiAJ
c8c0131d00 Go Forward Test Fix 2021-02-02 10:23:29 +02:00
AndiAJ
5eb1a3d210 For #17641 Fix Intermittent test addPredefinedSearchEngineTest 2021-02-02 10:23:22 +02:00
AndiAJ
23e6f7aa91 For #16615: UI Smoke Tests for Tab Crash Reporter 2021-02-02 10:23:04 +02:00
Mozilla L10n Automation Bot
4c2a4f4d2e Import l10n. 2021-02-02 01:48:13 +00:00
jhugman
72f977771d
Re-enable Nimbus with Off the main thread I/O and non-blocking networking (#17684)
* Moved Nimbus setup from Analytics to its own file

* Change experiment identifiers to fit new run of the experiment

* Re-enable nimbus for debug and nightly builds

* ./gradlew ktlint && detekt
2021-02-01 23:50:07 +00:00
Christian Sadilek
d8085480ad Increase AMO collection cache timeout to 2 days 2021-02-01 17:08:34 -05:00
Michael Comella
cdc008f6a3 For #17553: renew storage.stats metrics. 2021-02-01 16:33:08 -05:00
Christian Sadilek
89ad370eb2 Remove SessionManager references from UI tests 2021-02-01 10:58:46 -05:00