Skip to content

New Chrome iframe spec requires allow attribute to use devices #12225

Closed
@RomainGoncalves

Description

@RomainGoncalves

Do you want to request a feature or report a bug?
Not sure, maybe more on the feature side

What is the current behavior?
When opening an iframe to a third party site, I need access to the user's camera. The new specs for Chrome states that since version 64, we need to add the allow attribute in order to have access to things like camera or microphone.
However React (15.6.1) does not recognise this attribute and removes it. Therefore I don't have access to the user's camera.

<iframe
           title="Open identification process"
           src="thirdparty.com"
           frameBorder="0"
           width="600"
           height="800"
           allow="camera; microphone"
         />

Error displayed in console:

Warning: Unknown prop allow on <iframe> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop

What is the expected behavior?
This tag should be known

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
React version: 15.6.1 (no real possibilities to change to 16 yet)
Chrome: Version 64.0.3282.140 (Official Build) (64-bit)
OS: MacOS Sierra

Sorry if this was already reported. I couldn't find another issue mentioning this.

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