Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fenix/117.1.0' into iceraven
Browse files Browse the repository at this point in the history
  • Loading branch information
akliuxingyuan committed Sep 23, 2023
2 parents 189e793 + 8f29882 commit 2046d55
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 117 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ class SettingsSitePermissionsTest {
}
}

@Ignore("Flaky, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1829889")
@Test
fun verifyDRMControlledContentPermissionSettingsTest() {
navigationToolbar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import okhttp3.mockwebserver.MockWebServer
import org.junit.After
import org.junit.Assume.assumeTrue
import org.junit.Before
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.mozilla.fenix.customannotations.SmokeTest
Expand Down Expand Up @@ -95,6 +96,7 @@ class SitePermissionsTest {
}
}

@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1815395")
@SmokeTest
@Test
fun rememberBlockAudioVideoPermissionChoiceTest() {
Expand All @@ -118,6 +120,7 @@ class SitePermissionsTest {
}
}

@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1815395")
@SmokeTest
@Test
fun rememberAllowAudioVideoPermissionChoiceTest() {
Expand Down Expand Up @@ -158,6 +161,7 @@ class SitePermissionsTest {
}
}

@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1815395")
@Test
fun rememberBlockMicrophonePermissionChoiceTest() {
assumeTrue(micManager.microphones.isNotEmpty())
Expand All @@ -179,6 +183,7 @@ class SitePermissionsTest {
}
}

@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1815395")
@Test
fun rememberAllowMicrophonePermissionChoiceTest() {
assumeTrue(micManager.microphones.isNotEmpty())
Expand Down Expand Up @@ -217,6 +222,7 @@ class SitePermissionsTest {
}
}

@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1815395")
@Test
fun rememberBlockCameraPermissionChoiceTest() {
assumeTrue(cameraManager.cameraIdList.isNotEmpty())
Expand All @@ -238,6 +244,7 @@ class SitePermissionsTest {
}
}

