You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you cannot normally start a web worker in a browser extension (you cannot even load inline <script>s there, part of the content security policy)
the fix suggested here helps to fix a script loading error that only appears in Firefox: https://stackoverflow.com/a/64621646
but we still cannot read QR codes :(
things seem to go wrong when setting an event listener on the worker here:
We fixed it by allowing blob URLs (which is how the worker is loaded by qr-scanner) in the browser add-on's manifest.json's Content Security Policy setting:
we decided against using QR scanner in our project because we don't want to add unrestricted blob: to our extension's content_security_policy setting.
Related Mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1294996
The Problem
qr-scanner
in a Firefox browser add-on/extension.qr-scanner
(outside of browser extensions, on normal websites) work in Firefox. Example: https://codepen.io/jankoegel/pen/yLEmGxJlegacy.min.js
script.Ideas
<script>
s there, part of the content security policy)https://stackoverflow.com/a/64621646
but we still cannot read QR codes :(
qr-scanner/src/qr-scanner.ts
Line 538 in abcfe1b
Probably this is not permitted in a Firefox browser add-on!?
Help needed
The text was updated successfully, but these errors were encountered: