openstreetmap-website icon indicating copy to clipboard operation
openstreetmap-website copied to clipboard

The Edit with Remote Control button doesn't work in Safari.

Open deevroman opened this issue 2 months ago • 5 comments

URL

No response

How to reproduce the issue?

Console error:

[blocked] The page at https://www.openstreetmap.org/#map=.... requested insecure content from http://127.0.0.1:8111/load_and_zoom?... This content was blocked and must

Safari blocks all requests from HTTPS sites to unsecured ones:

https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content#browser_compatibility

It seems the only way to get around this is to call window.open()

Screenshot(s) or anything else?

Safari 26

deevroman avatar Oct 03 '25 08:10 deevroman

Pretty sure there is already a ticket for this with a long discussion of the options good and bad.

But really safari is wrong here as localhost is supposed to be exempted.

tomhughes avatar Oct 03 '25 09:10 tomhughes

Previous discussion in #2445 and specifically https://github.com/openstreetmap/openstreetmap-website/issues/2445#issuecomment-2585703536.

tomhughes avatar Oct 03 '25 09:10 tomhughes

I can't find it right now but there have been previous discussions and/or implementation attempts about different ways of triggering this but they all have various issues as I recall.

tomhughes avatar Oct 03 '25 09:10 tomhughes

I'm also seeing this, and would like to mention that on https://maproulette.org the 'Edit in JOSM` link works as expected in Safari on macOS.

The link loads http://127.0.0.1:8111/load_and_zoom?left=7.465979754924775&right=7.468450069427491&top=46.959222231556296&bottom=46.95788217326591&new_layer=true&layer_name=[...]

I honestly have no idea if changing the 'Edit' link to http instead of https or rewriting it to something else than https://www.openstreetmap.org/edit?[...], just wanted to note that editing on MR.org works, but OSM.org does not.

habi avatar Oct 15 '25 09:10 habi

MR uses window.open() and quickly closes the open tab. This method is only for Safari

https://github.com/maproulette/maproulette3/blob/a3cf422c9e60589bf4a95970c09e0bfb2e62300a/src/services/Editor/Editor.js#L618-L636

deevroman avatar Oct 15 '25 10:10 deevroman