Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Issue 2945223002: Add deprecation warnings for permission API usage from iframes (Closed)

Created:
3 years, 6 months ago by raymes
Modified:
3 years, 5 months ago
CC:
chromium-reviews, timvolodine, toyoshim+midi_chromium.org, feature-media-reviews_chromium.org, mlamouri+watch-blink_chromium.org, dglazkov+blink, eric.carlson_apple.com, blink-reviews-api_chromium.org, haraken, tommyw+watchlist_chromium.org, mcasas+geolocation_chromium.org, asvitkine+watch_chromium.org, blink-reviews, blink-reviews-frames_chromium.org, Srirama, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add deprecation warnings for permission API usage from iframes This adds deprecation warnings when the following APIs are used from cross origin iframes: -getCurrentPosition and watchPosition -requestMIDIAccess -requestMediaKeySystemAccess -getUserMedia A message is only logged if the feature would be disallowed by feature policy. BUG=689802 Review-Url: https://codereview.chromium.org/2945223002 Cr-Commit-Position: refs/heads/master@{#485491} Committed: https://chromium.googlesource.com/chromium/src/+/6a2e6fd73be0892689832e9af7feb26413db51ea

Patch Set 1 #

Patch Set 2 : Depreaction warnings #

Total comments: 9

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 10

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -3 lines) Patch
M third_party/WebKit/Source/core/frame/Deprecation.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Deprecation.cpp View 1 2 3 4 5 6 7 4 chunks +84 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/geolocation/Geolocation.cpp View 1 2 3 4 5 6 3 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/NavigatorWebMIDI.cpp View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebFeaturePolicyFeature.h View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/platform/web_feature.mojom View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (15 generated)
raymes
3 years, 6 months ago (2017-06-21 05:00:42 UTC) #2
Takashi Toyoshima
webmidi lgtm
3 years, 6 months ago (2017-06-21 08:11:54 UTC) #3
iclelland
https://codereview.chromium.org/2945223002/diff/20001/third_party/WebKit/Source/core/frame/Deprecation.cpp File third_party/WebKit/Source/core/frame/Deprecation.cpp (right): https://codereview.chromium.org/2945223002/diff/20001/third_party/WebKit/Source/core/frame/Deprecation.cpp#newcode462 third_party/WebKit/Source/core/frame/Deprecation.cpp:462: return iframePermissionsWarning("requestMediaKeySystemAccess", M62); Should the interfaces in these messages ...
3 years, 6 months ago (2017-06-22 15:12:49 UTC) #4
raymes
iclelland: ptal :) https://codereview.chromium.org/2945223002/diff/20001/third_party/WebKit/Source/core/frame/Deprecation.cpp File third_party/WebKit/Source/core/frame/Deprecation.cpp (right): https://codereview.chromium.org/2945223002/diff/20001/third_party/WebKit/Source/core/frame/Deprecation.cpp#newcode462 third_party/WebKit/Source/core/frame/Deprecation.cpp:462: return iframePermissionsWarning("requestMediaKeySystemAccess", M62); On 2017/06/22 15:12:48, ...
3 years, 5 months ago (2017-07-05 01:04:26 UTC) #11
iclelland
Thanks raymes -- this LGTM https://codereview.chromium.org/2945223002/diff/20001/third_party/WebKit/Source/core/frame/Deprecation.cpp File third_party/WebKit/Source/core/frame/Deprecation.cpp (right): https://codereview.chromium.org/2945223002/diff/20001/third_party/WebKit/Source/core/frame/Deprecation.cpp#newcode462 third_party/WebKit/Source/core/frame/Deprecation.cpp:462: return iframePermissionsWarning("requestMediaKeySystemAccess", M62); On ...
3 years, 5 months ago (2017-07-05 04:41:22 UTC) #15
raymes
On 2017/07/05 04:41:22, iclelland wrote: > Thanks raymes -- this LGTM > > https://codereview.chromium.org/2945223002/diff/20001/third_party/WebKit/Source/core/frame/Deprecation.cpp > ...
3 years, 5 months ago (2017-07-05 05:09:54 UTC) #16
raymes
+ddorwin for: third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp +guidou for third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp +mcasas for third_party/WebKit/Source/modules/geolocation/Geolocation.cpp +dcheng for third_party/WebKit/Source/core/frame/Deprecation.cpp/h third_party/WebKit/public/platform/web_feature.mojom
3 years, 5 months ago (2017-07-05 05:10:05 UTC) #18
Guido Urdaneta
mediastream lgtm
3 years, 5 months ago (2017-07-05 10:34:03 UTC) #19
dcheng
LGTM with comments addressed https://codereview.chromium.org/2945223002/diff/60001/third_party/WebKit/Source/core/frame/Deprecation.cpp File third_party/WebKit/Source/core/frame/Deprecation.cpp (right): https://codereview.chromium.org/2945223002/diff/60001/third_party/WebKit/Source/core/frame/Deprecation.cpp#newcode74 third_party/WebKit/Source/core/frame/Deprecation.cpp:74: String iframePermissionsWarning(const char* function, 2 ...
3 years, 5 months ago (2017-07-05 20:18:02 UTC) #20
ddorwin
encryptedmedia/ LGTM. I left some comments in other files. https://codereview.chromium.org/2945223002/diff/60001/third_party/WebKit/Source/core/frame/Deprecation.cpp File third_party/WebKit/Source/core/frame/Deprecation.cpp (right): https://codereview.chromium.org/2945223002/diff/60001/third_party/WebKit/Source/core/frame/Deprecation.cpp#newcode14 third_party/WebKit/Source/core/frame/Deprecation.cpp:14: ...
3 years, 5 months ago (2017-07-05 20:29:20 UTC) #21
raymes
Thanks all. Just waiting for mcasas@. https://codereview.chromium.org/2945223002/diff/60001/third_party/WebKit/Source/core/frame/Deprecation.cpp File third_party/WebKit/Source/core/frame/Deprecation.cpp (right): https://codereview.chromium.org/2945223002/diff/60001/third_party/WebKit/Source/core/frame/Deprecation.cpp#newcode14 third_party/WebKit/Source/core/frame/Deprecation.cpp:14: #include "public/platform/WebFeaturePolicyFeature.h" On ...
3 years, 5 months ago (2017-07-06 03:48:04 UTC) #22
mcasas
On 2017/07/06 03:48:04, raymes wrote: > Thanks all. > > Just waiting for mcasas@. > ...
3 years, 5 months ago (2017-07-06 04:49:34 UTC) #23
ddorwin
https://codereview.chromium.org/2945223002/diff/60001/third_party/WebKit/public/platform/web_feature.mojom File third_party/WebKit/public/platform/web_feature.mojom (right): https://codereview.chromium.org/2945223002/diff/60001/third_party/WebKit/public/platform/web_feature.mojom#newcode1589 third_party/WebKit/public/platform/web_feature.mojom:1589: kEncryptedMediaDisabledCrossOriginIframe = 2051, On 2017/07/06 03:48:04, raymes wrote: > ...
3 years, 5 months ago (2017-07-06 23:28:22 UTC) #24
raymes
https://codereview.chromium.org/2945223002/diff/60001/third_party/WebKit/public/platform/web_feature.mojom File third_party/WebKit/public/platform/web_feature.mojom (right): https://codereview.chromium.org/2945223002/diff/60001/third_party/WebKit/public/platform/web_feature.mojom#newcode1589 third_party/WebKit/public/platform/web_feature.mojom:1589: kEncryptedMediaDisabledCrossOriginIframe = 2051, On 2017/07/06 23:28:21, ddorwin wrote: > ...
3 years, 5 months ago (2017-07-10 23:19:13 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2945223002/140001
3 years, 5 months ago (2017-07-10 23:27:56 UTC) #28
commit-bot: I haz the power
3 years, 5 months ago (2017-07-11 01:56:05 UTC) #31
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/6a2e6fd73be0892689832e9af7fe...

Powered by Google App Engine
This is Rietveld 408576698