Skip to content
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

Convert to pure WebExtension and further refactorings/fixes #2

Merged
merged 7 commits into from
Aug 13, 2023

Conversation

jan-kiszka
Copy link
Owner

@jan-kiszka jan-kiszka commented Aug 7, 2023

Based on work by @jobisoft, superseding #1.

Such handlers should either return a boolean or a Promise. Use the an
immediately resolved Promise in case of the synchronously handled
clipboardWrite message. Return false if no message was handled.

Reported by John Bieling.

Signed-off-by: Jan Kiszka <[email protected]>
Allows to load ES6 modules from the script which we will use soon.

Signed-off-by: Jan Kiszka <[email protected]>
This was introduced in TB 106 and backported to 102.4 (actually 102.3.3,
but that is not a legal for struct_min_version). Using this allows to
drop the open-coded tab lookup.

Based on changes suggested by John Bieling.

Signed-off-by: Jan Kiszka <[email protected]>
This will be used by the upcoming migration to an Experiment-free
message processing.

The modules needs one patch right now: "this" is undefined at top-level
when a script is loaded as module, see [1]. Upstream PR will be sent.

[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this

Signed-off-by: Jan Kiszka <[email protected]>
Use browser.messages.getFull() to obtain the selected message and then
parse the message, also with the help of the newly added email-addresses
module. The interface between content and background scripts remain the
same.

Based on original conversion by John Bieling.

Signed-off-by: Jan Kiszka <[email protected]>
With the Experiment API gone, we can drop strict_max_version, reducing
future maintenance efforts.

Signed-off-by: Jan Kiszka <[email protected]>
Now that the project is hosted and discussed there, let's move it
officially.

Signed-off-by: Jan Kiszka <[email protected]>
@jan-kiszka jan-kiszka merged commit 8e38a34 into master Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant