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

Report cannot be opened through "file" protocol since ReportUI 3.0 #506

Open
ajkl2533 opened this issue Jun 25, 2024 · 0 comments
Open

Report cannot be opened through "file" protocol since ReportUI 3.0 #506

ajkl2533 opened this issue Jun 25, 2024 · 0 comments
Labels

Comments

@ajkl2533
Copy link

Describe the bug

Up until releasing new version of ReportUI I could simply open generated report via file protocol (e.g. file:///path/to/report/report.html). Yesterday I upgraded from 0.18.1 to latest version 0.18.6 and when I tried to open the report in my browser I got only white page and an error message in console Uncaught DOMException: Failed to construct 'Worker': Script at 'file:///.../.storybook/image-snapshots/worker.js' cannot be accessed from origin 'null'.

When I use http server to serve the report everything goes fine, but we are storing the report as an artifact in our CI and I cannot run server there to see the results.

Reproduced step

Steps to reproduce the behavior:

  1. Generate report with [email protected]
  2. Right click on report.html and Copy path
  3. Paste path into URL bar in browser
  4. See error

Expected behavior

Report can be opened via file protocol as before

Actual behavior

Report can be opened only if it's served with http server.

Screenshots

Screenshot 2024-06-25 at 16 26 48
@ajkl2533 ajkl2533 added the bug label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant