2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00
Commit Graph

4476 Commits

Author SHA1 Message Date
Michael Comella
d253b9060e [fenix] For https://github.com/mozilla-mobile/fenix/issues/13959: add test to prevent increasing StrictMode suppression count. 2020-10-06 14:11:53 -07:00
Michael Comella
3e9f93a0ab [fenix] For https://github.com/mozilla-mobile/fenix/issues/13959: add HomeActivityTestRule.skipOnboarding.
This is more correct, faster, and results in less copy-paste duplication
than the current behavior:
  homeScreen { }.dismissOnboarding()

Which opens settings to dismiss onboarding.
2020-10-06 14:11:53 -07:00
Michael Comella
b6609a0747 [fenix] For https://github.com/mozilla-mobile/fenix/issues/13959: count StrictMode suppressions on startup. 2020-10-06 14:11:53 -07:00
Jocelyne Abi Haidar
efc846d57a [fenix] For https://github.com/mozilla-mobile/fenix/issues/15675: Disable Save button when editing saved login until something has been changed
set save button state by calling invalidateOptionsMenu, causing onPrepareOptionsMenu to be called which will enable/disable the save button depending on if changes have been made or not
2020-10-06 11:47:12 +03:00
mozilla-l10n-automation-bot
1d8006f733 [fenix] Import l10n. (https://github.com/mozilla-mobile/fenix/pull/15712) 2020-10-05 18:08:06 -07:00
Mozilla L10n Automation Bot
ded58ad2b7 [fenix] Import l10n. 2020-10-05 12:19:48 +02:00
mcarare
8668f5a0d6 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15632: Improve checking open tabs logic to show collection button.
Check now considers selected tab tray mode.
2020-10-02 20:46:29 -04:00
ekager
c5a6e86f9b [fenix] For https://github.com/mozilla-mobile/fenix/issues/15600 - Move removal of timed out sessions to immediately after restoration 2020-10-02 13:22:49 -07:00
ekager
d9aefd1ce2 [fenix] No issue: Update biometric, core, and recyclerview libraries 2020-10-02 08:47:40 -07:00
mcarare
1add1c7454 [fenix] For https://github.com/mozilla-mobile/fenix/issues/13031: Show size in KB for smaller downloaded files. 2020-10-02 11:04:48 -04:00
Mozilla L10n Automation Bot
c318e736f9 [fenix] Import l10n. 2020-10-01 17:46:57 -07:00
Jocelyne
cc4d4a14d9 [fenix] For https://github.com/mozilla-mobile/fenix/issues/10107: Show Today and Yesterday labels in History (https://github.com/mozilla-mobile/fenix/pull/15415) 2020-10-01 16:42:50 -07:00
Michael Comella
e1ffe1108f [fenix] No issue: replace LintUnitTestRunner with detekt implementation.
This should be more performant and easier to maintain.
2020-10-01 16:06:53 -07:00
Jeff Boek
d81eff94bd [fenix] For https://github.com/mozilla-mobile/fenix/issues/15593 - Reverts back to simple UUID creation without Fenix side caching 2020-10-01 15:51:30 -07:00
Jocelyne
635e49092e [fenix] For https://github.com/mozilla-mobile/fenix/issues/15471: Show Delete button in red in multi-select overflow menu (https://github.com/mozilla-mobile/fenix/pull/15576) 2020-10-01 13:10:33 -07:00
Mozilla L10n Automation Bot
482efed8de [fenix] Import l10n. 2020-10-01 20:13:40 +02:00
Grisha Kruglov
a41022554b [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/15443: Use fragment's lifecycleScope for AlertDialog actions 2020-09-30 17:42:40 -07:00
Christian Sadilek
33e49d471b [fenix] Issue https://github.com/mozilla-mobile/fenix/issues/15555: Set channel to Nightly explicitly for SettingsFragmentTest 2020-09-30 18:35:20 -04:00
mcarare
1589942479 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15559: Allow tabs to stretch in landscape mode for tablets.
This overrides the default tabMaxWidth of 264dp to allow for tabGravity="fill".
2020-09-30 14:46:22 -07:00
Christian Sadilek
a846743af4 [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/15555: Intermittent failures in SettingsFragmentTest 2020-09-30 14:53:18 -04:00
Stefan Arentz
a0c00cb3b4 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15537 - Be more verbose about leanplum identifiers (https://github.com/mozilla-mobile/fenix/pull/15538) 2020-09-30 13:05:28 -04:00
mcarare
192e5dc063 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15535: hasOpenTabs now considers the selected tab mode in tray tab. 2020-09-30 08:33:38 -07:00
Michael Comella
af732f0748 [fenix] No issue: elaborate on Components class doc.
This is to clarify a misunderstanding I found in PR review.
2020-09-29 15:39:10 -07:00
Sebastian Kaspari
70dbf0d765 [fenix] Revert "For https://github.com/mozilla-mobile/fenix/issues/12565: Pass metrics to share controller" for debug test failures.
This reverts commit 5de145914e9fc10d3d647e6f2856c2df19dd9156.
2020-09-29 10:59:31 +02:00
Sebastian Kaspari
9b598b33d8 [fenix] Revert "For https://github.com/mozilla-mobile/fenix/issues/12565: Pass bookmark storage to controller" for debug test failures.
This reverts commit 9825a5d2dfb0f6d3c0235fdf0032e510c34bf20a.
2020-09-29 10:59:17 +02:00
Andrew Gaul
43778cf3cb [fenix] Show undo snackbars with padding with static bottom toolbar
This specifically fixes the close tab snackbar.  This commit mirrors
the logic when not using Undo from
e14bf8e791aa56ded47812018f32ee9801a5b4f9.  References https://github.com/mozilla-mobile/fenix/issues/14982.
2020-09-29 10:15:30 +02:00
ekager
1429c5ddaf [fenix] For https://github.com/mozilla-mobile/fenix/issues/15324 - Show tab settings and recently closed items in menu when no tabs 2020-09-28 21:09:30 -07:00
ekager
8caf149ab7 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15503 - Change recently closed max to 10 2020-09-29 00:03:49 -04:00
TrianguloY
98f8f3b2ca [fenix] For https://github.com/mozilla-mobile/fenix/issues/13856 - Prevent overscroll in swipe to switch tabs gesture 2020-09-28 20:43:44 -07:00
Tiger Oakes
5a3b5af7d9 [fenix] Extract locale settings initial state 2020-09-28 20:39:49 -07:00
Tiger Oakes
be11bfd5b4 [fenix] Add test for initial logins list state 2020-09-28 20:39:49 -07:00
Tiger Oakes
e4bdd355d3 [fenix] Add tests for initial collection creation state 2020-09-28 20:39:49 -07:00
Sören Hentzschel
ac1a2a708a [fenix] For https://github.com/mozilla-mobile/fenix/issues/11561 - changed inactive heading and menu icon color in dark mode 2020-09-28 20:24:12 -07:00
Mozilla L10n Automation Bot
87ecdf8bfb [fenix] Import l10n. 2020-09-28 20:18:50 -07:00
Tiger Oakes
b55c4af6fb [fenix] For https://github.com/mozilla-mobile/fenix/issues/12565: Pass bookmark storage to controller 2020-09-28 20:05:50 -07:00
Tiger Oakes
966e13c9aa [fenix] For https://github.com/mozilla-mobile/fenix/issues/12565: Pass metrics to share controller 2020-09-28 20:05:50 -07:00
Michael Comella
a50cf27648 [fenix] For https://github.com/mozilla-mobile/fenix/issues/13959: fix startup crash by using arg Context.
The `context` member function returns null in attachBaseContext so we
need to use the Context that's being attached instead.
2020-09-28 18:01:19 -07:00
Michael Comella
53bd004f55 [fenix] For https://github.com/mozilla-mobile/fenix/issues/13959: remove resetAfter & port tests to StrictModeManager. 2020-09-28 18:01:19 -07:00
Michael Comella
d0fbe70f10 [fenix] For https://github.com/mozilla-mobile/fenix/issues/13959: clean up existing StrictMode test names. 2020-09-28 18:01:19 -07:00
Michael Comella
8a9472e540 [fenix] For https://github.com/mozilla-mobile/fenix/issues/13959: move resetAfter into StrictModeManager.
In a followup PR, we need to add state to strictModeManager (the
number of suppressions). This is much simpler to do when this is defined
as a class rather than an object. However, when this is defined as a
class, `resetAfter` needs access to the strictModeManager. Instead of
passing it in as an argument, it made sense to move this function onto
the strictModeManager instead.

Since folks are used to calling:
```
StrictMode.ThreadPolicy.allowThreadDiskReads().resetAfter
```

We're going to have to add a lint check to prevent them from doing that.
2020-09-28 18:01:19 -07:00
Michael Comella
5f8943f76c [fenix] For https://github.com/mozilla-mobile/fenix/issues/13959: change StrictModeManager to class from object.
I originally tried to create this PR leaving this as an object to keep
the change simple but it wasn't worth it - once the object started to
keep state, we'd need to manually reset the state between runs. Also,
the tests were already getting hacky with static mocking so it was
easier to address some of those issues this way too.
2020-09-28 18:01:19 -07:00
Christian Sadilek
76018e2fe0 [fenix] For https://github.com/mozilla-mobile/fenix/issues/14034: Add debug preference to override AMO collection in Nightly 2020-09-28 17:25:52 -04:00
Michael Comella
9e86e369b6 [fenix] For https://github.com/mozilla-mobile/fenix/issues/13959: comment about duplication in logic in StrictMode.
I had to drop a commit that addressed the issue because it was too hard
to fix.
2020-09-28 13:52:40 -07:00
Michael Comella
394465e33e [fenix] For https://github.com/mozilla-mobile/fenix/issues/13959: add comment to explain why we only resetAfter in certain build modes. 2020-09-28 13:52:40 -07:00
Michael Comella
c1aa8d396a [fenix] For https://github.com/mozilla-mobile/fenix/issues/13959: use ac StrictMode.resetAfter rather than duplicating functionality. 2020-09-28 13:52:40 -07:00
Michael Comella
b2c01e442f [fenix] For https://github.com/mozilla-mobile/fenix/issues/13959: rename to attachListenerToDisablePenaltyDeath for clarity. 2020-09-28 13:52:40 -07:00
Michael Comella
1ec45f33a2 [fenix] For https://github.com/mozilla-mobile/fenix/issues/13959: remove unused penaltyDialog parameter.
Additional branching introduces complexity so we should avoid it when
possible. This branch was also unused so it's more likely to have bugs
if we tried to use it after some refactor.
2020-09-28 13:52:40 -07:00
Michael Comella
3b76f2b3fc [fenix] For https://github.com/mozilla-mobile/fenix/issues/13959: always enable detectNonSdkApiUsage.
We don't use penalty death for the VM policy so we theoretically don't
need to disable this check if penalty death is enabled.
2020-09-28 13:52:40 -07:00
Sebastian Kaspari
eca2b8ecf4 [fenix] Use "undo" implementation from Android Components.
This is not the super fancy version yet - since we still need to restore into SessionManager and
haven't fully switched to BrowserStore yet. However AC having knowledge about "undo" and whether
it was performed or not, will help us with features like "recently closed tabs". And once we
can improve "undo", Fenix will get all the nice things automatically.

Requires:
https://github.com/mozilla-mobile/android-components/pull/8449
2020-09-28 10:04:46 -07:00
Mozilla L10n Automation Bot
788b5bb21e [fenix] Import l10n. 2020-09-28 17:16:11 +02:00
mcarare
3ede6cf544 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15310: Add test for ActivityNotFoundException when sharing to app. 2020-09-28 13:29:17 +03:00
mcarare
9d9d283dc7 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15310: Also catch ActivityNotFoundException when sharing to app. 2020-09-28 13:29:17 +03:00
ekager
b276e9daca [fenix] No issue: Update AC to 61.0.20200925190057 2020-09-26 12:21:10 +02:00
ekager
cf0af49d3b [fenix] For https://github.com/mozilla-mobile/fenix/issues/12383 https://github.com/mozilla-mobile/fenix/issues/15407 https://github.com/mozilla-mobile/fenix/issues/12860 - Switch to using shared view model for session to delete on home 2020-09-25 16:54:54 -07:00
Grisha Kruglov
c348e03d0e [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/15434: Don't try to display a 'signed in' snackbar in a 'headless' mode 2020-09-25 15:31:07 -07:00
Grisha Kruglov
a0189c8080 [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/15432: Invoke UI updates on main thread in response to account events 2020-09-25 15:30:48 -07:00
Grisha Kruglov
5bb231cc70 [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/15436: Auto-close tabs during startup on the main thread 2020-09-25 15:11:21 -07:00
Christian Sadilek
146aa075dd [fenix] Configure M5 AMO collection for Nightly/Debug 2020-09-25 11:18:07 -04:00
mcarare
c5c3b6549d [fenix] For https://github.com/mozilla-mobile/fenix/issues/15130: Remove "what's new card" check in UI test. 2020-09-25 18:04:48 +03:00
mcarare
1d7b1df0e0 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15130: Remove "what's new card" from onboarding screen. 2020-09-25 18:04:48 +03:00
Mozilla L10n Automation Bot
8774b36f49 [fenix] Import l10n. 2020-09-24 18:03:47 -07:00
Kate Glazko
739a3520e1 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15320: Ensure Mimetype Other PDF Shows PDF Icon 2020-09-24 13:49:51 -07:00
Elise Richards
609857c5f1 [fenix] For https://github.com/mozilla-mobile/fenix/issues/14280, https://github.com/mozilla-mobile/fenix/issues/14743: Remove old search fragment (https://github.com/mozilla-mobile/fenix/pull/15169)
* Remove search fragment

* Use new folder to search dialog

* Rebase and lint

* Update tests with search dialog nav directions

* Rename interactor to match naming convention. Remove old controller and point everything to the dialog controller.
2020-09-24 15:46:42 -05:00
Jonathan Almeida
2ab099b37b [fenix] For https://github.com/mozilla-mobile/fenix/issues/15349: Fixes SyncedTabs suggestion not clicking 2020-09-24 15:35:06 -04:00
Grisha Kruglov
bc90bd2f31 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15296: Allow excluding bookmark subtrees when editing parent folder
I'm really not a fan of how title overwriting and structure processing are mangled together,
but will leave clearing that up for another day.
2020-09-23 23:22:44 -07:00
Mozilla L10n Automation Bot
fdb3d6c013 [fenix] Import l10n. 2020-09-23 21:16:24 -07:00
Sawyer Blatz
9d49be285c [fenix] For https://github.com/mozilla-mobile/fenix/issues/14243: Pre-land visuals for Close Tabs CFR (https://github.com/mozilla-mobile/fenix/pull/15171) 2020-09-23 14:57:52 -07:00
Grisha Kruglov
661a48a940 [fenix] Update breaking changes in the FxA/Sync integration 2020-09-23 14:51:04 -07:00
Jocelyne
0638e9b3d1 [fenix] For https://github.com/mozilla-mobile/fenix/issues/11800: Hide reveal and clear password icons if the password is empty when editing a saved login (https://github.com/mozilla-mobile/fenix/pull/15244)
Co-authored-by: Jocelyne Abi Haidar <jocelyne.abihaidar@gotocme.com>
2020-09-23 12:10:49 -07:00
Sebastian Kaspari
0663cf8916 [fenix] Issue https://github.com/mozilla-mobile/fenix/issues/13270: Do not launch into Fennec's task anymore.
Initially we did this to avoid a duplicated task right after the migration from Fennec. We'd end up
with the original task from Fennec and the new one from Fenix; with the Fennec task still showing
Fennec in the app switcher, but launching Fenix once selected.

Anyhow, now on Android 11 this causes the Fenix task to get duplicated. The simple fix is to not
do any of that anymore. This may re-introduce the problem with the Fennec migration, but:
* We are at 100% rollout for quite some time. There are still users migrating, but the impact
  of the bug is much lower.
* The bug after the migration was only temporary. This bug here is happening every time you
  launch Fenix. So I'd rather fix this than a possible inconvenience right after the migration.
2020-09-23 18:05:05 +02:00
mcarare
deafcc7387 [fenix] https://github.com/mozilla-mobile/fenix/pull/274-android-l10n: Update create account string to avoid partial translations. 2020-09-23 08:49:23 -07:00
Christian Sadilek
d12fa25350 [fenix] Configure M4 AMO collection for all builds 2020-09-22 19:01:37 -04:00
person808
2ddd7950b9 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15219 - Fix tab tray handle size.
Also use dimens for the tab history handle.
2020-09-22 15:24:22 -07:00
aprabhakara
06036292ae [fenix] For https://github.com/mozilla-mobile/fenix/issues/15262: Updated margins 2020-09-22 14:57:53 -07:00
ekager
65db93b8b5 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15291 - Limit current CFRs to show max one every 3 days 2020-09-22 10:43:14 -07:00
mcarare
9b953c0255 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15263: Properly update open links in app preference. 2020-09-22 09:44:32 -07:00
ekager
5536851865 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15272 - Remove bottom margin for toolbar on enter fullscreen 2020-09-22 08:34:29 -07:00
ekager
2f7edfe924 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15121 - Ensure tabs removed while on browser select an available parent session 2020-09-22 08:33:39 -07:00
mcarare
f887985405 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15268: Update unit tests for safe navigation to details fragment. 2020-09-22 18:23:17 +03:00
mcarare
d6f5f88deb [fenix] For https://github.com/mozilla-mobile/fenix/issues/15268: Use safe navigation to addon details fragments. 2020-09-22 18:23:17 +03:00
Oana Horvath
90ef2c90bf [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/14524, https://github.com/mozilla-mobile/fenix/issues/12896, https://github.com/mozilla-mobile/fenix/issues/13830: re-enabled strict ETP tests after code bug fix 2020-09-22 13:42:30 +03:00
Grisha Kruglov
0b56dd58e4 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15284: Process root titles when creating new folders
This also simplifies how we do this. We're no longer creating instances of `DesktopFolder` class
nor creating copies of BookmarkNodes just to display root titles correctly for the 'edit folder' UI.
2020-09-21 20:03:04 -07:00
ekager
e2f534e533 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15089 - Disable recently closed in multiselect 2020-09-21 18:35:08 -07:00
ekager
231bfe6323 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15112 - Still show recently closed when history empty 2020-09-21 18:35:08 -07:00
Grisha Kruglov
4e486c0b40 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15286: Don't crash when separators are long-touched 2020-09-21 18:34:08 -07:00
Mozilla L10n Automation Bot
3249a5e7f4 [fenix] Import l10n. 2020-09-21 18:17:38 -07:00
ekager
9763d05ef2 [fenix] For https://github.com/mozilla-mobile/fenix/issues/13934 - Make TabHistory work on PWA/Custom Tabs 2020-09-21 16:07:56 -07:00
ekager
f4406b2265 [fenix] No issue: Fixes strict mode death in debug custom tab 2020-09-21 12:59:33 -07:00
ekager
0fbfbb5516 [fenix] For https://github.com/mozilla-mobile/fenix/issues/14982 - Show snackbars with padding with static bottom toolbar 2020-09-21 10:05:28 -07:00
ekager
abe4ccd2ea [fenix] For https://github.com/mozilla-mobile/fenix/issues/14458 - dismiss keyboard on fill link from clipboard 2020-09-21 08:27:46 -07:00
Mozilla L10n Automation Bot
a8ce1d6722 [fenix] Import l10n. 2020-09-20 20:19:09 -07:00
ekager
6b66dbd5cc [fenix] For https://github.com/mozilla-mobile/fenix/issues/15245 - Remove margin for toolbar on toolbar-less PWA 2020-09-20 19:41:29 -07:00
Mozilla L10n Automation Bot
ddd8d2b7fd [fenix] Import l10n. 2020-09-19 21:33:21 -07:00
Grisha Kruglov
4f6213a2dd [fenix] For https://github.com/mozilla-mobile/fenix/issues/2792: Display bookmark folders at the top of the bookmarks UI 2020-09-18 22:01:17 -07:00
Grisha Kruglov
ec18031057 [fenix] For https://github.com/mozilla-mobile/fenix/issues/15211: Make sure bookmarks are moved to the end of folders 2020-09-18 21:52:58 -07:00
Grisha Kruglov
ba242fb3b9 [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/15206: Only track 'move' event if bookmark parent was changed 2020-09-18 21:52:58 -07:00
Grisha Kruglov
fa8af7dcd2 [fenix] For https://github.com/mozilla-mobile/fenix/issues/11502: Make sure to always process root titles for parent folders during edit
This also switches to a simpler bookmarks query API ('getBookmark') which doesn't fetch
children. We don't need 'children' for this dialog, and so don't need to do the extra work.
2020-09-18 21:16:57 -07:00
Grisha Kruglov
f79c9733e1 [fenix] For https://github.com/mozilla-mobile/fenix/issues/13157: Filter out folder being edited from 'select folder' dialog 2020-09-18 20:13:45 -07:00
Grisha Kruglov
412ae60537 [fenix] Rename 'visitedAddBookmark' arg to a less confusing name 2020-09-18 20:13:45 -07:00
Grisha Kruglov
2e646b696a [fenix] Remove unused nav arg from 'select folder' 2020-09-18 20:13:45 -07:00