clean up standards definitions, add new 'Lite' configuration

This commit is contained in:
Peter Snyder 2017-10-23 01:05:17 -05:00
parent 2fab105620
commit 6b690cecf5
5 changed files with 41 additions and 5 deletions

View file

@ -16,6 +16,9 @@
</div>
<div class="panel-body">
<button @click="onLiteClicked">
Use Lite Settings
</button>
<button @click="onConservativeClicked">
Use Conservative Settings
</button>
@ -28,7 +31,15 @@
<button @click="onAllClicked">
Block All
</button>
</div>
<div class="panel-footer">
<strong>Lite</strong> is designed to have a minimal
impact on typical browsing while still providing
security and privacy improvements.
<strong>Conservative</strong> and <strong>Aggressive</strong>
provide extra protections, though will impact the
functionaltiy more sites.
</div>
</div>
@ -55,6 +66,9 @@
onStandardChecked: function () {
this.$root.$data.setSelectedStandards(this.selectedStandards);
},
onLiteClicked: function () {
this.$root.$data.setSelectedStandards(standardsDefaults.lite);
},
onConservativeClicked: function () {
this.$root.$data.setSelectedStandards(standardsDefaults.conservative);
},

View file

@ -5,7 +5,23 @@
*/
window.WEB_API_MANAGER.defaults = {};
window.WEB_API_MANAGER.defaults.lite = [
"Beacon",
"Ambient Light Sensor API",
"Scalable Vector Graphics (SVG) 1.1 (Second Edition)",
"Geolocation API",
"Gamepad",
"Web Audio API",
"Battery Status API",
"WebVTT: The Web Video Text Tracks Format",
"WebRTC 1.0: Real-time Communication Between Browser",
"WebGL Specification",
"Geometry Interfaces Module Level 1",
"Web Notifications",
];
window.WEB_API_MANAGER.defaults.conservative = [
"Beacon",
"MediaStream Recording",
"DOM Parsing and Serialization",
"Fullscreen API",
@ -16,10 +32,10 @@ window.WEB_API_MANAGER.defaults.conservative = [
"Indexed Database API",
"Performance Timeline Level 2",
"Resource Timing",
"Scalable Vector Graphics 1.1",
"UI Events Specification",
"WebGL Specification",
"Web Audio API",
"WebGL Specification"
"Scalable Vector Graphics (SVG) 1.1 (Second Edition)",
];
window.WEB_API_MANAGER.defaults.aggressive = window.WEB_API_MANAGER.defaults.conservative.concat([
@ -52,5 +68,5 @@ window.WEB_API_MANAGER.defaults.aggressive = window.WEB_API_MANAGER.defaults.con
"User Timing Level 2",
"W3C DOM4",
"Web Notifications",
"WebRTC 1.0"
"WebRTC 1.0: Real-time Communication Between Browser"
]);

File diff suppressed because one or more lines are too long

View file

@ -1,5 +1,11 @@
{
"manifest_version": 2,
"applications": {
"gecko": {
"id": "webapimanager@peteresnyder.com",
"strict_min_version": "54.0"
}
},
"name": "WebAPI Manager",
"version": "0.9.3",
"description": "Improves browser security and privacy by controlling page access to the Web API.",

View file

@ -1,6 +1,6 @@
{
"info": {
"name": "Document Object Model (DOM) Level 1 Specification",
"name": "DOM Level 1",
"subsection_number": null,
"subsection_name": null,
"url": "https://www.w3.org/TR/REC-DOM-Level-1/"