1
0
Fork 0
fenix/app/src/test/java/org/mozilla/fenix
Mugurell 0ba1d266b3 For #9144 - Ignore previous Intent if activity is started from Recents
We'll now clearly differentiate between cold / hot starts of HomeActivity.kt.
This is needed because Android will resend the original Intent which initially
started the Activity whenever it is restarted from the Recents Screen if the
activity is already destroyed at that time. So in the event that the activity
was before started with an Intent to open a webpage for example whenever the
activity is restarted from Recents it will receive the same Intent to open a
webpage even though that Intent has already been consumed.

Activity's onCreate() will only use the intent processors when the activity is
cold started so that we'll only initially act upon Intents configured for
different behaviors inside the app.
If the activity is destroyed while in background and opened from Recents it
will not act upon the original Intent which is now resent by Android.

Activity's onNewIntent() will be called to act upon a new Intent if the
activity is hot started since we are declared as singleTask and it now has the
responsibility to delegate various intent processors to consume that Intent.
2020-06-22 12:08:24 -04:00
..
addons Add tests for addon details 2020-06-17 14:38:50 -04:00
browser Add tests for ReaderModeController (#11049) 2020-05-29 11:46:31 -07:00
collections For #11182: Set click listener also to icon button. 2020-06-04 11:50:29 -04:00
components Cleanup tests for toolbar controller 2020-06-15 15:25:33 -04:00
crashes For issue #8648 2020-04-29 09:48:42 -07:00
customtabs Remove Mockito 2020-06-10 21:19:50 -04:00
downloads Remove Mockito 2020-06-10 21:19:50 -04:00
exceptions Fix breaking changes from new TrackingProtectionException 2020-01-22 11:47:51 -08:00
ext Remove Mockito 2020-06-10 21:19:50 -04:00
helpers Migrate some SessionManager usage to BrowserStore (#10789) 2020-06-03 11:18:44 -07:00
home Remove Mockito 2020-06-10 21:19:50 -04:00
library Revert "For issue #9949 - Bookmarks/History deletion inconsistencies" 2020-06-18 19:31:49 -04:00
onboarding Add tests for FenixOnboarding (#11057) 2020-05-29 17:26:07 -07:00
perf For #8803: hook up frameworkStart metric. 2020-04-17 09:11:58 -07:00
search For #10596 - Redirect moz://a URL (#10688) 2020-05-26 11:06:01 -07:00
session Migrate some SessionManager usage to BrowserStore (#10789) 2020-06-03 11:18:44 -07:00
settings Add tests for about viewholder 2020-06-12 15:30:50 -04:00
share Remove Mockito 2020-06-10 21:19:50 -04:00
tabtray Fix breaking APIs in TabsAdapter and ViewHolder 2020-06-13 16:02:31 -04:00
trackingprotection Tests and cleanup for tracking protection 2020-06-01 22:08:52 -04:00
utils For #8967 - Expose autofill logins setting in nightly 2020-06-09 12:21:48 -04:00
whatsnew For #9605: replace unit test runners with FenixRobolectricTestRunner. 2020-04-03 09:27:49 -07:00
widget Add tests for widget 2020-06-09 22:31:12 -04:00
AppRequestInterceptorTest.kt For #9631: replace assertk assertions with junit. 2020-04-06 16:56:40 -07:00
HomeActivityTest.kt For #9144 - Ignore previous Intent if activity is started from Recents 2020-06-22 12:08:24 -04:00
IntentReceiverActivityTest.kt Remove Mockito 2020-06-10 21:19:50 -04:00
ReleaseChannelTest.kt For #6464: Add ReleaseChannel test to document assumptions. 2019-12-30 10:31:33 -08:00