Connect native tab chrome to managed Page methods
Verify Tessera GUI / verify (push) Failing after 7m37s

This commit is contained in:
2026-10-21 17:29:54 +08:00
parent 76e293d3b8
commit 96319b13a3
13 changed files with 548 additions and 16 deletions
+14
View File
@@ -119,6 +119,17 @@ impl RenderDocument {
if self.frame.mounts.len() > 10_000 {
bail!("frame exceeds the 10000 mount limit");
}
let mut tab_ids = HashSet::new();
if self.frame.tabs.len() > crate::ui_bridge::MAX_PAGES
|| self.frame.tabs.iter().filter(|tab| tab.active).count() > 1
|| self
.frame
.tabs
.iter()
.any(|tab| tab.id == 0 || !tab_ids.insert(tab.id) || tab.title.len() > 1024)
{
bail!("invalid tab projection");
}
let mut mount_ids = HashSet::new();
for mount in &self.frame.mounts {
if mount.id == 0 || mount.block_id.is_empty() || !mount_ids.insert(mount.id) {
@@ -263,6 +274,8 @@ pub struct Frame {
pub session: u64,
#[serde(default)]
pub focus: Option<u64>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub tabs: Vec<crate::tabs::Tab>,
#[serde(default)]
pub fault: Option<String>,
}
@@ -276,6 +289,7 @@ impl Default for Frame {
layout_version: 0,
session: 0,
focus: None,
tabs: Vec::new(),
fault: None,
}
}