Skip to content

navigator.mediaDevices is undefined #24

@jameshfisher

Description

@jameshfisher

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions