Skip to content

Commit b50a1ac

Browse files
authored
fix(core): Add background color permissions (#11850)
fixes #11848
1 parent 0e2f0b2 commit b50a1ac

File tree

4 files changed

+59
-0
lines changed

4 files changed

+59
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
tauri: "patch:bug"
3+
---
4+
5+
Add webview and window color setters to autogenerated permissions.

crates/tauri/build.rs

+2
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ const PLUGINS: &[(&str, &[(&str, bool)])] = &[
112112
("set_title_bar_style", false),
113113
("set_theme", false),
114114
("toggle_maximize", false),
115+
("set_background_color", false),
115116
// internal
116117
("internal_toggle_maximize", true),
117118
],
@@ -136,6 +137,7 @@ const PLUGINS: &[(&str, &[(&str, bool)])] = &[
136137
("print", false),
137138
("reparent", false),
138139
("clear_all_browsing_data", false),
140+
("set_webview_background_color", false),
139141
// internal
140142
("internal_toggle_devtools", true),
141143
],

crates/tauri/permissions/webview/autogenerated/reference.md

+26
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,32 @@ Denies the reparent command without any pre-configured scope.
201201
<tr>
202202
<td>
203203

204+
`core:webview:allow-set-webview-background-color`
205+
206+
</td>
207+
<td>
208+
209+
Enables the set_webview_background_color command without any pre-configured scope.
210+
211+
</td>
212+
</tr>
213+
214+
<tr>
215+
<td>
216+
217+
`core:webview:deny-set-webview-background-color`
218+
219+
</td>
220+
<td>
221+
222+
Denies the set_webview_background_color command without any pre-configured scope.
223+
224+
</td>
225+
</tr>
226+
227+
<tr>
228+
<td>
229+
204230
`core:webview:allow-set-webview-focus`
205231

206232
</td>

crates/tauri/permissions/window/autogenerated/reference.md

+26
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,32 @@ Denies the set_always_on_top command without any pre-configured scope.
898898
<tr>
899899
<td>
900900

901+
`core:window:allow-set-background-color`
902+
903+
</td>
904+
<td>
905+
906+
Enables the set_background_color command without any pre-configured scope.
907+
908+
</td>
909+
</tr>
910+
911+
<tr>
912+
<td>
913+
914+
`core:window:deny-set-background-color`
915+
916+
</td>
917+
<td>
918+
919+
Denies the set_background_color command without any pre-configured scope.
920+
921+
</td>
922+
</tr>
923+
924+
<tr>
925+
<td>
926+
901927
`core:window:allow-set-badge-count`
902928

903929
</td>

0 commit comments

Comments
 (0)