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

Issue 2458453002: [sensors] Add Permission guard to the generic sensor apis.

Created:
4 years, 1 month ago by riju_
Modified:
3 years, 8 months ago
Reviewers:
raymes, shalamov, Mikhail
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[sensors][permission] Add Permission guard to the generic sensor apis. Authors: Rijubrata Bhaumik, Maksim Sisov Test page: https://riju.github.io/permissions.html Add permission name sensors Add permission type in permission manager and util Add in generated_resources.grd. Add sensor_permission_context.{h|cc} Add PermissionContextBase methods Add support for inforbar on Android Add permission for sensors in Blink Add sensor_permission_context_unittest.cc Add/Register in content_settings_registry. TODO: Get "sensor" png files. put in chrome/app/theme/ and make the necessary changes. BUG=606766 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Patch Set 1 #

Total comments: 6

Patch Set 2 : Move permissions stuff to SensorProxy, remove aw related stuff #

Total comments: 22

Patch Set 3 : Fix comments + rebase #

Total comments: 32

Patch Set 4 : Fix mikhail's comments #

Total comments: 17

Patch Set 5 : Fix comments #

Total comments: 16

Patch Set 6 : Mikhail+alex comments #

Total comments: 10

Patch Set 7 : Pass only origin to provider #

Total comments: 5

Patch Set 8 : Request for permission, in onSensorCreated() #

Total comments: 10

Patch Set 9 : Handle Denied and Ask differently, add permissionService.reset() #

Total comments: 2

Patch Set 10 : Remove resetPermission + Rebase #

Total comments: 7

Patch Set 11 : rebase #

Patch Set 12 : Add mock permission to sensors + layout tests #

Patch Set 13 : Fix failing browser_tests + Skip generic_sensor_browsertest.cc #

Patch Set 14 : Rebase + fixes #

Patch Set 15 : Rebase + some cleanup #

Patch Set 16 : Move generic_sensor_browsertest.cc from content/ to chrome/ #

Patch Set 17 : cleanups #

Patch Set 18 : browser test only for desktop #

Patch Set 19 : rebase + temp: handleSensorError without args, fix it later for permissions #

Patch Set 20 : Make ambient-light-sensor permission to be always GRANTED. #

