Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tor does not allow scanning QR-codes for PSBT-txs (Cobo etc.) #536

Open
TheTotalConnector opened this issue Oct 21, 2020 · 10 comments
Open
Labels
bug Something isn't working

Comments

@TheTotalConnector
Copy link

I am still unable to scan QR-codes via Tor for PSBT-txs with Cobo.
error messages on specter, when I try to activate the QR-code.
Thanks.

@k9ert
Copy link
Collaborator

k9ert commented Oct 21, 2020

Is this maybe a duplicate of #448 ? Using QR-code with Tor has two issues, #448 and the inability to use the camera. Whereas #448 has a more or less easy workaround, using the camera is much more severe.

@stepansnigirev
Copy link
Collaborator

@k9ert #448 is about showing QR codes, this one is about scanning QR codes.

@k9ert k9ert added the bug Something isn't working label Oct 30, 2020
@k9ert
Copy link
Collaborator

k9ert commented Nov 29, 2020

I stumbled over this and spent some time on it. Here are some findings:

  • I think there is some standardisation around browsers and it's called "Image Capture" and here someone is tracking it over different browsers (but not the tor-browser) and here is (just slightly related) a an issue within a project, managing secure firefox-settings, which tries to get the camera to work. So related settings might be:
/* 2023: disable camera stuff /
user_pref("camera.control.face_detection.enabled", false);
/ 2026: disable canvas capture stream
user_pref("canvas.capturestream.enabled", false);
/ 2027: disable camera image capture
user_pref("dom.imagecapture.enabled", false);
/ 2028: disable offscreen canvas
user_pref("gfx.offscreencanvas.enabled", false);
 and maybe:
media.autoplay.enabled = true

But is that stuff even implemented in the tor-browser-project? So i found this issue within the quite difficult to find tor-project which somehow seem to kick some kind of related can down the road. I'm not sure this ticket is talking about dynamic-properties which potentially could be switched in the tor-browser or whether it's somehow hardcoding settings which make the dynamic set useless.
So experimenting with these values or asking on that ticket or creating a new one there is probably the way forward.
For now, simply licking the comment-button to not loose these links ...

@k9ert
Copy link
Collaborator

k9ert commented Nov 29, 2020

So, removing the check in qr-scanner.html#L185 reveals an error-message like:
navigator.mediaDevices is undefined. I've requested a userAccount in order to create a tor-browser issue but it takes time until that gets approved. I'll report back here.

@k9ert
Copy link
Collaborator

k9ert commented Nov 29, 2020

I've created a small dummy-project to reproduce the issue more easily:
https://github.com/k9ert/camera-tor

@k9ert
Copy link
Collaborator

k9ert commented Dec 4, 2020

I requested access today a second time after i haven't got any feedback from the first try:
https://gitlab.onionize.space/

@k9ert
Copy link
Collaborator

k9ert commented Dec 11, 2020

@k9ert
Copy link
Collaborator

k9ert commented Jun 12, 2021

For the reference: Asked for feedback also in january but unfortunately no activity on the ticket so far.
https://twitter.com/k9ert/status/1346109365795893249

@Mohsen7s
Copy link

Any update on this issue ?

@k9ert
Copy link
Collaborator

k9ert commented Apr 19, 2022

Doesn't seem so :-(. I agree completely with Mohix here.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants