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

            Bug ID: 470292
           Summary: Web applications throw an exception when they use
                    navigator.share
    Classification: Plasma
           Product: plasma-browser-integration
           Version: unspecified
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Firefox
          Assignee: k...@privat.broulik.de
          Reporter: mart...@saunois.net
  Target Milestone: ---

SUMMARY
I use a web application which exposes a button to share content to other users.
The app uses the JS API navigator.share to implement that feature. Using it
throws an exception in the JS console:

Uncaught (in promise) DOMException: navigator.share can only be called in
response to user interaction

Disabling the extension solves the issue.

STEPS TO REPRODUCE
1. Open the JS console of Firefox
2. Use an element in a web app that binds the event on the navigator.share
method

OBSERVED RESULT
The exception is thrown and the content was not shared

EXPECTED RESULT
The content should have been shared (in the clipboard in my case)

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 38
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 6.2.15-300.fc38.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8350U CPU @ 1.70GHz
Memory: 15.5 Gio of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: Dell Inc.
Product Name: Latitude 7490

ADDITIONAL INFORMATION

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

Reply via email to