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)

All
macOS
enhancement

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.

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.

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.

Example: Cc["@mozilla.org/browser/shell-service;1"].getService(Ci.nsIMacShellService).showSecurityPreferences("Privacy_AllFiles")

Blocks: 1494172
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
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 75
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: