收口桌面壳深链诊断日志
桌面壳深链注册和当前链接读取失败只记录固定标签 扩展桌面壳配置门禁禁止 deep-link 插件错误详情进入日志 补充宿主壳方案和共享决策中的深链诊断边界
This commit is contained in:
@@ -3323,9 +3323,11 @@ for (const snippet of [
|
||||
'log_desktop_deep_link_register_result(app.deep_link().register_all())',
|
||||
'desktop host event failed for deep_link.register',
|
||||
'desktop_deep_link_register_result_reports_success_and_failure',
|
||||
'desktop_deep_link_register_result_logs_stable_label_only',
|
||||
'log_desktop_deep_link_current_result(app.deep_link().get_current())',
|
||||
'desktop host event failed for deep_link.current',
|
||||
'desktop_deep_link_current_result_reports_success_empty_and_failure',
|
||||
'desktop_deep_link_current_result_logs_stable_label_only',
|
||||
'log_desktop_deep_link_window_missing("open")',
|
||||
'log_desktop_deep_link_window_missing("current")',
|
||||
'desktop_deep_link_window_missing_reports_failure',
|
||||
@@ -3334,3 +3336,14 @@ for (const snippet of [
|
||||
throw new Error(`desktop shell deep-link registration logging missing ${snippet}`);
|
||||
}
|
||||
}
|
||||
|
||||
if (
|
||||
desktopShellDeepLinkSource.includes(
|
||||
'desktop host event failed for deep_link.register: {error}',
|
||||
) ||
|
||||
desktopShellDeepLinkSource.includes(
|
||||
'desktop host event failed for deep_link.current: {error}',
|
||||
)
|
||||
) {
|
||||
throw new Error('desktop deep-link diagnostics must not log plugin error details');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user