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

bug(web): Uncaught (in promise) DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules on help.keyman.com #11467

Closed
mcdurdin opened this issue May 16, 2024 · 3 comments · Fixed by #11472
Assignees
Milestone

Comments

@mcdurdin
Copy link
Member

Uncaught (in promise) DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules
    at ge.<anonymous> (https://s.keyman.com/kmw/engine/17.0.325/keymanweb.js:7:25426)
    at Generator.next (<anonymous>)
    at https://s.keyman.com/kmw/engine/17.0.325/keymanweb.js:1:1395
    at new Promise (<anonymous>)
    at Z (https://s.keyman.com/kmw/engine/17.0.325/keymanweb.js:1:1215)
    at ge.allLoadedPromise (https://s.keyman.com/kmw/engine/17.0.325/keymanweb.js:7:25332)
    at VisualKeyboard.<anonymous> (https://s.keyman.com/kmw/engine/17.0.325/keymanweb.js:23:1158)
    at Generator.next (<anonymous>)
    at https://s.keyman.com/kmw/engine/17.0.325/keymanweb.js:1:1395
    at new Promise (<anonymous>)
    at Z (https://s.keyman.com/kmw/engine/17.0.325/keymanweb.js:1:1215)
    at MutationObserver.detectAndHandleInsertion (https://s.keyman.com/kmw/engine/17.0.325/keymanweb.js:23:1080)

e.g. https://help.keyman.com/keyboard/basic_kbdhe220/1.1/basic_kbdhe220

Manifests visually with two issues:

  • Oversized fonts
  • Missing special keys font

image

@jahorton
Copy link
Contributor

Ah, because it's dealing with a cross-origin stylesheet. My normal test pattern against that tests against local stylesheets first, which wouldn't have caught this. Sadly, that makes detecting stylesheet-load more tricky, but I'll figure something out.

@mcdurdin
Copy link
Member Author

Copy link

sentry-io bot commented May 18, 2024

This crash report probably has the same root cause (tracked by @mcdurdin)
Sentry Issue: HELP-KEYMAN-COM-BXQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants