Skip to content

navigator.mediaDevices is undefined #24

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

Open
jameshfisher opened this issue Apr 19, 2020 · 0 comments
Open

navigator.mediaDevices is undefined #24

jameshfisher opened this issue Apr 19, 2020 · 0 comments

Comments

@jameshfisher
Copy link

Steps to reproduce

static TCHAR htmlProgram[] = 
L"<!doctype html>"
L"<html>"
L"    <body>"
L"        <script>alert(navigator.mediaDevices);</script>"
L"    </body>"
L"</html>";

// ...

webviewWindow->NavigateToString(htmlProgram);

Expected behavior

An alert box saying [object MediaDevices], which is what Microsoft Edge Canary gives.

Actual behavior

An alert box saying undefined.

Notes

I can't find any API to enable this functionality. Where is it?

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