WebXDC threat model?

@Simon, thanks for your clarification!

Hey Simon, would really like to read/hear more from you/ or others about this, and what the status of location sharing is more generally. I haven’t found any webxdc apps in dchat that use any geo features, which leads me to believe location sharing is not possible at this time via webxdc? the experimental map feature appears to be a core webxdc integration of some kind that allows for location sharing. Can this be mobilized by other webxdc apps somehow?

Yes, it’s not possible generally. The “location sharing” feature is indeed based on WebXDC, but it is a special case. Normal WebXDC apps don’t have access to the geolocation API.
See Allow access to camera, geolocation, other Web APIs - #4 by WofWca.

Do you have a little more background on that? I did some research because the progress bar was annoying me. I’m not really deep into the topic so I might be missing something. My understanding is that modern webview versions should support blocking it via CSP policy.

In the past there seems to have been a problem in the spec that seems to have been addressed as far as I can see: WebRTC bypass CSP connect-src policies · Issue #35 · w3c/webrtc-nv-use-cases · GitHub

But as I’m typing this, I’ve found Chromium which seems to be exactly the problem we have right here and honestly it’s shocking how little they seem to care over there.