Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
martgil committed Oct 16, 2024
1 parent 0bdd951 commit ebbf1bd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export class ThunderbirdElementReplacer extends WebmailElementReplacer {
};

private isPublicKeyEncryptedMsg = (): boolean => {
// todo - recognized email sent via FlowCrypt encrypted contact pages
const emailBody = this.thunderbirdEmailSelector.text().trim();
return this.resemblesAsciiArmoredMsg(emailBody);
};
Expand Down
2 changes: 1 addition & 1 deletion test/source/patterns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ for (const buildType of ['chrome-consumer', 'chrome-enterprise', 'thunderbird-co
console.error(`${buildType} - The content_security_policy should be a string`);
errsFound++;
}
const thunderbirdExpectedPermissions = ['compose', 'messagesRead', 'messagesUpdate', 'messagesModify', 'accountsRead'];
const thunderbirdExpectedPermissions = ['compose', 'downloads', 'downloads.open', 'messagesRead', 'messagesUpdate', 'messagesModify', 'accountsRead'];
const buildHostPermissions = isManifestV3Build ? manifest.host_permissions : manifest.permissions;
for (const expectedHostPermission of thunderbirdExpectedPermissions) {
if (!buildHostPermissions?.includes(expectedHostPermission)) {
Expand Down
11 changes: 10 additions & 1 deletion tooling/build-types-and-manifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,16 @@ addManifest(
manifest.manifest_version = 2;
manifest.name = 'FlowCrypt Encryption for Thunderbird';
manifest.description = 'Simple end-to-end encryption to secure email and attachments on Thunderbird';
manifest.permissions = [...(manifest.permissions ?? []), 'compose', 'messagesRead', 'messagesUpdate', 'messagesModify', 'accountsRead'];
manifest.permissions = [
...(manifest.permissions ?? []),
'compose',
'downloads',
'downloads.open',
'messagesRead',
'messagesUpdate',
'messagesModify',
'accountsRead',
];
const manifestV3 = manifest as chrome.runtime.ManifestV3;
manifest.web_accessible_resources = manifestV3.web_accessible_resources?.[0].resources;
manifest.content_security_policy = manifestV3.content_security_policy?.extension_pages;
Expand Down

0 comments on commit ebbf1bd

Please sign in to comment.