New issue
Advanced search Search tips

Issue 850175 link

Starred by 7 users

Issue metadata

Status: Fixed
Owner:
Closed: Jul 17
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 1
Type: Bug



Sign in to add a comment

Mojave: Provide permission reason strings for all resources that Chrome uses

Project Member Reported by rsesek@chromium.org, Jun 6 2018

Issue description

Chrome Version: 69.0.3451.0
OS: macOS 10.14

We should provide the following Info.plist keys for the main app's Info.plist. They need to be localized, so we'll need to get the localized values into the InfoPlist.strings using the infoplist_strings_tool.

NSLocationUsageDescription
NSCameraUsageDescription
NSMicrophoneUsageDescription

And I think we also may need NSPhotoLibraryUsageDescription for the media_galleries API.
 
Labels: Proj-MacMojave
Owner: ellyjo...@chromium.org
Status: Assigned (was: Untriaged)
Labels: Target-69
Owner: rsesek@chromium.org
Handing this one off to rsesek@ :)

Comment 4 by rsesek@chromium.org, Jun 13 2018

Cc: ellyjo...@chromium.org
Elly: Can you work to get the strings we want to use, and then I can wire it up into the build?
Yep! What context exactly do they appear in? I'll work with the UX writers to get proper strings.

Comment 6 by rsesek@chromium.org, Jun 13 2018

These will be shown in a system-controlled prompt when Chrome first requests access to the protected resource. Chrome will then display its own prompt to allow the specific site to use the resource. I was thinking something along the lines of:

"Chrome needs access to your microphone to allow websites to use it. Chrome will ask if you want to allow each website to access to your microphone before giving the website access."

There's a demo of it in this video: https://developer.apple.com/videos/play/wwdc2018/702/
Cc: rsesek@chromium.org
Owner: srahim@chromium.org
Alright, thanks!

Shimi, can you take a look at this? How do we go about getting some strings here?
Ping on this - M69 is coming up and we need to land the strings.
Cc: srahim@chromium.org
Owner: rsesek@chromium.org
Status: Started (was: Assigned)
String from Shimi: "Once Chrome has access, websites will be able to ask you for access."

Screen recording of behavior with it specified: 
Screen Recording 2018-07-12 at 3.39.43 PM.mov
3.9 MB View Download
Project Member

Comment 10 by bugdroid1@chromium.org, Jul 13

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/98ebb971ff030225ffc2017ad2db3d784aafc367

commit 98ebb971ff030225ffc2017ad2db3d784aafc367
Author: Robert Sesek <rsesek@chromium.org>
Date: Fri Jul 13 16:55:21 2018

[Mac] Add a permission reason string for protected resource acceses.

In Mojave, apps should provide a reason string that will be shown in the
OS-mediated permission prompt for protected resources (e.g., camera,
microphone, location). This adds the reason string and places it in the
InfoPlist.strings files.

Bug:  850175 
Change-Id: I1b5c250aa50a2b4086e95c34521a82fae2405ea1
Reviewed-on: https://chromium-review.googlesource.com/1135114
Reviewed-by: Leonard Grey <lgrey@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#574951}
[modify] https://crrev.com/98ebb971ff030225ffc2017ad2db3d784aafc367/chrome/app/chromium_strings.grd
[modify] https://crrev.com/98ebb971ff030225ffc2017ad2db3d784aafc367/chrome/app/google_chrome_strings.grd
[modify] https://crrev.com/98ebb971ff030225ffc2017ad2db3d784aafc367/chrome/tools/build/mac/infoplist_strings_util.mm

Status: Fixed (was: Started)

Sign in to add a comment