Skip to content

Commit 00f3f6c

Browse files
authored
fix: Fenix does not require WRITE_EXTERNAL_STORAGE permission to be granted (#2306)
1 parent b951ac0 commit 00f3f6c

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/extension-runners/firefox-android.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,12 +411,10 @@ export class FirefoxAndroidExtensionRunner {
411411
log.debug('Checking read/write permissions needed for web-ext' +
412412
`on ${selectedFirefoxApk}...`);
413413

414-
// Runtime permission needed to be able to run Firefox on a temporarily created profile
415-
// on android versions >= 23 (Android Marshmallow, which is the first version where
416-
// these permissions are optional and have to be granted explicitly).
414+
// Runtime permissions needed to Firefox to be able to access the
415+
// xpi file uploaded to the android device or emulator.
417416
const requiredPermissions = [
418417
'android.permission.READ_EXTERNAL_STORAGE',
419-
'android.permission.WRITE_EXTERNAL_STORAGE',
420418
];
421419

422420
await adbUtils.ensureRequiredAPKRuntimePermissions(

tests/unit/test-extension-runners/test.firefox-android.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -959,13 +959,12 @@ describe('util/extension-runners/firefox-android', () => {
959959
fakeADBUtils.ensureRequiredAPKRuntimePermissions,
960960
'emulator-1', 'org.mozilla.firefox', [
961961
'android.permission.READ_EXTERNAL_STORAGE',
962-
'android.permission.WRITE_EXTERNAL_STORAGE',
963962
]
964963
);
965964

966965
sinon.assert.callOrder(
967966
fakeADBUtils.getAndroidVersionNumber,
968-
fakeADBUtils.ensureRequiredAPKRuntimePermissions
967+
fakeADBUtils.ensureRequiredAPKRuntimePermissions,
969968
);
970969
}
971970

0 commit comments

Comments
 (0)