Closed
Bug 1615134
Opened 5 years ago
Closed 5 years ago
Add an API to open macOS Security & Privacy preference panes
Categories
(Firefox :: Shell Integration, enhancement, P2)
Tracking
()
RESOLVED
FIXED
Firefox 75
Tracking | Status | |
---|---|---|
firefox75 | --- | fixed |
People
(Reporter: MattN, Assigned: MattN)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
For bug 1493103 and other issues related to macOS permissions, it would be helpful for users if Firefox could open a specific macOS Security & Privacy pane.
Comment 1•5 years ago
|
||
Apparently, this is as easy as calling the following:
[[NSWorkspace sharedWorkspace] openURL:[NSURL fileURLWithPath:@"/System/Library/PreferencePanes/[Name-Of-Pref-Pane].prefPane"]];
I haven't tested this though and it almost seems too easy to be true.
Assignee | ||
Comment 2•5 years ago
|
||
What we need is 2 levels more advanced as we need to select the right tab and pane within that. I will attach a patch shortly.
Assignee | ||
Comment 3•5 years ago
|
||
Example: Cc["@mozilla.org/browser/shell-service;1"].getService(Ci.nsIMacShellService).showSecurityPreferences("Privacy_AllFiles")
Pushed by mozilla@noorenberghe.ca: https://hg.mozilla.org/integration/autoland/rev/ccbbd26e4bec Shell service API to open macOS Security & Privacy preferences panes. r=spohl
Comment 5•5 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox75:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 75
You need to log in
before you can comment on or make changes to this bug.
Description
•