daisy / ace

Ace by DAISY, an Accessibility Checker for EPUB
MIT License
75 stars 22 forks source link

HTML Report in Firefox: links in tabs are inactive #277

Closed garconvacher closed 2 years ago

garconvacher commented 5 years ago

Hi,

In the HTML Report with ACE 1.1.1, links in other tabs than the default "Violations" don't work in Firefox 68. Works fine in Chrome and Edge.

Please provide the following details if possible or relevant:

garconvacher commented 5 years ago

Weird... Works fine in Firefox now. I close the issue :/

garconvacher commented 5 years ago

Don't work again... It seems to appear randomly. In Firefox's console, I read several errors and warnings. Full log in this file : Log_Firefox.txt

(Chrome and Edge still OK)

danielweck commented 5 years ago

Probable culprit: the HTML report is currently not purely an offline document, it needs to connect to the web in order to apply Javascript and CSS (in order to enable the rich report rendering / interaction features). As a result, loading the report.html from file:// instead of a web server / HTTP URL is cause for various CORS warnings / errors.

https://github.com/daisy/ace/blob/5d4cc866af8141180980522748c0aa82830afb7a/packages/ace-report/src/report-template.handlebars#L4-L5

https://github.com/daisy/ace/blob/5d4cc866af8141180980522748c0aa82830afb7a/packages/ace-report/src/report-template.handlebars#L459-L463

danielweck commented 5 years ago

I filed a separate issue so the Ace dev team can investigate the feasibility of "offline-ing" the HTML report entirely: https://github.com/daisy/ace/issues/278

I propose we keep this current issue open, just in case we find a more lightweight workaround for Firefox.

danielweck commented 2 years ago

This was fixed in a recent Ace release. Dependencies (CSS and JavaScript) are now shipped with / alongside the HTML report.