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

Fix chromium clipboard access #278

Merged
merged 5 commits into from
Oct 22, 2023

Conversation

jbukl
Copy link

@jbukl jbukl commented Oct 20, 2023

I moved from yomichan to this yesterday and was having issues with how I usually mine cards because the clipboard monitor for the search page wasn't working, so I fixed it locally.
Feel free to close this if this is duplicated work or there's a nicer solution in mind.

on chromium, backend calls to clipboardGet are forwarded to an offscreen script
@jbukl jbukl requested a review from a team as a code owner October 20, 2023 19:37
@github-actions
Copy link

github-actions bot commented Oct 21, 2023

✔️ No visual differences introduced by this PR.

View Playwright Report (note: open the "playwright-report" artifact)

@djahandarie
Copy link
Collaborator

djahandarie commented Oct 21, 2023

@jbukl Thank you so much for the PR. I believe @praschke is working on a solution here using offscreen as well, so let us wait for their input as well.

Copy link
Collaborator

@praschke praschke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

besides the comments i left, there are three other issues.

ext/js/background/backend.js Outdated Show resolved Hide resolved
ext/js/background/backend.js Outdated Show resolved Hide resolved
ext/js/background/backend.js Outdated Show resolved Hide resolved
ext/js/background/backend.js Outdated Show resolved Hide resolved
ext/css/offscreen.css Outdated Show resolved Hide resolved
dev/data/manifest-variants.json Outdated Show resolved Hide resolved
implement getImage for offscreen requests
move offscreen files, offscreen prep is done in sw prep
update permissions document for offscreen
rearrange permissions
@djahandarie djahandarie added the kind/bug The issue or PR is regarding a bug label Oct 22, 2023
Copy link
Collaborator

@djahandarie djahandarie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for all the fixes. LGTM!

@djahandarie djahandarie added this pull request to the merge queue Oct 22, 2023
Merged via the queue into themoeway:master with commit 264bfe8 Oct 22, 2023
6 checks passed
@praschke
Copy link
Collaborator

this should close #71, #165, #269, #275.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug The issue or PR is regarding a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants