Repository navigation
fix(docs): ignore LIDNotifyId, Picture-in-Picture, and XBrowser bridge errors in Sentry - #430
Merged
Merged
Conversation
Some host app or browser evaluates a snippet in the page that calls its own LIDNotifyId global before defining it, and the ReferenceError reaches Sentry through the global onerror handler. The snippet is evaluated rather than loaded, so the only frame is <anonymous>:1:1, which allowUrls skips, and the event passes. Nothing in this build defines or calls LIDNotifyId, and other sites report the same error. Drop that exact message with ignoreErrors; other undefined globals are still reported. Assisted-by: AI
…in Sentry A browser feature or extension called requestPictureInPicture on a video in the page without a user gesture, and the browser rejected it with "NotAllowedError: The request is not triggered by a user activation." The only frame is the native requestPictureInPicture, which has no URL for allowUrls to check, so the event passes. This build never calls requestPictureInPicture, and the existing NotAllowedError filter only covers refused clipboard writes. Drop that exact message; other NotAllowedError rejections are still reported. Assisted-by: AI
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
nickvigilante
had a problem deploying
to
docs-preview
December 3, 2026 22:52 — with
GitHub Actions
Error
Android in-app browsers in the XBrowser family inject autofill and CSS scripts via evaluateJavascript that call their own missing xbrowser/swbrowser globals (DOCS-ENGINE-16, DOCS-ENGINE-17). The throw site is <anonymous>, so allowUrls lets them through.
nickvigilante
requested a deployment
to
docs-preview
December 4, 2026 15:56 — with
GitHub Actions
Waiting
nickvigilante
marked this pull request as ready for review
December 4, 2026 17:14
This branch is waiting to be deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge order
Independent; merges in any order.
Summary
Stops four Sentry issues from alerting. All come from code outside this build and slip past
allowUrlsbecause the frame that threw has no URL:ReferenceError: LIDNotifyId is not defined, 1 event at 2026-12-01 06:45 UTC on/docs/code-server/install.NotAllowedError: The request is not triggered by a user activation., 1 event at 2026-12-01 09:16 UTC on/docs/ai-coder/agents.ReferenceError: xbrowser is not defined, 3 events at 2026-12-04 14:41 UTC on/docs/install.ReferenceError: swbrowser is not defined, 1 event at 2026-12-04 14:41 UTC on/docs/install(same page view and trace as DOCS-ENGINE-16).Fix
DOCS-ENGINE-13 arrives through
global_handlers.onerrorwith a single frame,<anonymous>:1:1: a host app or browser evaluates a snippet in the page that calls its own undefinedLIDNotifyIdglobal.LIDNotifyIdappears nowhere in Coder's code, and other sites report the same error (for example exercism/website#12415).DOCS-ENGINE-14 arrives through
onunhandledrejectionwith a single frame,[native code] requestPictureInPicture: a browser feature or extension asked for Picture-in-Picture on a video in the page without a user gesture. This build never callsrequestPictureInPicture, and the existingNotAllowedErrorfilter only covers refused clipboard writes.DOCS-ENGINE-16 and DOCS-ENGINE-17 come from an Android in-app browser in the XBrowser family, which injects autofill and CSS scripts through
evaluateJavascriptthat call its own missing bridge globals. DOCS-ENGINE-16 arrives throughbrowserapierrors.setTimeout: the throw site is<anonymous>execute_auto_fill, and the only frame with a URL is Sentry'ssetTimeoutwrapper in our chunk, soallowUrlspasses. DOCS-ENGINE-17 arrives throughglobal_handlers.onerrorwith only<anonymous>frames (needInjectCss). Neither global appears in Coder's code, and other projects filter the same errors (for example koala73/worldmonitor#9172 and onetimesecret/onetimesecret#4309).Each gets an exact
ignoreErrorspattern next to the other outside-error filters (one shared(?:sw|x)browserpattern for DOCS-ENGINE-16 and -17), so other undefined globals and otherNotAllowedErrorrejections are still reported.QA
Nothing to see on the site; the change only affects which client errors are sent to Sentry. After it deploys, DOCS-ENGINE-13, -14, -16 and -17 should get no new events, and other issues in the docs-engine Sentry project keep reporting as before.
Pages to compare
Testing
New cases in
apps/docs/scripts/sentry-filters.test.mjsrun each event, with its real frames, through the SDK's own event filter. TheLIDNotifyIderror, the Picture-in-Picture rejection, and both XBrowser bridge errors are dropped. OtherReferenceErrors from an evaluated script (including near-miss names such asLIDNotifyIdx,zzbrowserandbrowser) and an unrelatedNotAllowedErrorare kept. Every drop test fails without its filter. On top of currentmain,pnpm turbo run typecheck lint test --filter=@coder/docs-sitepasses, as do Oxfmt and Oxlint on the changed files.Upstream
No. These are Coder-specific Sentry filters, not a Fumadocs change.
Links
🤖 Built with AI assistance.