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

Web version not working for viewing JS/CSS files #113

Closed
LunarTwilight opened this issue Feb 16, 2022 · 1 comment
Closed

Web version not working for viewing JS/CSS files #113

LunarTwilight opened this issue Feb 16, 2022 · 1 comment

Comments

@LunarTwilight
Copy link

When I try to view JS/CSS via the online version, it doesn't work and these errors are in my console

Uncaught DOMException: Failed to construct 'Worker': Script at 'chrome-extension://cafckninonjkogajnihihlnnimmkndgf/js/worker-beautify.js' cannot be accessed from origin 'https://robwu.nl'.
at https://robwu.nl/crxviewer/lib/beautify/beautify.js:21:18
at https://robwu.nl/crxviewer/lib/beautify/beautify.js:115:3

crxviewer.js:494 Uncaught TypeError: Cannot read properties of undefined (reading 'getType')
at callback (crxviewer.js:494:26)
at crxviewer.js:260:13
at zip.js:577:7
at EfficientTextWriter.getData (efficienttextwriter.js:29:5)
at getWriterData (zip.js:576:13)
at onflush (zip.js:311:4)
at Worker.onmessage (zip.js:346:7)

Rob--W added a commit that referenced this issue Mar 20, 2022
The assumption of the last script being the current script is not always
accurate, e.g. when a browser extension inserts an extra script tag in
the web version. Use `document.currentScript` instead.
Rob--W added a commit that referenced this issue Mar 28, 2022
- Rely on CORS instead of work-arounds for public XPI files from AMO (#92)
- Add work-around for crx access in Brave (#91)
- Support source viewing of extensions from Microsoft Edge (#95)
- Remove web_accessible_resourced to avoid UUID leak (#100)
- Correct 0-padding of hashes (#104)
- Update jsbeautifier to v1.14.0 (#110)
- Support source viewing of extensions from Thunderbird (#111)
- Fix domain front of AMO in Firefox add-on (#115)
- Recognize CRX3 files served by addons.opera.com (#118)
- Opera only: Add work-around to access addons.opera.com (#119)
- web only: Add crx keyword to input field for keyword search (#99)
- web only: Avoid breakage of web version when an extension runs a script (#113)
- Refactor: remove unsupported declarativeWebRequest path
- Refactor: Use declarative page actions to show button.
@Rob--W
Copy link
Owner

Rob--W commented Mar 28, 2022

Fixed in the latest version at https://robwu.nl/crxviewer/

@Rob--W Rob--W closed this as completed Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants