#1582, #1585: guard web serviceWorker against SecurityError in opaque contexts

In sandboxed iframes without allow-same-origin (or other opaque origin contexts), accessing `navigator.serviceWorker` throws a SecurityError synchronously.

- Guard `info().serviceWorker` evaluation with try/catch to return `false` on SecurityError (#1585)
- Guard PWA serviceWorker registration with try/catch to let the web app load rather than hanging (#1582)
- Add contributor credit entry for @krinry in `contributors/people.toml`
This commit is contained in:
krinry committed 2026-10-16 18:09:38 +05:30
1 parent 8f02f52a44
commit f13429010f
2 files changed
+19 -3

No files matched your search

+4
View File
@@ -87,3 +87,7 @@ sync_github_name = false
real_name = "Marco Arnulfo"
display_name = "Marco Arnulfo"
sync_github_name = false
[people.krinry]
display_name = "krinry"
sync_github_name = true