WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
207112
MediaDevices should handle changes of iframe allow attribute value
https://bugs.webkit.org/show_bug.cgi?id=207112
Summary
MediaDevices should handle changes of iframe allow attribute value
youenn fablet
Reported
2020-02-03 03:02:29 PST
MediaDevices should handle changes of iframe allow attribute value
Attachments
Patch
(36.99 KB, patch)
2020-02-03 05:12 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(48.19 KB, patch)
2020-02-03 08:18 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Rebasing for landing
(48.05 KB, patch)
2020-02-04 01:23 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2020-02-03 05:12:11 PST
Created
attachment 389499
[details]
Patch
Eric Carlson
Comment 2
2020-02-03 05:42:20 PST
Comment on
attachment 389499
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=389499&action=review
> Source/WebCore/Modules/mediastream/MediaDevices.cpp:165 > + bool canAccessCamera = isFeaturePolicyAllowedByDocumentAndAllOwners(FeaturePolicy::Type::Camera, *document, LogFeaturePolicyFailure::No); > + bool canAccessMicrophone = isFeaturePolicyAllowedByDocumentAndAllOwners(FeaturePolicy::Type::Microphone, *document, LogFeaturePolicyFailure::No);
It might be worth adding a helper function that calls both of these.
> Source/WebCore/Modules/mediastream/UserMediaController.cpp:68 > + window->printErrorMessage(makeString("Not allowed to call getDisplayMedia."));
This isn't tested.
> Source/WebCore/html/FeaturePolicy.cpp:65 > + document.domWindow()->printErrorMessage(makeString("Feature policy '", policyTypeName(type), "' check failed."));
Ditto.
youenn fablet
Comment 3
2020-02-03 08:18:04 PST
Created
attachment 389511
[details]
Patch
youenn fablet
Comment 4
2020-02-04 01:23:31 PST
Created
attachment 389636
[details]
Rebasing for landing
WebKit Commit Bot
Comment 5
2020-02-04 02:57:50 PST
Comment on
attachment 389636
[details]
Rebasing for landing Clearing flags on attachment: 389636 Committed
r255668
: <
https://trac.webkit.org/changeset/255668
>
WebKit Commit Bot
Comment 6
2020-02-04 02:57:51 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7
2020-02-04 02:58:18 PST
<
rdar://problem/59144287
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug