Bug 515649

Summary: Share fails if a url is not included in the share data
Product: [Plasma] plasma-browser-integration Reporter: Nathan Shafer <nate-kde>
Component: generalAssignee: Kai Uwe Broulik <kde>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nathan Shafer 2026-02-06 19:31:29 UTC
SUMMARY

If you call `navigator.share({text: "sample"})` then the plasma integration script that is injected into the page to provide this functionality throws a DOMException. It does not do this if a `url` key is included. According to the spec, `url` should be optional, and there are cases where you're not sharing URLs, just text.

STEPS TO REPRODUCE
1. Go to https://lotech.org/misc/sharetest.html in Chrome or Firefox.
2. Click "Share without URL"

OBSERVED RESULT

Chrome:
sharetest.html:31 Uncaught (in promise) AbortError: Share request aborted
shareWithoutURL @ sharetest.html:31
await in shareWithoutURL
onclick @ sharetest.html:43

Firefox:
Uncaught (in promise) DOMException: Share request aborted
    eventCallback moz-extension://2c589072-1192-4e23-9368-849613cc7838/page-script.js:286
page-script.js:286:49


EXPECTED RESULT

To get the share menu pop to select how to share, such as when clicking "Share with URL"

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.5
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.2

ADDITIONAL INFORMATION
Chrome extension: 2.1
Firefox extension: 2.1