mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix(windows): isolation pattern create iframe loop (#13849)
This commit is contained in:
5
.changes/isolation-iframe-loop.md
Normal file
5
.changes/isolation-iframe-loop.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": patch:bug
|
||||
---
|
||||
|
||||
Fix isolation pattern creates iframes within iframes on Windows
|
||||
@@ -84,12 +84,12 @@ pub(crate) struct PatternJavascript {
|
||||
pub(crate) pattern: PatternObject,
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[cfg(feature = "isolation")]
|
||||
pub(crate) fn format_real_schema(schema: &str, https: bool) -> String {
|
||||
if cfg!(windows) || cfg!(target_os = "android") {
|
||||
let scheme = if https { "https" } else { "http" };
|
||||
format!("{scheme}://{schema}.{ISOLATION_IFRAME_SRC_DOMAIN}")
|
||||
format!("{scheme}://{schema}.{ISOLATION_IFRAME_SRC_DOMAIN}/")
|
||||
} else {
|
||||
format!("{schema}://{ISOLATION_IFRAME_SRC_DOMAIN}")
|
||||
format!("{schema}://{ISOLATION_IFRAME_SRC_DOMAIN}/")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user