Bug 494991

Summary: regression: InlineMessage linkActivated opens the link automatically
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: Harald Sitter <sitter>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: REPORTED ---    
Severity: normal CC: notmart
Priority: NOR    
Version First Reported In: Master   
Target Milestone: Not decided   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Harald Sitter 2024-10-18 13:43:09 UTC
SUMMARY
InlineMessage linkActivated opens the link automatically which makes it impossible to handle the opening in a custom fashion. This particularly regresses drkonqi which uses fake urls all over the place to link to resources that are created on-demand and then opened.

STEPS TO REPRODUCE
        Kirigami.InlineMessage {
            text:  xi18nc("@info", "Failed to submit bug report: <message>%1</message>. When filing a bug report please also include the <link url='#context'>context data</link>", errorContext)
            onLinkActivated: (link) => {
                if (link === "#context") {
                    DrKonqi.saveReport(contextData)
                }
            }

OBSERVED RESULT
fake url opens

EXPECTED RESULT
fake url doesn't open

SOFTWARE/OS VERSIONS
Operating System: KDE Linux 0d1b87bb
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.11.3-arch1-1
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 31.2 GiB of RAM
Graphics Processor: AMD Radeon RX 7800 XT

ADDITIONAL INFORMATION