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

Inject an iframe to perform copy on Chrome + Keyboard Shortcut #113

Merged
merged 1 commit into from
Nov 17, 2022

Conversation

yorkxin
Copy link
Owner

@yorkxin yorkxin commented Nov 16, 2022

Summary

It seems that injecting an iframe (an HTML page bundled in the extension) can work around Chrome's document.execCommand restriction. Not sure if this is a security hole though. At least it works on my machine.

(I am doubting the meaning of my life)

Tests

  • Chrome stable (macOS)
  • Firefox stable (macOS)
  • Chrome stable (Windows)
  • Firefox stable (Windows)

Optional:

  • Chrome beta (macOS)
  • Firefox beta (macOS)
  • Chrome beta (Windows)
  • Firefox beta (Windows)

@yorkxin yorkxin force-pushed the chrome-keyboard-copy-hack branch from 5f0347c to 3f27588 Compare November 17, 2022 12:20
@yorkxin yorkxin merged commit 67cbc4a into master Nov 17, 2022
@yorkxin yorkxin deleted the chrome-keyboard-copy-hack branch November 17, 2022 12:22
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