My team is developing a web extension and we were also trying to port it to support Safari. The conversion using xcrun was pretty smooth.
However, we are not able to download a file to our disk drive, and this is only broken in Safari extension (It works across other browsers and in Safari tab too). I think the issue is that the Download Permission Popup is not appearing for the user, which I got when running the extension in a tab.
Here's a gist to help you understand more:
However, we are not able to download a file to our disk drive, and this is only broken in Safari extension (It works across other browsers and in Safari tab too). I think the issue is that the Download Permission Popup is not appearing for the user, which I got when running the extension in a tab.
Here's a gist to help you understand more:
Code Block javascript domtoimage .toBlob(element) .then(function (blob) { const url = window.URL.createObjectURL(blob); saveAs(url, "data.png"); });
Let me know what you think!The above code works across browsers, nothing happens when running as a Safari Web Extension