NEW 189901
Implement support for allowlist for the features named in the "allow" attribute
https://bugs.webkit.org/show_bug.cgi?id=189901
Summary Implement support for allowlist for the features named in the "allow" attribute
Subhojeet Sinha
Reported 2018-09-23 17:36:04 PDT
As per https://wicg.github.io/feature-policy/#iframe-allow-attribute the allow attribute should support an allowlist(https://wicg.github.io/feature-policy/#allowlist) A feature policy allowlist is conceptually a set of origins. An allowlist may be either the special value *, which represents every origin, or An ordered set of origins. However, the current implementation doesn't support adding allowlist and the default value for the allowlist i.e. 'src' is used, which represents the origin of the URL in the iframe’s src attribute. <iframe src="https://abc.com" allow="geolocation; microphone; camera"></iframe> With the current implementation, the above change will grant geolocation, microphone and camera access to the origin specified in the "src" attribute, i.e. in this case it would be https://abc.com. <iframe src="https://abc.com" allow="geolocation https://abc.com https://foo.com;"></iframe> Adding the origins to the allow attribute as in the change above doesn't work currently and fails with the following error: "The top-level frame has prevented a document with a different security origin to call getUserMedia."
Attachments
Radar WebKit Bug Importer
Comment 1 2018-09-26 09:51:16 PDT
john.irby
Comment 2 2019-02-13 08:49:11 PST
I am seeing this same issue on Safari version 12.0.3 (13606.4.5.3.1) - removing the allowlist from the attribute prompts for microphone access as specified in the original description Is there any update on the status of this?
jib
Comment 3 2020-03-26 06:47:12 PDT
Note You need to log in before you can comment on or make changes to this bug.