File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed
Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -75,21 +75,26 @@ which will also be your `<origin>`.
7575
7676The 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,
8279where ` <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
You can’t perform that action at this time.
0 commit comments