deltachat-android icon indicating copy to clipboard operation
deltachat-android copied to clipboard

WebXDC hangs the OS

Open anedroid opened this issue 1 year ago • 1 comments

  • Android version: 9
  • Device: Nokia TA-1020
  • Delta Chat version: 1.46.14
  • Expected behavior: The web app loads and runs
  • Actual behavior: The entire device freezes while loading
  • Steps to reproduce the problem:
    1. Start a conversation
    2. Attach a WebXDC app (tested Calendar and WYSIWYG editor)
    3. Run it

The bug was introduced after an update of the app from few versions back. It's not present on newer Android versions, though.

anedroid avatar Sep 22 '24 10:09 anedroid

hi @anedroid this is likely related to a trick we use to block WebRTC connection in the webxdc apps so they can't connect via webRTC which is not possible to block otherwise than creating a lot of dummy connections, if you trust the app like the editor you could try using ArcaneChat which doesn't apply this trick in favor of faster opening of webxdc, if that doesn't cause the problem for you it will confirm the problem is with this initialization problem

adbenitez avatar Oct 04 '24 15:10 adbenitez

I tried with 1.48.2 but I can't replicate the bug.

ghost avatar Oct 29 '24 19:10 ghost

I tried with 1.48.2 but I can't replicate the bug.

it is not happening constantly but it can happen some times when you out/in from/to an app often in a short time

adbenitez avatar Oct 29 '24 19:10 adbenitez

I am closing this issue as for now there is nothing we can do, this is related to the FILL500 (create 500 webRTC connections) hack we needed to introduce to block webRTC since the android webview doesn't provide a way to effectively disable this option,

hopefully we come up with another alternative solution in the future like integrating Firefox's GeckoView in Delta Chat or Google eventually might fix this vulnerability they have open for years now

adbenitez avatar Oct 29 '24 19:10 adbenitez