mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
refactor(core): do not allow JS API to set additional browser args (#6216)
This was introduced in #5799, but it's dangerous to let the frontend set this option.
This commit is contained in:
committed by
GitHub
parent
a7ee5ca7c3
commit
d788d23071
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"api": minor
|
||||
---
|
||||
|
||||
Added the `additionalBrowserArgs` option when creating a window.
|
||||
@@ -213,8 +213,9 @@ impl Cmd {
|
||||
#[module_command_handler(window_create)]
|
||||
async fn create_webview<R: Runtime>(
|
||||
context: InvokeContext<R>,
|
||||
options: Box<WindowConfig>,
|
||||
mut options: Box<WindowConfig>,
|
||||
) -> super::Result<()> {
|
||||
options.additional_browser_args = None;
|
||||
crate::window::WindowBuilder::from_config(&context.window, *options)
|
||||
.build()
|
||||
.map_err(crate::error::into_anyhow)?;
|
||||
|
||||
@@ -2144,10 +2144,6 @@ interface WindowOptions {
|
||||
* The user agent for the webview.
|
||||
*/
|
||||
userAgent?: string
|
||||
/**
|
||||
* Additional arguments for the webview. **Windows Only**
|
||||
*/
|
||||
additionalBrowserArguments?: string
|
||||
}
|
||||
|
||||
function mapMonitor(m: Monitor | null): Monitor | null {
|
||||
|
||||
Reference in New Issue
Block a user