https://bugs.kde.org/show_bug.cgi?id=515649

            Bug ID: 515649
           Summary: Share fails if a url is not included in the share data
    Classification: Plasma
           Product: plasma-browser-integration
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to