Skip to content

Bug title: Please remove the security check for the WinUI 3 Desktop open link #10428

@Gaoyifei1011

Description

@Gaoyifei1011

Describe the bug

Bug title: Please remove the security check for the WinUI 3 Desktop open link

-------------------------------

请移除 WinUI 3 Desktop 打开链接的安全检查


After setting the NavigationUri attribute of HyperlinkButton and Hyperlink of WinUI 3, some links will be opened for security check. However, because WinUI 3 Desktop does not have CoreWindow, Therefore, there is no way to pop up the security check window, and I hope that WinUI 3 can remove the link security check for desktop applications in the future.

-------------------------------

WinUI 3HyperlinkButton 和 Hyperlink 设置 NavigationUri 属性后,打开部分链接会进行安全检查,但是由于 WinUI 3 Desktop 没有 CoreWindow,故没有办法弹出安全检查窗口,希望未来 WinUI 3 能为桌面应用移除打开链接安全检查。


HyperlinkButton calls the Launcher implementation

-------------------------------

HyperlinkButton 调用 Launcher 的实现

IFC_RETURN(Launcher::TryInvokeLauncher(spNavigateUri.Get()));


The Launcher TreatAsUntrusted is set to True

-------------------------------

Launcher 的 TreatAsUntrusted 被设置为 True

IFC(spLauncherOptions->put_TreatAsUntrusted(true));


Security Check (安全检查)
Image

Steps to reproduce the bug

See description

Expected behavior

In desktop mode, set the Launcher TreatAsUntrusted to True

-------------------------------

在桌面模式下,请将 Launcher 的 TreatAsUntrusted 设置为 True

Screenshots

See description

NuGet package version

WinUI 3 - Windows App SDK 1.6.6: 1.6.250228001

Windows version

Windows 11 (24H2): Build 26100

Additional context

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions