Why do DRM_PANIC QR codes not use data: URIs?
Why do they not use data: URIs so that it works offline?
Signature Β· 4 lines
George truly, ππππ ππππͺππ£ Improve your wifi reception for free <https://www.youtube.com/watch?v=LY8Wi7XRXCA> (Libre JS version <https://redirect.invidious.io/watch?v=LY8Wi7XRXCA>) This email does not constitute a legally binding contract My OpenPGP key is 1BA0 FC4B 80E0 F21B 0269 8CEE 634E BF87 40C7 48BE <https://blog.velocifyer.com/pgp-certificate.asc>
Quoted 1 line Β· ππππ ππππͺππ£
Why do they not use data: URIs so that it works offline?
If you set DRM_PANIC_SCREEN_QR_CODE and not DRM_PANIC_SCREEN_QR_CODE_URL, then the data will be set in raw in the QR code, and that works offline.
The drawback is that the data is not compressed, and not efficiently encoded.
So with zlib compressed, you have about ~7500 bytes of kmsg, and with raw data, it's only ~2900 bytes.
Also, even when using an URL, the panic data stays on the browser, because the data is in an URI fragment, which is not sent to the server.
Best regards,
Signature Β· 1 line
Jocelyn
Quoted 5 lines Β· Jocelyn Falempe
If you set
DRM_PANIC_SCREEN_QR_CODEand notDRM_PANIC_SCREEN_QR_CODE_URL, then the data will be set in raw in the QR code, and that works offline.The drawback is that the data is not compressed, and not efficiently encoded.
So with zlib compressed, you have about ~7500 bytes of kmsg, and with raw data, it's only ~2900 bytes.
You could encode the webpage (to decompress it) along with the compressed log in the data URI.
Signature Β· 5 lines
George truly, ππππ ππππͺππ£ Improve your wifi reception for free <https://www.youtube.com/watch?v=LY8Wi7XRXCA> (Libre JS version <https://redirect.invidious.io/watch?v=LY8Wi7XRXCA>) This email does not constitute a legally binding contract My OpenPGP key is 1BA0 FC4B 80E0 F21B 0269 8CEE 634E BF87 40C7 48BE <https://blog.velocifyer.com/pgp-certificate.asc>. Please sign it! Remember to reply all on mailing lists (this is here so i don't forget to use reply all)(If you are reading this i forgot to remove it)