mirror of
https://codeberg.org/librewolf/source.git
synced 2024-12-22 21:53:31 -05:00
add ocsp hard-fail toggle
This commit is contained in:
parent
930cbe5e65
commit
e346e0e077
1 changed files with 31 additions and 6 deletions
|
@ -30,10 +30,10 @@ index 4f3babe..97c7ec2 100644
|
||||||
content/browser/preferences/experimental.js
|
content/browser/preferences/experimental.js
|
||||||
diff --git a/browser/components/preferences/librewolf.inc.xhtml b/browser/components/preferences/librewolf.inc.xhtml
|
diff --git a/browser/components/preferences/librewolf.inc.xhtml b/browser/components/preferences/librewolf.inc.xhtml
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000..c13144f
|
index 0000000..f27541d
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/browser/components/preferences/librewolf.inc.xhtml
|
+++ b/browser/components/preferences/librewolf.inc.xhtml
|
||||||
@@ -0,0 +1,209 @@
|
@@ -0,0 +1,224 @@
|
||||||
+# This Source Code Form is subject to the terms of the Mozilla Public
|
+# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
+# License, v. 2.0. If a copy of the MPL was not distributed with this
|
+# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
@ -78,6 +78,7 @@ index 0000000..c13144f
|
||||||
+ </vbox>
|
+ </vbox>
|
||||||
+ </vbox>
|
+ </vbox>
|
||||||
+
|
+
|
||||||
|
+
|
||||||
+ <hbox>
|
+ <hbox>
|
||||||
+ <checkbox id="librewolf-autocopy-checkbox" data-l10n-id="librewolf-autocopy-checkbox" preference="clipboard.autocopy" flex="1" />
|
+ <checkbox id="librewolf-autocopy-checkbox" data-l10n-id="librewolf-autocopy-checkbox" preference="clipboard.autocopy" flex="1" />
|
||||||
+ <html:label for="librewolf-autocopy-collapse" class="sidebar-footer-link" pack="end"> <image class="sidebar-footer-icon help-icon"/> </html:label>
|
+ <html:label for="librewolf-autocopy-collapse" class="sidebar-footer-link" pack="end"> <image class="sidebar-footer-icon help-icon"/> </html:label>
|
||||||
|
@ -182,12 +183,26 @@ index 0000000..c13144f
|
||||||
+ </vbox>
|
+ </vbox>
|
||||||
+ </vbox>
|
+ </vbox>
|
||||||
+
|
+
|
||||||
|
+
|
||||||
+</groupbox>
|
+</groupbox>
|
||||||
+
|
+
|
||||||
+<groupbox hidden="true" data-category="paneLibrewolf">
|
+<groupbox hidden="true" data-category="paneLibrewolf">
|
||||||
+ <html:h2 data-l10n-id="librewolf-security-heading" />
|
+ <html:h2 data-l10n-id="librewolf-security-heading" />
|
||||||
+
|
+
|
||||||
+ <hbox>
|
+ <hbox>
|
||||||
|
+ <checkbox id="librewolf-ocsp-checkbox" data-l10n-id="librewolf-ocsp-checkbox" preference="security.OCSP.require" flex="1" />
|
||||||
|
+ <html:label for="librewolf-ocsp-collapse" class="sidebar-footer-link" pack="end"> <image class="sidebar-footer-icon help-icon"/> </html:label>
|
||||||
|
+ </hbox>
|
||||||
|
+ <vbox class="librewolf-collapse indent">
|
||||||
|
+ <html:input type="checkbox" id="librewolf-ocsp-collapse" />
|
||||||
|
+ <vbox class="librewolf-collapsed tracking-protection-ui content-blocking-category">
|
||||||
|
+ <label data-l10n-id="librewolf-ocsp-description" />
|
||||||
|
+ <html:div> <image src="chrome://browser/skin/warning.svg" /> <label data-l10n-id="librewolf-ocsp-warning1" class="librewolf-warning" /> </html:div>
|
||||||
|
+ <checkbox preference="security.OCSP.require" label="security.OCSP.require" />
|
||||||
|
+ </vbox>
|
||||||
|
+ </vbox>
|
||||||
|
+
|
||||||
|
+ <hbox>
|
||||||
+ <checkbox id="librewolf-goog-safe-checkbox" data-l10n-id="librewolf-goog-safe-checkbox" preference="browser.safebrowsing.malware.enabled" flex="1" />
|
+ <checkbox id="librewolf-goog-safe-checkbox" data-l10n-id="librewolf-goog-safe-checkbox" preference="browser.safebrowsing.malware.enabled" flex="1" />
|
||||||
+ <html:label for="librewolf-goog-safe-collapse" class="sidebar-footer-link" pack="end"> <image class="sidebar-footer-icon help-icon"/> </html:label>
|
+ <html:label for="librewolf-goog-safe-collapse" class="sidebar-footer-link" pack="end"> <image class="sidebar-footer-icon help-icon"/> </html:label>
|
||||||
+ </hbox>
|
+ </hbox>
|
||||||
|
@ -245,10 +260,10 @@ index 0000000..c13144f
|
||||||
+</html:template>
|
+</html:template>
|
||||||
diff --git a/browser/components/preferences/librewolf.js b/browser/components/preferences/librewolf.js
|
diff --git a/browser/components/preferences/librewolf.js b/browser/components/preferences/librewolf.js
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000..68aaffd
|
index 0000000..ee49f0f
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/browser/components/preferences/librewolf.js
|
+++ b/browser/components/preferences/librewolf.js
|
||||||
@@ -0,0 +1,234 @@
|
@@ -0,0 +1,240 @@
|
||||||
+/* This Source Code Form is subject to the terms of the Mozilla Public
|
+/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||||
+ * You can obtain one at http://mozilla.org/MPL/2.0/. */
|
+ * You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
@ -267,6 +282,7 @@ index 0000000..68aaffd
|
||||||
+Preferences.addAll([
|
+Preferences.addAll([
|
||||||
+ // IPv6
|
+ // IPv6
|
||||||
+ { id: "network.dns.disableIPv6", type: "bool" },
|
+ { id: "network.dns.disableIPv6", type: "bool" },
|
||||||
|
+ { id: "security.OCSP.require", type: "bool" },
|
||||||
+ // WebGL
|
+ // WebGL
|
||||||
+ { id: "webgl.disabled", type: "bool" },
|
+ { id: "webgl.disabled", type: "bool" },
|
||||||
+ // RFP
|
+ // RFP
|
||||||
|
@ -314,6 +330,11 @@ index 0000000..68aaffd
|
||||||
+ [false, ],
|
+ [false, ],
|
||||||
+ );
|
+ );
|
||||||
+ setBoolSyncListeners(
|
+ setBoolSyncListeners(
|
||||||
|
+ "librewolf-ocsp-checkbox",
|
||||||
|
+ ["security.OCSP.require"],
|
||||||
|
+ [true, ],
|
||||||
|
+ );
|
||||||
|
+ setBoolSyncListeners(
|
||||||
+ "librewolf-autocopy-checkbox",
|
+ "librewolf-autocopy-checkbox",
|
||||||
+ ["clipboard.autocopy", "middlemouse.paste"],
|
+ ["clipboard.autocopy", "middlemouse.paste"],
|
||||||
+ [true, true ],
|
+ [true, true ],
|
||||||
|
@ -542,10 +563,10 @@ index aab4a9e..907a631 100644
|
||||||
#include sync.inc.xhtml
|
#include sync.inc.xhtml
|
||||||
#include experimental.inc.xhtml
|
#include experimental.inc.xhtml
|
||||||
diff --git a/browser/locales/en-US/browser/preferences/preferences.ftl b/browser/locales/en-US/browser/preferences/preferences.ftl
|
diff --git a/browser/locales/en-US/browser/preferences/preferences.ftl b/browser/locales/en-US/browser/preferences/preferences.ftl
|
||||||
index d276f7a..39f3660 100644
|
index d276f7a..127c8e1 100644
|
||||||
--- a/browser/locales/en-US/browser/preferences/preferences.ftl
|
--- a/browser/locales/en-US/browser/preferences/preferences.ftl
|
||||||
+++ b/browser/locales/en-US/browser/preferences/preferences.ftl
|
+++ b/browser/locales/en-US/browser/preferences/preferences.ftl
|
||||||
@@ -1347,3 +1347,78 @@ choose-download-folder-title = Choose Download Folder:
|
@@ -1347,3 +1347,82 @@ choose-download-folder-title = Choose Download Folder:
|
||||||
# $service-name (String) - Name of a cloud storage provider like Dropbox, Google Drive, etc...
|
# $service-name (String) - Name of a cloud storage provider like Dropbox, Google Drive, etc...
|
||||||
save-files-to-cloud-storage =
|
save-files-to-cloud-storage =
|
||||||
.label = Save files to { $service-name }
|
.label = Save files to { $service-name }
|
||||||
|
@ -578,6 +599,8 @@ index d276f7a..39f3660 100644
|
||||||
+librewolf-broken-heading = Fingerprinting
|
+librewolf-broken-heading = Fingerprinting
|
||||||
+librewolf-webgl-checkbox =
|
+librewolf-webgl-checkbox =
|
||||||
+ .label = Enable WebGL
|
+ .label = Enable WebGL
|
||||||
|
+librewolf-ocsp-checkbox =
|
||||||
|
+ .label = Enforce OCSP hard-fail
|
||||||
+librewolf-rfp-checkbox =
|
+librewolf-rfp-checkbox =
|
||||||
+ .label = Enable ResistFingerprinting
|
+ .label = Enable ResistFingerprinting
|
||||||
+librewolf-auto-decline-canvas-checkbox =
|
+librewolf-auto-decline-canvas-checkbox =
|
||||||
|
@ -597,6 +620,8 @@ index d276f7a..39f3660 100644
|
||||||
+
|
+
|
||||||
+librewolf-ipv6-description = Allow { -brand-short-name } to connect using IPv6.
|
+librewolf-ipv6-description = Allow { -brand-short-name } to connect using IPv6.
|
||||||
+librewolf-ipv6-warning1 = Before you change this, make sure your OS uses the IPv6 privacy extension.
|
+librewolf-ipv6-warning1 = Before you change this, make sure your OS uses the IPv6 privacy extension.
|
||||||
|
+librewolf-ocsp-description = Prevent connecting to a website if the OCSP check cannot be performed.
|
||||||
|
+librewolf-ocsp-warning1 = This increases security, but it will cause breakage when a OCSP server is down.
|
||||||
+
|
+
|
||||||
+librewolf-autocopy-description = Select some text to copy it, then paste it with a middle-mouse click.
|
+librewolf-autocopy-description = Select some text to copy it, then paste it with a middle-mouse click.
|
||||||
+
|
+
|
||||||
|
|
Loading…
Reference in a new issue