Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
torbutton
Commits
4306713f
Commit
4306713f
authored
Dec 13, 2018
by
Georg Koppen
Browse files
Bug 21805: Add click-to-play button for WebGL
parent
c0976499
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules/noscript-control.js
View file @
4306713f
...
...
@@ -17,7 +17,7 @@ let log = (level, msg) => logger.log(level, msg);
// ## NoScript settings
// Minimum and maximum capability states as controlled by NoScript.
const
max_caps
=
[
"
fetch
"
,
"
font
"
,
"
frame
"
,
"
media
"
,
"
object
"
,
"
other
"
,
"
script
"
,
"
webgl
"
];
const
max_caps
=
[
"
fetch
"
,
"
font
"
,
"
frame
"
,
"
media
"
,
"
object
"
,
"
other
"
,
"
script
"
];
const
min_caps
=
[
"
frame
"
,
"
other
"
];
// Untrusted capabilities for [Standard, Safer, Safest] safety levels.
...
...
@@ -30,7 +30,7 @@ const untrusted_caps = [
// Default capabilities for [Standard, Safer, Safest] safety levels.
const
default_caps
=
[
max_caps
,
// standard: both http and https
[
"
fetch
"
,
"
font
"
,
"
frame
"
,
"
object
"
,
"
other
"
,
"
script
"
,
"
webgl
"
],
// safer: https only
[
"
fetch
"
,
"
font
"
,
"
frame
"
,
"
object
"
,
"
other
"
,
"
script
"
],
// safer: https only
min_caps
,
// safest: both http and https
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment