<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Trying to use navigator.share crashes Opera tab]]></title><description><![CDATA[<p dir="auto">I have a website that uses window.navigator.share() to share links, which is part of the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share" target="_blank" rel="noopener noreferrer nofollow ugc">Web Share API</a>. 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:</p>
<pre><code>navigator.share({title: "test"})
</code></pre>
<p dir="auto">The page immediately crashes. This is on a refresh install of Opera GX on Windows 10, no extentions.</p>
<p dir="auto">Since the Web Share API isn't supported by all browsers, I'm doing a check to see if <code>navigator.share</code> 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.</p>
<p dir="auto">Funny enough, Opera supports <code>navigator.canShare()</code>, and that functions, but <code>.share</code> still crashes:</p>
<pre><code>navigator.canShare({title: "test"}); // -&gt; true
navigator.share({title: "test"}); // -&gt; Crashes tab
</code></pre>
<p dir="auto">Anyone have experience with navigator.share? Is this a bug within Opera?</p>
]]></description><link>https://forums.opera.com/topic/49648/trying-to-use-navigator-share-crashes-opera-tab</link><generator>RSS for Node</generator><lastBuildDate>Thu, 20 Aug 2026 01:01:10 GMT</lastBuildDate><atom:link href="https://forums.opera.com/topic/49648.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Jun 2021 00:37:34 GMT</pubDate><ttl>60</ttl></channel></rss>