Skip to content

Commit 8287f85

Browse files
committed
test permissions exclusive only for Thunderbird
1 parent 403d61a commit 8287f85

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

test/source/patterns.ts

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -112,29 +112,9 @@ for (const buildType of ['chrome-consumer', 'chrome-enterprise', 'thunderbird-co
112112
console.error(`${buildType} - The content_security_policy should be a string`);
113113
errsFound++;
114114
}
115-
const expectedHostPermissions = [
116-
'alarms',
117-
'storage',
118-
'tabs',
119-
'scripting',
120-
'unlimitedStorage',
121-
'identity',
122-
'compose',
123-
'messagesRead',
124-
'messagesUpdate',
125-
'messagesModify',
126-
'accountsRead',
127-
'https://flowcrypt.com/*',
128-
'https://*.google.com/*',
129-
'https://outlook.live.com/*',
130-
'https://outlook.office365.com/*',
131-
'https://outlook.office.com/*',
132-
'https://graph.microsoft.com/*',
133-
'https://login.microsoftonline.com/*',
134-
'https://www.googleapis.com/*',
135-
];
115+
const thunderbirdExpectedPermissions = ['compose', 'messagesRead', 'messagesUpdate', 'messagesModify', 'accountsRead'];
136116
const buildHostPermissions = isManifestV3Build ? manifest.host_permissions : manifest.permissions;
137-
for (const expectedHostPermission of expectedHostPermissions) {
117+
for (const expectedHostPermission of thunderbirdExpectedPermissions) {
138118
if (!buildHostPermissions?.includes(expectedHostPermission)) {
139119
console.error(`${buildType} - Missing permission ${expectedHostPermission} in ${buildType}/manifest.json`);
140120
errsFound++;

0 commit comments

Comments
 (0)