Skip to content

Commit ebbf1bd

Browse files
committed
wip
1 parent 0bdd951 commit ebbf1bd

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

extension/js/content_scripts/webmail/thunderbird/thunderbird-element-replacer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ export class ThunderbirdElementReplacer extends WebmailElementReplacer {
136136
};
137137

138138
private isPublicKeyEncryptedMsg = (): boolean => {
139+
// todo - recognized email sent via FlowCrypt encrypted contact pages
139140
const emailBody = this.thunderbirdEmailSelector.text().trim();
140141
return this.resemblesAsciiArmoredMsg(emailBody);
141142
};

test/source/patterns.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ 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 thunderbirdExpectedPermissions = ['compose', 'messagesRead', 'messagesUpdate', 'messagesModify', 'accountsRead'];
115+
const thunderbirdExpectedPermissions = ['compose', 'downloads', 'downloads.open', 'messagesRead', 'messagesUpdate', 'messagesModify', 'accountsRead'];
116116
const buildHostPermissions = isManifestV3Build ? manifest.host_permissions : manifest.permissions;
117117
for (const expectedHostPermission of thunderbirdExpectedPermissions) {
118118
if (!buildHostPermissions?.includes(expectedHostPermission)) {

tooling/build-types-and-manifests.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,16 @@ addManifest(
5151
manifest.manifest_version = 2;
5252
manifest.name = 'FlowCrypt Encryption for Thunderbird';
5353
manifest.description = 'Simple end-to-end encryption to secure email and attachments on Thunderbird';
54-
manifest.permissions = [...(manifest.permissions ?? []), 'compose', 'messagesRead', 'messagesUpdate', 'messagesModify', 'accountsRead'];
54+
manifest.permissions = [
55+
...(manifest.permissions ?? []),
56+
'compose',
57+
'downloads',
58+
'downloads.open',
59+
'messagesRead',
60+
'messagesUpdate',
61+
'messagesModify',
62+
'accountsRead',
63+
];
5564
const manifestV3 = manifest as chrome.runtime.ManifestV3;
5665
manifest.web_accessible_resources = manifestV3.web_accessible_resources?.[0].resources;
5766
manifest.content_security_policy = manifestV3.content_security_policy?.extension_pages;

0 commit comments

Comments
 (0)