@Ignore("Failing, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1815395")
@Test
fun rememberAllowCameraPermissionChoiceTest() {
assumeTrue(cameraManager.cameraIdList.isNotEmpty())
Expand Down
11 changes: 8 additions & 3 deletions app/src/main/java/org/mozilla/fenix/FenixApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.async
import kotlinx.coroutines.launch
import mozilla.appservices.Megazord
import mozilla.appservices.autofill.AutofillApiException
import mozilla.components.browser.state.action.SystemAction
import mozilla.components.browser.state.selector.selectedTab
import mozilla.components.browser.state.state.searchEngines
Expand Down Expand Up @@ -851,9 +852,13 @@ open class FenixApplication : LocaleAwareApplication(), Provider {

@OptIn(DelicateCoroutinesApi::class)
GlobalScope.launch(IO) {
val autoFillStorage = applicationContext.components.core.autofillStorage
Addresses.savedAll.set(autoFillStorage.getAllAddresses().size.toLong())
CreditCards.savedAll.set(autoFillStorage.getAllCreditCards().size.toLong())
try {
val autoFillStorage = applicationContext.components.core.autofillStorage
Addresses.savedAll.set(autoFillStorage.getAllAddresses().size.toLong())
CreditCards.savedAll.set(autoFillStorage.getAllCreditCards().size.toLong())
} catch (e: AutofillApiException) {
logger.error("Failed to fetch autofill data", e)
}

try {
val passwordsStorage = applicationContext.components.core.passwordsStorage
Expand Down
175 changes: 61 additions & 114 deletions app/src/main/res/raw/initial_experiments.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,67 @@
"localizations": null,
"locales": null
},
{
"schemaVersion": "1.12.0",
"slug": "beta-android-onboarding-redesign-treatment-a-rollout",
"id": "beta-android-onboarding-redesign-treatment-a-rollout",
"arguments": {},
"application": "org.mozilla.firefox_beta",
"appName": "fenix",
"appId": "org.mozilla.firefox_beta",
"channel": "beta",
"userFacingName": "Beta Android Onboarding Redesign - Treatment A Rollout",
"userFacingDescription": "Testing a new onboarding experience.",
"isEnrollmentPaused": false,
"isRollout": true,
"bucketConfig": {
"randomizationUnit": "nimbus_id",
"namespace": "fenix-juno-onboarding-beta-mobile_first_run-rollout-1",
"start": 0,
"count": 10000,
"total": 10000
},
"featureIds": [
"juno-onboarding"
],
"probeSets": [],
"outcomes": [
{
"slug": "default-browser",
"priority": "primary"
}
],
"branches": [
{
"slug": "treatment-a",
"ratio": 1,
"feature": {
"featureId": "this-is-included-for-mobile-pre-96-support",
"enabled": false,
"value": {}
},
"features": [
{
"featureId": "juno-onboarding",
"enabled": true,
"value": {
"enabled": true
}
}
]
}
],
"targeting": "((is_already_enrolled) || ((isFirstRun == 'true') && (app_version|versionCompare('118.!') >= 0)))",
"startDate": "2023-09-06",
"enrollmentEndDate": "2023-09-11",
"endDate": null,
"proposedDuration": 28,
"proposedEnrollment": 7,
"referenceBranch": "treatment-a",
"featureValidationOptOut": false,
"localizations": null,
"locales": null
},
{
"schemaVersion": "1.12.0",
"slug": "felt-privacy-android",
Expand Down Expand Up @@ -342,120 +403,6 @@
"featureValidationOptOut": false,
"localizations": null,
"locales": null
},
{
"schemaVersion": "1.12.0",
"slug": "splash-screen-max-duration-test",
"id": "splash-screen-max-duration-test",
"arguments": {},
"application": "org.mozilla.firefox",
"appName": "fenix",
"appId": "org.mozilla.firefox",
"channel": "release",
"userFacingName": "Splash screen max duration test",
"userFacingDescription": "Testing a splashscreen on app launch.",
"isEnrollmentPaused": true,
"isRollout": false,
"bucketConfig": {
"randomizationUnit": "nimbus_id",
"namespace": "fenix-splash-screen-release-1",
"start": 0,
"count": 10000,
"total": 10000
},
"featureIds": [
"splash-screen"
],
"probeSets": [],
"outcomes": [],
"branches": [
{
"slug": "control",
"ratio": 1,
"feature": {
"featureId": "this-is-included-for-mobile-pre-96-support",
"enabled": false,
"value": {}
},
"features": [
{
"featureId": "splash-screen",
"enabled": true,
"value": {
"enabled": false,
"maximum_duration_ms": 0
}
}
]
},
{
"slug": "treatment-a",
"ratio": 1,
"feature": {
"featureId": "this-is-included-for-mobile-pre-96-support",
"enabled": false,
"value": {}
},
"features": [
{
"featureId": "splash-screen",
"enabled": true,
"value": {
"enabled": true,
"maximum_duration_ms": 2500
}
}
]
},
{
"slug": "treatment-b",
"ratio": 1,
"feature": {
"featureId": "this-is-included-for-mobile-pre-96-support",
"enabled": false,
"value": {}
},
"features": [
{
"featureId": "splash-screen",
"enabled": true,
"value": {
"enabled": true,
"maximum_duration_ms": 6000
}
}
]
},
{
"slug": "treatment-c",
"ratio": 1,
"feature": {
"featureId": "this-is-included-for-mobile-pre-96-support",
"enabled": false,
"value": {}
},
"features": [
{
"featureId": "splash-screen",
"enabled": true,
"value": {
"enabled": true,
"maximum_duration_ms": 11000
}
}
]
}
],
"targeting": "((is_already_enrolled) || ((isFirstRun == 'true') && (app_version|versionCompare('116.!') >= 0) && (region in ['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW'])))",
"startDate": "2023-07-24",
"enrollmentEndDate": "2023-08-09",
"endDate": null,
"proposedDuration": 42,
"proposedEnrollment": 14,
"referenceBranch": "control",
"featureValidationOptOut": false,
"localizations": null,
"locales": null
}
]
}

0 comments on commit 2046d55

Please sign in to comment.