mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 13:58:49 +00:00
[Basilisk] Issue #47 - add checkboxes to toggle WebRTC and WASM
This commit is contained in:
@@ -22,6 +22,16 @@
|
||||
<preference id="font.language.group"
|
||||
name="font.language.group"
|
||||
type="wstring"/>
|
||||
|
||||
<!-- JavaScript -->
|
||||
<preference id="javascript.options.wasm"
|
||||
name="javascript.options.wasm"
|
||||
type="bool"/>
|
||||
#ifdef MOZ_WEBRTC
|
||||
<preference id="media.peerconnection.enabled"
|
||||
name="media.peerconnection.enabled"
|
||||
type="bool"/>
|
||||
#endif
|
||||
</preferences>
|
||||
|
||||
<script type="application/javascript"
|
||||
@@ -187,3 +197,32 @@
|
||||
accesskey="&chooseButton.accesskey;"/>
|
||||
</hbox>
|
||||
</groupbox>
|
||||
|
||||
<!-- JavaScript -->
|
||||
<groupbox id="javascriptGroup" data-category="paneContent" hidden="true">
|
||||
<caption><label>&javascript.label;</label></caption>
|
||||
<grid id="javascriptGrid">
|
||||
<columns>
|
||||
<column flex="1"/>
|
||||
<column/>
|
||||
</columns>
|
||||
<rows id="javascriptRows">
|
||||
<row id="javascriptRow1">
|
||||
<vbox align="start">
|
||||
<checkbox id="javascriptWasmPolicy"
|
||||
preference="javascript.options.wasm"
|
||||
label="&javascriptWasm.label;"
|
||||
accesskey="&javascriptWasm.accesskey;" />
|
||||
</vbox>
|
||||
</row>
|
||||
<row id="javascriptRow2">
|
||||
<vbox align="start">
|
||||
<checkbox id="javascriptWebRTCPolicy"
|
||||
preference="media.peerconnection.enabled"
|
||||
label="&javascriptWebrtc.label;"
|
||||
accesskey="&javascriptWebrtc.accesskey;" />
|
||||
</vbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</groupbox>
|
||||
|
||||
@@ -43,3 +43,12 @@
|
||||
<!ENTITY playDRMContent.label "Play DRM content">
|
||||
<!ENTITY playDRMContent.accesskey "P">
|
||||
<!ENTITY playDRMContent.learnMore.label "Learn more">
|
||||
|
||||
<!ENTITY javascript.label "JavaScript">
|
||||
|
||||
<!ENTITY javascriptWasm.label "Enable WebAssembly (WASM)">
|
||||
<!ENTITY javascriptWasm.accesskey "y">
|
||||
#ifdef MOZ_WEBRTC
|
||||
<!ENTITY javascriptWebrtc.label "Enable WebRTC">
|
||||
<!ENTITY javascriptWebrtc.accesskey "R">
|
||||
#endif
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
locale/browser/preferences/applicationManager.properties (%chrome/browser/preferences/applicationManager.properties)
|
||||
locale/browser/preferences/colors.dtd (%chrome/browser/preferences/colors.dtd)
|
||||
locale/browser/preferences/cookies.dtd (%chrome/browser/preferences/cookies.dtd)
|
||||
locale/browser/preferences/content.dtd (%chrome/browser/preferences/content.dtd)
|
||||
* locale/browser/preferences/content.dtd (%chrome/browser/preferences/content.dtd)
|
||||
locale/browser/preferences/connection.dtd (%chrome/browser/preferences/connection.dtd)
|
||||
locale/browser/preferences/applications.dtd (%chrome/browser/preferences/applications.dtd)
|
||||
locale/browser/preferences/fonts.dtd (%chrome/browser/preferences/fonts.dtd)
|
||||
|
||||
Reference in New Issue
Block a user