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 hooks to allow content (web pages) to capture a screenshot for reporting site issues #68

Open
cvan opened this issue Mar 31, 2017 · 1 comment

Comments

@cvan
Copy link

cvan commented Mar 31, 2017

Just like here in the Firefox extension, can we add a hook that can let a web page communicate with the extension to take a screenshot (either by postMessage, a DOM API added by a WebExtension-compatible content script, etc.)?

The screenshot bits are the most important for us, when we direct people to a new WebCompat issue form from a link in content on a WebVR page.

@cvan
Copy link
Author

cvan commented Mar 31, 2017

Related bits from Safari extension: https://github.com/webcompat/webcompat-reporter-extensions/blob/d0fb595/safari/webcompat-reporter.safariextension/sendScreenshot.js#L8

We'd need more than that (not just whitelisted for the webcompat.com origin), but that's the general idea of what I was thinking.

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

No branches or pull requests

1 participant