locatorjs icon indicating copy to clipboard operation
locatorjs copied to clipboard

Is it possible to not prompt `Do you want to allow this page to open ..` in Safari

Open nikitavoloboev opened this issue 2 years ago • 2 comments

I ran

document.cookie = "LOCATOR_CUSTOM_LINK=vscode-insiders://file${projectPath}${filePath}:${line}:${column}; expires=18 Dec 2033 12:00:00 UTC; path=/";

from https://github.com/infi-pc/locatorjs/issues/17

So I can open LocatorJS inside VSCode Insiders.

One issue I have though is that on Safari every time I try to open it, I get prompted with:

Screenshot 2022-03-16 at 15 39 07

Every time I try to use LocatorJS. Is it possible to avoid having this prompt showing every time in Safari?

nikitavoloboev avatar Mar 16 '22 13:03 nikitavoloboev

Hi @nikitavoloboev, it seems that Safari doesn't let users "allow next time" https://apple.stackexchange.com/questions/265267/how-to-skip-safaris-do-you-want-to-allow-this-page-to-open-x-dialog and https://forum.transmissionbt.com/viewtopic.php?t=18205 and https://stackoverflow.com/questions/41620802/how-to-mitigate-safari-warning-do-you-want-to-allow-this-page-to-open-xyz that's not nice of them, all other browsers - Firefox, Chrome, and Edge - have a checkbox with "remember next time"

I use Chrome and I use Locator to go to code so often so I can imagine that having to click on "allow" every time is super annoying, but currently I don't know how to solve that :/

pressing Enter (or Tab and then Enter) after each click can lower the pain a bit if you haven't tried yet.

infi-pc avatar Mar 16 '22 21:03 infi-pc

note: Figma somehow can redirect directly to the desktop app without asking in Safari, I haven't figured out the mechanism they use, but they can do it. So that's a good sign that it is possible to do, I will take some time soon to figure it out.

infi-pc avatar Mar 16 '22 22:03 infi-pc