Permissions in Cross-Origin Iframes for screen(getUserMedia)
Reported by
oleg.tlv...@gmail.com,
Sep 11 2017
|
||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Steps to reproduce the problem: 1. Call to getUserMedia with constrains for screen from cross domain https iframe. 2. 3. What is the expected behavior? GetUserMedia need to ask for screen permissions. What went wrong? GetUserMedia fails (NavigatorUserMediaError) Did this work before? No Does this work in other browsers? Yes Chrome version: 61.0.3163.79 Channel: stable OS Version: 10.0 Flash Version: Shockwave Flash 26.0 r0 https://goo.gl/EuHzyv - In this article i see Deprecating Permissions for camera and microphone for getUserMedia from cross domain iframe. Screen is already not working, do you include solution for screen like for camera and microphone leke this: <iframe src="https://example.com" allow="screen"></iframe> ?
,
Sep 11 2017
Nothing has changed in M61 so I don't think this is related to feature policy. Could you provide an example of what's not working? Thanks!
,
Sep 12 2017
@raymes@chromium.org hi. 1. Install this extension : https://chrome.google.com/webstore/detail/mcgraw-hill-education-scr/pfcmainhppajoghlkioahfpepnlibicc 2.This is the test page i just have created for you: https://talya.tegrity.com/qar/oleg/test_cross_origin_ifram_getUserMedia.html You can see it works fine without iframe. 3.Here is jsfiddle with testpage launched from iframe: https://jsfiddle.net/f3ty5wjh/ Open developer tools and see console.
,
Sep 12 2017
Hi there, This is a known restriction with the way the API works. Please see https://stackoverflow.com/questions/26424366/google-chrome-screen-capture-failing-when-iframe-is-used-same-script-works-wi Please let us know if that resolves the issue. Closing as WontFix for the time being. Thanks!
,
Sep 12 2017
@raymes@chromium.org thanks. I tested it with fixes from stackoverflow and it works well. I still see the depreciation warning : "getUserMedia (camera) usage in cross-origin iframes is deprecated and will be disabled in M63, around December 2017. To continue to use this feature, it must be enabled by the embedding document using Feature Policy, e.g. <iframe allow="camera" ...>. See https://goo.gl/EuHzyv for more details." 1.We not using camera here (wrong message) 2.<iframe allow="camera" ...> - This change in December 2017 will work for screen? Thanks in advance
,
Sep 12 2017
At the point the deprecation warning is shown, it's not possible to detect what is being requested. Rest assured that screen capture will continue to work for the time being. |
||
►
Sign in to add a comment |
||
Comment 1 by guidou@chromium.org
, Sep 11 2017Components: Blink>PermissionsAPI Blink>SecurityFeature>CORS