Skip to content

TitleBar explicit false close path can corrupt WinUI title-bar teardown #537

@codemonkeychris

Description

@codemonkeychris

PR #536 exposed a process crash in the TitleBar_ExplicitFalseOverrides selftest when closing a window whose WindowSpec sets ExtendsContentIntoTitleBar = false while the content still renders a TitleBar element. TitleBarDescriptor already no-ops registration when the value is explicitly false, but Window.Close/host disposal can still hit WinUI title-bar interop teardown and terminate with STATUS_HEAP_CORRUPTION. The PR uses a selftest teardown mitigation (Hide + UnregisterWindowMonitor) so CI can proceed. Follow up with a Reactor-side close/dispose fix or a safer TitleBar unmount path for explicit-false windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions