DescriptionImplement permissions feature policy checks in the browser process
This adds feature policy checks for Geolocation, Midi/sysex, Protected media,
and Mic/Camera to the browser process. These checks are also implemented in
the content layer in the Permission Service
(see https://codereview.chromium.org/2874053003/). The reason to have these
checks implemented in the content/ layer is because they are standardized
checks and we want to ensure that other embedders of content implement the same
behavior.
However there are 2 pitfalls to this:
1) The results returned from the permission service are used to make decisions
in the renderer process and so are not trustworthy. Because of this, most
features that have permission will add additional checks in the browser
process.
2) The permission checks that happen in the browser process most often happen
in the chrome/ layer (through the PermissionManager) so this is also where
feature policy checks need to happen.
In the long term, both chrome/ and content/ should make permission checks
through the same API/mojo service where common permission checks like this one
can live.
BUG=689802
TBR=tommycli@chromium.org,peter@chromium.org
Review-Url: https://codereview.chromium.org/2898663002
Cr-Commit-Position: refs/heads/master@{#475826}
Committed: https://chromium.googlesource.com/chromium/src/+/21b9affc7f019d878b3118c2c0833822d78dfec4
Patch Set 1 #Patch Set 2 : Implement feature policy checks in the browser process #Patch Set 3 : Implement feature policy checks in the browser process #Patch Set 4 : Implement feature policy checks in the browser process #Patch Set 5 : Implement feature policy checks in the browser process #Patch Set 6 : Implement feature policy checks in the browser process #Patch Set 7 : Implement feature policy checks in the browser process #Patch Set 8 : Implement feature policy checks in the browser process #
Total comments: 4
Patch Set 9 : Implement feature policy checks in the browser process #Dependent Patchsets: Messages
Total messages: 38 (27 generated)
|