Skip to content

Commit 0c8c896

Browse files
authored
Merge pull request #7346 from denyshon/patch-6
Update browser_permissions.md
2 parents 19bd506 + da93222 commit 0c8c896

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

docs/browser_permissions.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,26 @@ which will also be your `<origin>`.
7575

7676
The remote troubleshooting API allows support.mozilla.org to access the contents of the `about:support` page.
7777

78-
An additional permission needs to be granted to any origin you want to test this API on.
79-
Open `about:config` and append the relevant `<origin>` to the `webchannel.allowObject.urlWhitelist` preference.
80-
81-
Then [grant the permission](#adding-permissions) as above,
78+
It can be enabled by [granting the permission](#adding-permissions) as above,
8279
where `<permission>` is `remote-troubleshooting`.
8380

8481
### Examples
8582

86-
To enable permanently on staging:
83+
To enable temporarily on staging, [run the following command in the Web Console](#temporarily):
84+
85+
```
86+
Services.perms.addFromPrincipal(
87+
Services.scriptSecurityManager.createContentPrincipalFromOrigin("https://support.allizom.org"),
88+
"remote-troubleshooting",
89+
Services.perms.ALLOW_ACTION
90+
);
91+
```
8792

88-
1. Add `https://support.allizom.org` to `webchannel.allowObject.urlWhitelist`.
93+
To enable permanently on staging:
8994

90-
2. Add `origin remote-troubleshooting 1 https://support.allizom.org` to your [permissions file](#permanently).
95+
1. Add `origin remote-troubleshooting 1 https://support.allizom.org` to your [permissions file](#permanently).
9196

92-
3. Restart Firefox.
97+
2. Restart Firefox.
9398

9499
## UITour API
95100

0 commit comments

Comments
 (0)