Skip to content

Commit c57accd

Browse files
committed
Add CSP setting
1 parent a807666 commit c57accd

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

browser/components/preferences/main.inc.xhtml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,13 @@
170170
</hbox>
171171
<description class="indent tip-caption" data-l10n-id="r3dfox-modern-desc"/>
172172

173+
<hbox align="center">
174+
<checkbox id="r3dfoxcsp"
175+
data-l10n-id="r3dfox-csp"
176+
preference="security.csp.enable"/>
177+
</hbox>
178+
<description class="indent tip-caption" data-l10n-id="r3dfox-csp-desc"/>
179+
173180
<hbox align="center">
174181
<checkbox id="r3dfoxe10s"
175182
data-l10n-id="r3dfox-e10s"

browser/components/preferences/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ Preferences.addAll([
8181
{ id: "r3dfox.view.image", type: "bool" },
8282
{ id: "widget.windows-style.modern", type: "bool" },
8383
{ id: "browser.e10s.disabled", type: "bool" },
84+
{ id: "security.csp.enable", type: "bool", inverted: true },
8485
{ id: "accessibility.force_disabled", type: "int" },
8586

8687
/* Tab preferences

browser/locales/en-US/browser/preferences/preferences.ftl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,11 @@ r3dfox-modern =
237237
238238
r3dfox-modern-desc = Enable for standard Firefox Windows 10 UI on all platforms.
239239
240+
r3dfox-csp =
241+
.label = Disable Content Security Policy (CSP)
242+
243+
r3dfox-csp-desc = CSP is a security feature, improperly designed websites may require disabling CSP. Not recommended unless you know what you are doing.
244+
240245
r3dfox-e10s =
241246
.label = Disable content multiprocess (e10s) (BETA)
242247

0 commit comments

Comments
 (0)