Patch Set 21 : rebase + blink reformat #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1551 lines, -617 lines) Patch
M android_webview/browser/aw_permission_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/website/ContentSettingsResources.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SensorInfo.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleWebsitePreferences.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 7 chunks +18 lines, -12 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/website/Website.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +26 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/website/WebsitePermissionsFetcher.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/website/WebsitePreferenceBridge.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +21 lines, -0 lines 0 comments Download
M chrome/android/java/strings/android_chrome_strings.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +52 lines, -0 lines 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/preferences/website_preference_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/browser/android/resource_id.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 7 chunks +31 lines, -2 lines 0 comments Download
A + chrome/browser/generic_sensor_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +32 lines, -24 lines 0 comments Download
M chrome/browser/permissions/permission_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 6 chunks +22 lines, -1 line 0 comments Download
M chrome/browser/permissions/permission_request.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/permissions/permission_request_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_uma_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/content_settings.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/content_settings_exceptions_area.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/content_settings_exceptions_area.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/safe_browsing/permission_reporter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/sensor/sensor_permission_context.h View 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/sensor/sensor_permission_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/sensor/sensor_permission_context_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +138 lines, -0 lines 0 comments Download
A chrome/browser/sensor/sensor_permission_infobar_delegate_android.h View 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/sensor/sensor_permission_infobar_delegate_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +35 lines, -0 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +12 lines, -10 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_image_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +31 lines, -2 lines 0 comments Download
M chrome/browser/ui/page_info/page_info.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/page_info/page_info_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/page_info/page_info_bubble_view_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +15 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +3 lines, -0 lines 0 comments Download
A chrome/test/data/generic_sensor/ambient_light_sensor_test.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/test/data/generic_sensor/sensor.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +44 lines, -0 lines 0 comments Download
M components/content_settings/core/browser/content_settings_registry.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +9 lines, -0 lines 0 comments Download
M components/content_settings/core/common/content_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M components/content_settings/core/common/content_settings_types.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +7 lines, -0 lines 0 comments Download
M components/infobars/core/infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
D content/browser/generic_sensor_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -136 lines 0 comments Download
M content/browser/permissions/permission_service_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +12 lines, -0 lines 0 comments Download
M content/public/browser/permission_type.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +6 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -1 line 0 comments Download
D content/test/data/generic_sensor/ambient_light_sensor_test.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -38 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/permissions/chromium/resources/test-revoke.js View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +94 lines, -46 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/permissions/resources/test-query.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +21 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/resources/permissions-helper.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/sensor/accelerometer.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 8 chunks +70 lines, -31 lines 0 comments Download
M third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +367 lines, -296 lines 0 comments Download
M third_party/WebKit/Source/modules/permissions/PermissionDescriptor.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/permissions/Permissions.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/Sensor.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +14 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorProxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +16 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorProxy.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +75 lines, -3 lines 0 comments Download
M third_party/WebKit/public/platform/modules/permissions/permission.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +6 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +2 lines, -0 lines 0 comments Download
M tools/metrics/rappor/rappor.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 129 (101 generated)
shalamov
https://codereview.chromium.org/2458453002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/Website.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/website/Website.java (right): https://codereview.chromium.org/2458453002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/Website.java#newcode40 chrome/android/java/src/org/chromium/chrome/browser/preferences/website/Website.java:40: private MidiInfo mSensorsInfo; MidiInfo? https://codereview.chromium.org/2458453002/diff/1/third_party/WebKit/Source/modules/sensor/Sensor.cpp File third_party/WebKit/Source/modules/sensor/Sensor.cpp (right): https://codereview.chromium.org/2458453002/diff/1/third_party/WebKit/Source/modules/sensor/Sensor.cpp#newcode129 ...
4 years, 1 month ago (2016-10-27 08:47:25 UTC) #4
Mikhail
https://codereview.chromium.org/2458453002/diff/20001/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp File third_party/WebKit/Source/modules/sensor/SensorProxy.cpp (right): https://codereview.chromium.org/2458453002/diff/20001/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp#newcode255 third_party/WebKit/Source/modules/sensor/SensorProxy.cpp:255: requestPermission(m_executionContext, m_sensorPermission); here it's a bit late to check ...
4 years, 1 month ago (2016-11-04 13:06:00 UTC) #5
shalamov
https://codereview.chromium.org/2458453002/diff/20001/third_party/WebKit/Source/modules/sensor/Sensor.cpp File third_party/WebKit/Source/modules/sensor/Sensor.cpp (right): https://codereview.chromium.org/2458453002/diff/20001/third_party/WebKit/Source/modules/sensor/Sensor.cpp#newcode80 third_party/WebKit/Source/modules/sensor/Sensor.cpp:80: initSensorProxyIfNeeded(); This will request sensor from SensorProvider and initialize ...
4 years, 1 month ago (2016-11-04 19:00:20 UTC) #6
Mikhail
https://codereview.chromium.org/2458453002/diff/20001/third_party/WebKit/Source/modules/sensor/Sensor.cpp File third_party/WebKit/Source/modules/sensor/Sensor.cpp (right): https://codereview.chromium.org/2458453002/diff/20001/third_party/WebKit/Source/modules/sensor/Sensor.cpp#newcode89 third_party/WebKit/Source/modules/sensor/Sensor.cpp:89: if (!UserGestureIndicator::consumeUserGesture()) { must be moved to the beginning. ...
4 years, 1 month ago (2016-11-07 08:02:02 UTC) #7
riju_
Please take a look. Layout tests still to be added. https://codereview.chromium.org/2458453002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/Website.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/website/Website.java (right): https://codereview.chromium.org/2458453002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/Website.java#newcode40 ...
4 years, 1 month ago (2016-11-09 10:30:34 UTC) #8
Mikhail
Reviewed third_party/WebKit/Source/modules/sensor only https://codereview.chromium.org/2458453002/diff/40001/third_party/WebKit/Source/modules/sensor/Sensor.cpp File third_party/WebKit/Source/modules/sensor/Sensor.cpp (right): https://codereview.chromium.org/2458453002/diff/40001/third_party/WebKit/Source/modules/sensor/Sensor.cpp#newcode111 third_party/WebKit/Source/modules/sensor/Sensor.cpp:111: stopListening(); how can be sensor listening ...
4 years, 1 month ago (2016-11-10 09:30:49 UTC) #9
Mikhail
General comments/recommendations: IMO permission request should be treated as a part of SensorProxy initialization: i.e. ...
4 years, 1 month ago (2016-11-10 09:48:24 UTC) #10
riju_
Thanks Mikhail for the comments. PTAL. https://codereview.chromium.org/2458453002/diff/40001/third_party/WebKit/Source/modules/sensor/Sensor.cpp File third_party/WebKit/Source/modules/sensor/Sensor.cpp (right): https://codereview.chromium.org/2458453002/diff/40001/third_party/WebKit/Source/modules/sensor/Sensor.cpp#newcode111 third_party/WebKit/Source/modules/sensor/Sensor.cpp:111: stopListening(); On 2016/11/10 ...
4 years, 1 month ago (2016-11-14 14:00:07 UTC) #11
shalamov
https://codereview.chromium.org/2458453002/diff/100001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp File third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp (right): https://codereview.chromium.org/2458453002/diff/100001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp#newcode53 third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp:53: m_permissionService.reset(); If you reset it here, and access it ...
4 years, 1 month ago (2016-11-14 14:40:07 UTC) #14
Mikhail
https://codereview.chromium.org/2458453002/diff/100001/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp File third_party/WebKit/Source/modules/sensor/SensorProxy.cpp (right): https://codereview.chromium.org/2458453002/diff/100001/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp#newcode40 third_party/WebKit/Source/modules/sensor/SensorProxy.cpp:40: m_securityOrigin(std::move(origin)) {} no need to move PassRefPtr, I think ...
4 years, 1 month ago (2016-11-15 14:03:18 UTC) #15
shalamov
https://codereview.chromium.org/2458453002/diff/100001/third_party/WebKit/Source/modules/sensor/Sensor.cpp File third_party/WebKit/Source/modules/sensor/Sensor.cpp (right): https://codereview.chromium.org/2458453002/diff/100001/third_party/WebKit/Source/modules/sensor/Sensor.cpp#newcode77 third_party/WebKit/Source/modules/sensor/Sensor.cpp:77: if (!UserGestureIndicator::consumeUserGesture()) { I have two comments for this ...
4 years, 1 month ago (2016-11-16 11:10:22 UTC) #16
riju_
PTAL. https://codereview.chromium.org/2458453002/diff/100001/third_party/WebKit/Source/modules/sensor/Sensor.cpp File third_party/WebKit/Source/modules/sensor/Sensor.cpp (right): https://codereview.chromium.org/2458453002/diff/100001/third_party/WebKit/Source/modules/sensor/Sensor.cpp#newcode77 third_party/WebKit/Source/modules/sensor/Sensor.cpp:77: if (!UserGestureIndicator::consumeUserGesture()) { On 2016/11/16 11:10:22, shalamov wrote: ...
4 years, 1 month ago (2016-11-16 12:38:26 UTC) #19
Mikhail
https://codereview.chromium.org/2458453002/diff/160001/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp File third_party/WebKit/Source/modules/sensor/SensorProxy.cpp (right): https://codereview.chromium.org/2458453002/diff/160001/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp#newcode52 third_party/WebKit/Source/modules/sensor/SensorProxy.cpp:52: WTF::bind(&SensorProxy::onPermissionUpdate, wrapPersistent(this)))); wrapPersistent will hold SensorProxy from deletion until ...
4 years, 1 month ago (2016-11-16 13:04:28 UTC) #20
shalamov
https://codereview.chromium.org/2458453002/diff/160001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp File third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp (right): https://codereview.chromium.org/2458453002/diff/160001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp#newcode60 third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp:60: SensorProxy* SensorProviderProxy::createSensor( I think we should rename it to ...
4 years, 1 month ago (2016-11-16 19:03:49 UTC) #21
riju_
Guys, please take a look. https://codereview.chromium.org/2458453002/diff/160001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h File third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h (right): https://codereview.chromium.org/2458453002/diff/160001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h#newcode8 third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h:8: #include "core/dom/ExecutionContext.h" On 2016/11/16 ...
4 years, 1 month ago (2016-11-18 09:29:35 UTC) #22
Mikhail
https://codereview.chromium.org/2458453002/diff/180001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp File third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp (right): https://codereview.chromium.org/2458453002/diff/180001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp#newcode83 third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp:83: return nullptr; createSensor should not return nullptr, if there ...
4 years, 1 month ago (2016-11-18 12:37:43 UTC) #23
shalamov
https://codereview.chromium.org/2458453002/diff/180001/third_party/WebKit/Source/modules/sensor/Sensor.cpp File third_party/WebKit/Source/modules/sensor/Sensor.cpp (right): https://codereview.chromium.org/2458453002/diff/180001/third_party/WebKit/Source/modules/sensor/Sensor.cpp#newcode173 third_party/WebKit/Source/modules/sensor/Sensor.cpp:173: if (!m_sensorProxy) This is sync operation that is initiated ...
4 years, 1 month ago (2016-11-18 13:17:45 UTC) #24
riju_
please take a look. https://codereview.chromium.org/2458453002/diff/180001/third_party/WebKit/Source/modules/sensor/Sensor.cpp File third_party/WebKit/Source/modules/sensor/Sensor.cpp (right): https://codereview.chromium.org/2458453002/diff/180001/third_party/WebKit/Source/modules/sensor/Sensor.cpp#newcode173 third_party/WebKit/Source/modules/sensor/Sensor.cpp:173: if (!m_sensorProxy) On 2016/11/18 13:17:45, ...
4 years, 1 month ago (2016-11-21 11:23:28 UTC) #26
Mikhail
looks like various raise conditions are possible https://codereview.chromium.org/2458453002/diff/220001/third_party/WebKit/Source/modules/sensor/Sensor.cpp File third_party/WebKit/Source/modules/sensor/Sensor.cpp (right): https://codereview.chromium.org/2458453002/diff/220001/third_party/WebKit/Source/modules/sensor/Sensor.cpp#newcode173 third_party/WebKit/Source/modules/sensor/Sensor.cpp:173: provider->createSensor(m_type, origin, ...
4 years, 1 month ago (2016-11-21 14:29:41 UTC) #27
Mikhail
https://codereview.chromium.org/2458453002/diff/240001/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp File third_party/WebKit/Source/modules/sensor/SensorProxy.cpp (right): https://codereview.chromium.org/2458453002/diff/240001/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp#newcode46 third_party/WebKit/Source/modules/sensor/SensorProxy.cpp:46: m_permissionStatus = status; looks like 'm_permissionStatus' is not needed ...
4 years ago (2016-11-22 21:24:41 UTC) #28
riju_
PTAL. https://codereview.chromium.org/2458453002/diff/220001/third_party/WebKit/Source/modules/sensor/Sensor.cpp File third_party/WebKit/Source/modules/sensor/Sensor.cpp (right): https://codereview.chromium.org/2458453002/diff/220001/third_party/WebKit/Source/modules/sensor/Sensor.cpp#newcode173 third_party/WebKit/Source/modules/sensor/Sensor.cpp:173: provider->createSensor(m_type, origin, createSensorReadingFactory()); On 2016/11/21 14:29:41, Mikhail wrote: ...
4 years ago (2016-11-23 09:02:29 UTC) #30
shalamov
https://codereview.chromium.org/2458453002/diff/280001/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp File third_party/WebKit/Source/modules/sensor/SensorProxy.cpp (right): https://codereview.chromium.org/2458453002/diff/280001/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp#newcode51 third_party/WebKit/Source/modules/sensor/SensorProxy.cpp:51: m_provider->resetPermissionService(); This will invalidate permission service in proxy, and ...
4 years ago (2016-11-23 12:37:50 UTC) #31
Mikhail
https://codereview.chromium.org/2458453002/diff/300001/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp File third_party/WebKit/Source/modules/sensor/SensorProxy.cpp (right): https://codereview.chromium.org/2458453002/diff/300001/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp#newcode49 third_party/WebKit/Source/modules/sensor/SensorProxy.cpp:49: m_permissionStatus = status; Think m_permissionStatus is not needed as ...
4 years ago (2016-11-28 20:07:53 UTC) #32
riju_
comments inline. https://codereview.chromium.org/2458453002/diff/280001/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp File third_party/WebKit/Source/modules/sensor/SensorProxy.cpp (right): https://codereview.chromium.org/2458453002/diff/280001/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp#newcode51 third_party/WebKit/Source/modules/sensor/SensorProxy.cpp:51: m_provider->resetPermissionService(); On 2016/11/23 12:37:49, shalamov wrote: > ...
4 years ago (2016-11-29 07:19:47 UTC) #33
shalamov
https://codereview.chromium.org/2458453002/diff/300001/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp File third_party/WebKit/Source/modules/sensor/SensorProxy.cpp (right): https://codereview.chromium.org/2458453002/diff/300001/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp#newcode49 third_party/WebKit/Source/modules/sensor/SensorProxy.cpp:49: m_permissionStatus = status; On 2016/11/29 07:19:47, riju_ wrote: > ...
4 years ago (2016-11-29 08:29:11 UTC) #34
Mikhail
https://codereview.chromium.org/2458453002/diff/300001/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp File third_party/WebKit/Source/modules/sensor/SensorProxy.cpp (right): https://codereview.chromium.org/2458453002/diff/300001/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp#newcode49 third_party/WebKit/Source/modules/sensor/SensorProxy.cpp:49: m_permissionStatus = status; On 2016/11/29 07:19:47, riju_ wrote: > ...
4 years ago (2016-11-29 08:46:29 UTC) #35
riju_
@raymes: hi, got to know from alexis and jeffrey that you will be helping us ...
3 years, 10 months ago (2017-02-03 16:10:29 UTC) #96
raymes
3 years, 10 months ago (2017-02-03 17:18:53 UTC) #99
On 2017/02/03 16:10:29, riju_ wrote:
> @raymes: hi, got to know from alexis and jeffrey that you will be helping us
out
> with the permissions UI and security review. Please take a look and let me
know
> what else needs to be done. 
> Feel free to add other members of the security team who might be interested. 
> FYI : I am using midi's image/gfx as of now.

Thanks Rijubrata! Taking a step back we need to decide on the security UX
requirements before getting into the code specifics.  Let's follow up on that on
the email thread and then we can go from there. Thanks!

Powered by Google App Engine
This is Rietveld 408576698