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

Add content warning for zimit2 in service worker local mode #1209

Merged

Conversation

Jaifroid
Copy link
Member

Although mostly static archives work well in Chromium extensions in ServiceWorkerLocal mode, highly dynamic ZIMs that contain inline JS (a poor coding practice, but highly prevalent) will have non-functional elements. This is because inline JS is banned in Chromium extensions, even in MV3.

But we have a workaround, which is to reload the app as a PWA from browser-extension.kiwix.org. We should therefore warn users opening zimit2 archives.

This PR modifies the JQuery "active content warning", so that it also shows on zimit2 landing pages when a user is in ServiceWorkerLocal mode.

@Jaifroid Jaifroid added user interface accessibility extensions Code relating to the production or running of browser extensions zimit Code relating to the support of Zimit-style archives labels Feb 12, 2024
@Jaifroid Jaifroid added this to the v4.0 milestone Feb 12, 2024
@Jaifroid Jaifroid self-assigned this Feb 12, 2024
@Jaifroid Jaifroid mentioned this pull request Feb 12, 2024
39 tasks
@Jaifroid Jaifroid merged commit ff2615c into main Feb 12, 2024
9 checks passed
@Jaifroid Jaifroid deleted the Add-content-warning-for-zimit2-in-ServiceWorkerLocal-mode branch February 12, 2024 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility extensions Code relating to the production or running of browser extensions user interface zimit Code relating to the support of Zimit-style archives
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant