-
Notifications
You must be signed in to change notification settings - Fork 25
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
Make worker more resilient to DOM API usage attempts #7425
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7425 +/- ##
=======================================
Coverage 72.60% 72.61%
=======================================
Files 1212 1212
Lines 37846 37846
Branches 7099 7099
=======================================
+ Hits 27479 27481 +2
+ Misses 10367 10365 -2 ☔ View full report in Codecov by Sentry. |
// The picker uses `bootstrap-switch-button`, which does a `window` check on load and breaks | ||
// the MV3 background worker. Lazy-loading it keeps the background worker from breaking. | ||
const { userSelectElement } = await import( | ||
/* webpackChunkName: "editorContentScript" */ "@/contentScript/pageEditor/elementPicker" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverting the change in #7381 and adding a more appropriate comment.
No loom links were found in the first post. Please add one there if you'd like to it to appear on Slack. Do not edit this comment manually. |
What does this PR do?
The MV3 extension is failing to load due to an unchecked DOM access by the bricks. The dev tools make it difficult to find the source of this error.
Checklist
src/tsconfig.strictNullChecks.json
(if possible)Related