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

Add clipboardRead and clipboardWrite permissions needed for firefox #4186

Merged
merged 1 commit into from
Dec 17, 2022

Conversation

citosid
Copy link

@citosid citosid commented Dec 6, 2022

The permissions clipboardRead and clipboardWrite are not needed for chrome using the clipboard api. These were removed in 15ba534 however, they are needed for the clipboard functionality to work in Firefox.

Fixes #4183

Description

The copy/paste functionality in firefox is broken due to missing permissions. This commit adds them back only for firefox.

The permissions clipboardRead and clipboardWrite are not needed for chrome using the clipboard api.
These were removed in 15ba534 however, they are needed for the
clipboard functionality to work in Firefox.

Fixes philc#4183
@OmriKaplan
Copy link

It should also fix #4173 for Firefox users. At least the cases that are caused by missing permissions.

@citosid
Copy link
Author

citosid commented Dec 15, 2022

Thanks @OmriKaplan !

Not sure how to notify the main devs though 😂🤨

@OmriKaplan
Copy link

@philc Sorry to bother you, but we're pasting random stuff for weeks now after yanking from Firefox 😂
Thanks for the brilliant plugin!

@philc
Copy link
Owner

philc commented Dec 15, 2022 via email

@mcp292
Copy link

mcp292 commented Dec 15, 2022

Thank you for this PR!

I have been following this issue and was curious to see the fix. I would expect there be a condition that checks if Firefox, then do the stuff you committed, but I am not seeing that. Can you fill me in? What makes this only execute for Firefox?

@citosid
Copy link
Author

citosid commented Dec 15, 2022

@mcp292 as you can see here:

image

The different manifests are written at different times. First it writes one with the settings specific to firefox and zips it naming it as such.

Then, it writes again to the same file, but this time without those settings, effectively rewritten the previously written file, and it is now named vimium-chrome-store.

With this, different zip files are used for different stores, with the specific settings for each.

Hopefully that makes sense...

@citosid
Copy link
Author

citosid commented Dec 16, 2022

Yes, I see all of the pain across Github issues. It's frustrating that Firefox has different behavior here than Chrome. I've just returned from a long trip without wifi. I'll get this out this weekend. Thank you for the PR.

On Thu, Dec 15, 2022 at 6:40 AM, Omri Kaplan < @.*** > wrote:

@ philc ( https://github.com/philc ) Sorry to bother you, but we're pasting
random stuff for weeks now after yanking from Firefox 😂
Thanks for the brilliant plugin!


Reply to this email directly, view it on GitHub (
#4186 (comment) ) , or unsubscribe
(
https://github.com/notifications/unsubscribe-auth/AAACDFTNDSSZFV5YOJ6ZNEDWNMUVHANCNFSM6AAAAAASVW76OY
).
You are receiving this because you were mentioned. Message ID: </pull/4186/c1353196998
@ github. com>

Thanks for your awesome work! Using this, i3 and vim has helped me to increase my productivity a lot! And my fingers are thankful I don't use the mouse as much. Really appreciate your awesome job!

@philc philc merged commit 7c6d718 into philc:master Dec 17, 2022
@philc philc changed the title fix(firefox-pastebin): revert back permissions needed for firefox Add clipboardRead and clipboardWrite permissions needed for firefox Dec 17, 2022
@philc
Copy link
Owner

philc commented Dec 17, 2022

I noticed the permissions added in this PR for firefox were bleeding through to the Chrome build. This is fixed in c0edf21.

@mcp292
Copy link

mcp292 commented Dec 19, 2022

Hopefully that makes sense...

@citosid Thank you! This makes a lot of sense. The answer I'm walking away with is they all execute, and depending on the store, only that zip file is used. Very cool!

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.

"C" no longer copies URLs despite saying the link was yanked
5 participants