• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Trying to use navigator.share crashes Opera tab

    Opera for Windows
    1
    1
    608
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • choffman
      choffman last edited by

      I have a website that uses window.navigator.share() to share links, which is part of the Web Share API. I can consistently crash Opera GX 75.0.3969.282 (downloaded today) by opening up the developer tools, and executing the following in the console tab:

      navigator.share({title: "test"})
      

      The page immediately crashes. This is on a refresh install of Opera GX on Windows 10, no extentions.

      Since the Web Share API isn't supported by all browsers, I'm doing a check to see if navigator.share exists before calling it. In Opera, that function exists, but it always seems to crash the tab, regardless of the object I pass into it.

      Funny enough, Opera supports navigator.canShare(), and that functions, but .share still crashes:

      navigator.canShare({title: "test"}); // -> true
      navigator.share({title: "test"}); // -> Crashes tab
      

      Anyone have experience with navigator.share? Is this a bug within Opera?

      Reply Quote 0
        1 Reply Last reply
      • Locked by  leocg leocg 
      • First post
        Last post

      Computer browsers

      • Opera for Windows
      • Opera for Mac
      • Opera for Linux
      • Opera beta version
      • Opera USB

      Mobile browsers

      • Opera for Android
      • Opera Mini
      • Opera Touch
      • Opera for basic phones

      • Add-ons
      • Opera account
      • Wallpapers
      • Opera Ads

      • Help & support
      • Opera blogs
      • Opera forums
      • Dev.Opera

      • Security
      • Privacy
      • Cookies Policy
      • EULA
      • Terms of Service

      • About Opera
      • Press info
      • Jobs
      • Investors
      • Become a partner
      • Contact us

      Follow Opera

      • Opera - Facebook
      • Opera - Twitter
      • Opera - YouTube
      • Opera - LinkedIn
      • Opera - Instagram

      © Opera Software 1995-