Bug 515649 - Share fails if a url is not included in the share data
Summary: Share fails if a url is not included in the share data
Status: REPORTED
Alias: None
Product: plasma-browser-integration
Classification: Plasma
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-06 19:31 UTC by Nathan Shafer
Modified: 2026-02-06 19:31 UTC (History)
0 users

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 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