fix: disable some default webview behaviors
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"desktop-capability":{"identifier":"desktop-capability","description":"Capability for the desktop","local":true,"windows":["main","panel","settings","search-*","zap-*","event-*","user-*","editor-*"],"permissions":["core:path:default","core:event:default","core:window:default","core:app:default","core:resources:default","core:menu:default","core:tray:default","notification:allow-is-permission-granted","notification:allow-request-permission","notification:default","os:allow-locale","os:allow-platform","os:allow-os-type","updater:default","updater:allow-check","updater:allow-download-and-install","core:window:allow-start-dragging","core:window:allow-create","core:window:allow-close","core:window:allow-destroy","core:window:allow-set-focus","core:window:allow-center","core:window:allow-minimize","core:window:allow-maximize","core:window:allow-set-size","core:window:allow-set-focus","core:window:allow-start-dragging","decorum:allow-show-snap-overlay","clipboard-manager:allow-write-text","clipboard-manager:allow-read-text","core:webview:allow-create-webview-window","core:webview:allow-create-webview","core:webview:allow-set-webview-size","core:webview:allow-set-webview-position","core:webview:allow-webview-close","dialog:allow-open","dialog:allow-ask","dialog:allow-message","process:allow-restart","process:allow-exit","fs:allow-read-file","theme:allow-set-theme","theme:allow-get-theme","core:menu:allow-new","core:menu:allow-popup","http:default","shell:allow-open",{"identifier":"http:default","allow":[{"url":"http://**/"},{"url":"https://**/"}]},{"identifier":"fs:allow-read-text-file","allow":[{"path":"$RESOURCE/locales/*"},{"path":"$RESOURCE/resources/*"}]}],"platforms":["linux","macOS","windows"]}}
|
||||
{"desktop-capability":{"identifier":"desktop-capability","description":"Capability for the desktop","local":true,"windows":["main","panel","settings","search-*","zap-*","event-*","user-*","editor-*"],"permissions":["core:path:default","core:event:default","core:window:default","core:app:default","core:resources:default","core:menu:default","core:tray:default","notification:allow-is-permission-granted","notification:allow-request-permission","notification:default","os:allow-locale","os:allow-platform","os:allow-os-type","updater:default","updater:allow-check","updater:allow-download-and-install","core:window:allow-create","core:window:allow-close","core:window:allow-destroy","core:window:allow-set-focus","core:window:allow-center","core:window:allow-minimize","core:window:allow-maximize","core:window:allow-set-size","core:window:allow-set-focus","core:window:allow-start-dragging","decorum:allow-show-snap-overlay","clipboard-manager:allow-write-text","clipboard-manager:allow-read-text","core:webview:allow-create-webview-window","core:webview:allow-create-webview","core:webview:allow-set-webview-size","core:webview:allow-set-webview-position","core:webview:allow-webview-close","dialog:allow-open","dialog:allow-ask","dialog:allow-message","process:allow-restart","process:allow-exit","fs:allow-read-file","theme:allow-set-theme","theme:allow-get-theme","core:menu:allow-new","core:menu:allow-popup","shell:allow-open","prevent-default:default",{"identifier":"http:default","allow":[{"url":"http://**/"},{"url":"https://**/"}]},{"identifier":"fs:allow-read-text-file","allow":[{"path":"$RESOURCE/locales/*"},{"path":"$RESOURCE/resources/*"}]}],"platforms":["linux","macOS","windows"]}}
|
||||
@@ -7054,6 +7054,41 @@
|
||||
"os:deny-version"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "prevent-default:default -> Default permissions for the prevent-default plugin",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"prevent-default:default"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "prevent-default:allow-keyboard -> Enables the keyboard command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"prevent-default:allow-keyboard"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "prevent-default:allow-pointer -> Enables the pointer command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"prevent-default:allow-pointer"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "prevent-default:deny-keyboard -> Denies the keyboard command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"prevent-default:deny-keyboard"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "prevent-default:deny-pointer -> Denies the pointer command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"prevent-default:deny-pointer"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "process:default -> This permission set configures which\nprocess feeatures are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n",
|
||||
"type": "string",
|
||||
|
||||
@@ -7054,6 +7054,41 @@
|
||||
"os:deny-version"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "prevent-default:default -> Default permissions for the prevent-default plugin",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"prevent-default:default"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "prevent-default:allow-keyboard -> Enables the keyboard command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"prevent-default:allow-keyboard"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "prevent-default:allow-pointer -> Enables the pointer command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"prevent-default:allow-pointer"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "prevent-default:deny-keyboard -> Denies the keyboard command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"prevent-default:deny-keyboard"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "prevent-default:deny-pointer -> Denies the pointer command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"prevent-default:deny-pointer"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "process:default -> This permission set configures which\nprocess feeatures are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n",
|
||||
"type": "string",
|
||||
|
||||
Reference in New Issue
Block a user