Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dektop] Add Brave app automatically to Full Disk Access panel for macOS #8343

Closed
simonhong opened this issue Feb 21, 2020 · 5 comments · Fixed by brave/brave-core#5383
Closed

Comments

@simonhong
Copy link
Member

simonhong commented Feb 21, 2020

After merging brave/brave-core#4530, brave isn't added that panel automatically.
In that PR, it checks safari folder permission by using PathIsWritable().
Maybe other file access api like open could add automatically.

STR:

  1. Remove brave from full disk accessed list
  2. Launch brave and import safari
  3. Check full disk access required dialog
  4. Check brave is automatically added in full disk accessed list candidate with not checked state.
@rebron
Copy link
Collaborator

rebron commented Apr 17, 2020

For context to add Brave into the panel: brave/brave-core#4530 (comment)

@rebron rebron added the priority/P3 The next thing for us to work on. It'll ride the trains. label Apr 17, 2020
@simonhong simonhong added this to the 1.10.x - Nightly milestone Apr 27, 2020
@kjozwiak
Copy link
Member

Verification PASSED on macOS 10.15.5 x64 using the following build:

Brave | 1.11.80 Chromium: 83.0.4103.116 (Official Build) dev (64-bit)
-- | --
Revision | 8f0c18b4dca9b6699eb629be0f51810c24fb6428-refs/branch-heads/4103@{#716}
OS | macOS Version 10.15.5 (Build 19F101)
  • went through the STR/Cases outlined via [Dektop] Add Brave app automatically to Full Disk Access panel for macOS #8343 (comment)
  • verified that once you select Import when importing from Safari, Brave is added into Full Disk Access but not selected
  • ensured that selecting Open System Preferences correctly opens Security & Privacy
  • ensured that selecting Cancel closes the modal and doesn't open Security & Privacy
    • ensured that when cancelling, Brave is still added into Full Disk Access but not selected
  • ensured that import from Safari works from once Full Disk Access is given to Brave
    • ensured that both History & Bookmarks/Favourites were being imported

Screen Shot 2020-06-29 at 12 42 35 PM

Screen Shot 2020-06-29 at 12 50 33 PM

@LaurenWags
Copy link
Member

Using Mojave 10.14.6 the test plan from the description is not working for me.

Steps:

  1. Navigated to System Prefs > Security & Privacy > Privacy and confirmed Brave Browser Dev was not in the list. Closed System Prefs.
  2. Clean profile w/ 1.11.x
  3. Opened brave://settings/importData (Safari is default) and clicked on Import
  4. Got the popup as expected:

Screen Shot 2020-06-29 at 1 17 18 PM

  1. Clicked on Open System Preferences.
  2. System Prefs was opened but Brave Browser Dev was not in the list automatically, although I could add it manually.

Screen Shot 2020-06-29 at 1 18 08 PM

Brave | 1.11.80 Chromium: 83.0.4103.116 (Official Build) dev (64-bit)
-- | --
Revision | 8f0c18b4dca9b6699eb629be0f51810c24fb6428-refs/branch-heads/4103@{#716}
OS | macOS Version 10.14.6 (Build 18G3020)

@kjozwiak
Copy link
Member

kjozwiak commented Jun 30, 2020

@rebron @simonhong could someone check to see if the above works for you on Catalina? @simonhong do you know if the above fix should also be working on Mojave or is this only for >=Catalina?

@simonhong let me know if the above fix is possible on Mojave. I think we should be fine though but can always create a follow up and label it as P4. Once Big Sur gets released, Mojave market share will probably be pretty low. CCing @rebron @bsclifton on thoughts.

Going to label this as QA/Pass as #8343 (comment) isn't a blocker IMO.

@simonhong
Copy link
Member Author

simonhong commented Jun 30, 2020

@kjozwiak This works on my local macOS(Catalina).
This was fixed indirectly by using OS-version independent file open API. If application tries to open some files/folders that needs full disk access permission, catalina seems to add that application to the list automatically.
I think this behavior could be dependent on os version.

@rebron rebron changed the title Add Brave app automatically to Full disk access panel [Dektop] Add Brave app automatically to Full disk access panel for macOS Jul 14, 2020
@rebron rebron changed the title [Dektop] Add Brave app automatically to Full disk access panel for macOS [Dektop] Add Brave app automatically to Full Disk Access panel for macOS Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants