补齐桌面拖拽图片无效输入边界

桌面壳 file_drop 增加目录和文本拖入不生成图片事件单测

桌面壳配置门禁反查无效拖入单测边界

宿主壳方案协议和共享决策同步拖拽图片事件边界
This commit is contained in:
2026-06-20 09:23:08 +08:00
parent e4e890a147
commit 9bdc0f6fa4
5 changed files with 31 additions and 2 deletions
@@ -2253,6 +2253,9 @@ const requiredRustHostSnippets = [
'first_valid_desktop_image_drop_payload',
'.filter(|path| path.is_file() && import_image_mime_type(path).is_some())',
'.find_map(|path| import_image_file_payload(path.clone(), "dropped", Some(position)).ok())',
'fn image_drop_without_valid_image_does_not_emit_payload()',
'fs::create_dir_all(&directory_path)',
'assert_eq!(payload, None);',
'PageLoadEvent',
'host_bridge_event_script',
'is_host_bridge_event_name',