-
Notifications
You must be signed in to change notification settings - Fork 51
use OpenPGP.js from web content script, simplify #5013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rrrooommmaaa
merged 32 commits into
master
from
issue-4906-openpgp-in-content-script-live-test
Mar 27, 2023
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
11d8a76
use OpenPGP.js from web content script - wip
3346597
firefox fix
7a7651e
use processAndStoreKeysFromEkmLocally() directly
48fb7f2
simplify
3dfd68b
Merge remote-tracking branch 'origin/master' into issue-4906-openpgp-…
6c8da84
added link to external PR
a2c989f
Merge remote-tracking branch 'origin/master' into issue-4906-openpgp-…
fe9bb59
web-stream-tools support in content script (development setup)
7ff645f
production mode in webpack bundling
6a1af63
testing OpenPGP/Stream operations from content script
1fa81d9
Merge remote-tracking branch 'origin/master' into issue-4906-openpgp-…
7dff2be
lint fix
4e33580
build for manual testing of content script in Firefox
6d2ec20
more debug configurations for VSCode
8d4a3ab
removed duplicate
4298b1d
Merge remote-tracking branch 'origin/master' into issue-4906-openpgp-…
9598bb0
fix
a72e748
fix
aa5c6ac
allow multiple test result divs
3fb4257
Merge remote-tracking branch 'origin/master' into issue-4906-openpgp-…
710f27d
clearer test output
70dc59c
niceties
d7df2bc
fix Uint8Array problem in Firefox
d971da2
Merge remote-tracking branch 'origin/master' into issue-4906-openpgp-…
4d88425
updated comment
3efd2e7
Merge remote-tracking branch 'origin/master' into issue-4906-openpgp-…
e53a17d
Merge remote-tracking branch 'origin/master' into issue-4906-openpgp-…
2dd0237
globally patch Uint8Array.subarray()
18dc1ab
fix
2a0c078
patch Uint8Array.slice
9deb31a
Added a test for KeyUtil.readBinary()
97396e1
increase ava cli timeout values
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//webpack.config.js | ||
//bundle the web version of @openpgp/web-stream-tools for content script | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
mode: 'production', | ||
entry: { | ||
main: '../build/generic-extension-wip/lib/streams/streams.js', | ||
}, | ||
output: { | ||
library: { | ||
name: 'Stream', | ||
type: 'var', | ||
}, | ||
path: path.resolve('../build/generic-extension-wip/lib'), | ||
filename: 'streams_web.js', // <--- Will be compiled to this single file | ||
}, | ||
resolve: { | ||
fallback: { | ||
stream: false, | ||
}, | ||
extensions: ['.js'], | ||
}, | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also
BrowserMsg.addPgpListeners();
could be removed from below, and added to content script message listener instead.Then pgp_block can be updated to call content script instead of background script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I do this in this PR?
I thought after #5022 we may no longer need some of these messages, e.g.
pgpMsgDecrypt
orpgpMsgVerifyDetached
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i see. then it doesn't have to be in this pr.