Bug 494991 - regression: InlineMessage linkActivated opens the link automatically
Summary: regression: InlineMessage linkActivated opens the link automatically
Status: REPORTED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: Master
Platform: Other Linux
: NOR normal
Target Milestone: Not decided
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-18 13:43 UTC by Harald Sitter
Modified: 2024-10-18 13:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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