Repository navigation
fix(sentry): ignore browser extension adoptedStyleSheets errors - #4157
sentry[bot] wants to merge 1 commit into
Conversation
|
The Sentry GitHub App installation for this repository is missing permissions it needs to keep iterating on this pull request to get CI passing. Review and accept the updated permissions to let Seer continue: https://github.com/organizations/codecov/settings/installations/86101127/permissions/update |
Bundle ReportChanges will increase total bundle size by 127 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: gazebo-production-esmAssets Changed:
Files in
view changes for bundle: gazebo-production-systemAssets Changed:
Files in
|
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #4157 +/- ##
=======================================
Coverage 98.77% 98.77%
=======================================
Files 823 823
Lines 15147 15147
Branches 4387 4387
=======================================
Hits 14962 14962
Misses 178 178
Partials 7 7
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #4157 +/- ##
=======================================
Coverage 98.77% 98.77%
=======================================
Files 823 823
Lines 15147 15147
Branches 4379 4379
=======================================
Hits 14962 14962
Misses 178 178
Partials 7 7
Continue to review full report in Codecov by Harness.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4157 +/- ##
=======================================
Coverage 98.77% 98.77%
=======================================
Files 823 823
Lines 15147 15147
Branches 4387 4387
=======================================
Hits 14962 14962
Misses 178 178
Partials 7 7
Continue to review full report in Codecov by Harness.
|
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #4157 +/- ##
=======================================
Coverage 98.77% 98.77%
=======================================
Files 823 823
Lines 15147 15147
Branches 4379 4379
=======================================
Hits 14962 14962
Misses 178 178
Partials 7 7
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Description
Browser extensions (such as Dark Reader and other theming tools) inject an inline script that proxies
document.adoptedStyleSheets. In modern Firefox (e.g. Firefox 159), the property is non-configurable, causing the extension's cleanup routine to throwTypeError: can't redefine non-configurable property "adoptedStyleSheets".Because the script is injected directly into the host page, the stack frames reference page URLs rather than extension protocols, so standard
denyUrlsdoes not catch it. Gazebo never accesses or redefinesadoptedStyleSheets, making this third-party noise.Notable Changes
customIgnoredErrorsinsrc/sentry.tscovering both Firefox (can't redefine non-configurable property "adoptedStyleSheets") and Chromium (Cannot redefine property: adoptedStyleSheets) variants.customIgnoredErrorstype signature toArray<string | RegExp>.src/sentry.test.tsverifying Sentry initialization includes and matches the ignore rule.Legal Boilerplate
Look, I get it. The entity doing business as "Codecov" is owned by Harness, Inc. In 2026 Harness acquired Codecov and as a result Harness is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Harness can use, modify, copy, and redistribute my contributions, under Harness's choice of terms.
Fixes GAZEBO-18BP
@sentry <feedback>: Autofix iterates on these changes@sentry stop iterating: Autofix stops iterating on this runThis PR was automatically generated by Sentry. You can adjust this setting at any time.
Note
Low Risk
Changes are limited to Sentry error filtering and new unit tests; no auth, API, or runtime app behavior changes.
Overview
Filters third-party browser extension noise out of Sentry by adding a regex to
customIgnoredErrorsthat matches Firefox and ChromiumadoptedStyleSheetsredefine errors, and widening that list to allowRegExpentries alongside strings.Adds
src/sentry.test.tsto assertsetupSentrypasses those patterns throughignoreErrorsand does not ignore unrelated errors.public/mockServiceWorker.jsonly picks up trailing commas on a fewpostMessagecalls (formatting).Reviewed by Cursor Bugbot for commit f961e3c. Bugbot is set up for automated code reviews on this repo. Configure here.