René's URL Explorer Experiment


Title: feat(browser): Prevent initialization in browser extensions by s1gr1d · Pull Request #10844 · getsentry/sentry-javascript · GitHub

Open Graph Title: feat(browser): Prevent initialization in browser extensions by s1gr1d · Pull Request #10844 · getsentry/sentry-javascript

X Title: feat(browser): Prevent initialization in browser extensions by s1gr1d · Pull Request #10844 · getsentry/sentry-javascript

Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.

Open Graph Description: Prevents initialization inside chrome.* and browser.* extension environments. Also refactored init() in browser because of eslint warning about too much complexity. Fixes #10632

X Description: Prevents initialization inside chrome.* and browser.* extension environments. Also refactored init() in browser because of eslint warning about too much complexity. Fixes #10632

Opengraph URL: https://github.com/getsentry/sentry-javascript/pull/10844

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:793f6a92-e7f7-72a1-6c3a-b320dcdfa1e3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id834E:1F87:6978121:85F57AA:6B040804
html-safe-nonce133b4a7ac698d83f013530250b1ef49749ffd269b5454182be7c85f20e81541a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzRFOjFGODc6Njk3ODEyMTo4NUY1N0FBOjZCMDQwODA0IiwidmlzaXRvcl9pZCI6IjgzODc3NjY3ODUyMDU4NjQ0NTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac56887c724a6f2584fee443bc808455a17e5c2eda3f9322a5852e76230410fd34
hovercard-subject-tagpull_request:1747777511
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/getsentry/sentry-javascript/10844/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/9a500a6722fc1f1bb36785851d93313e32077f55b82888c08c73d7f0e1e8074c/getsentry/sentry-javascript/pull/10844
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9a500a6722fc1f1bb36785851d93313e32077f55b82888c08c73d7f0e1e8074c/getsentry/sentry-javascript/pull/10844
og:image:altPrevents initialization inside chrome.* and browser.* extension environments. Also refactored init() in browser because of eslint warning about too much complexity. Fixes #10632
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernames1gr1d
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/10844#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F10844
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F10844
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/pull/10844
Reloadhttps://github.com/getsentry/sentry-javascript/pull/10844
Reloadhttps://github.com/getsentry/sentry-javascript/pull/10844
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues342 (342)https://github.com/getsentry/sentry-javascript/issues
Pull requests60 (60)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
s1gr1dhttps://github.com/s1gr1d
develophttps://github.com/getsentry/sentry-javascript/tree/develop
sig-prevent-init-in-extensionhttps://github.com/getsentry/sentry-javascript/tree/sig-prevent-init-in-extension
Conversationhttps://github.com/getsentry/sentry-javascript/pull/10844
Commits4 (4)https://github.com/getsentry/sentry-javascript/pull/10844/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/10844/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/10844/files
feat(browser): Prevent initialization in browser extensionshttps://github.com/getsentry/sentry-javascript/pull/10844#top
s1gr1dhttps://github.com/s1gr1d
develophttps://github.com/getsentry/sentry-javascript/tree/develop
sig-prevent-init-in-extensionhttps://github.com/getsentry/sentry-javascript/tree/sig-prevent-init-in-extension
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
Feb 28, 2024https://github.com/getsentry/sentry-javascript/pull/10844#issue-2159032639
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10844
#10632https://github.com/getsentry/sentry-javascript/issues/10632
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10844
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
Feb 28, 2024https://github.com/getsentry/sentry-javascript/pull/10844#event-11952117360
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
mydeahttps://github.com/mydea
February 28, 2024 13:57https://github.com/getsentry/sentry-javascript/pull/10844#event-11952125271
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
Feb 28, 2024https://github.com/getsentry/sentry-javascript/pull/10844#event-11953434034
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/8e2fa68a867635f56c0f3493c4c653173e13131d..1b85c6b7076fc9c2268f4c0214c82fde6368f257
8e2fa68https://github.com/getsentry/sentry-javascript/commit/8e2fa68a867635f56c0f3493c4c653173e13131d
1b85c6bhttps://github.com/getsentry/sentry-javascript/commit/1b85c6b7076fc9c2268f4c0214c82fde6368f257
Compare https://github.com/getsentry/sentry-javascript/compare/8e2fa68a867635f56c0f3493c4c653173e13131d..1b85c6b7076fc9c2268f4c0214c82fde6368f257
February 28, 2024 15:30https://github.com/getsentry/sentry-javascript/pull/10844#event-11953441067
https://github.com/mydea
mydeahttps://github.com/mydea
Feb 28, 2024 https://github.com/getsentry/sentry-javascript/pull/10844#pullrequestreview-1906588141
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/10844/files
packages/browser/src/sdk.tshttps://github.com/getsentry/sentry-javascript/pull/10844/files#diff-40448f2ae3835a5923e7744870a97909f2dc739e4d2ee5a3ea0afb3459c5ec28
mydeahttps://github.com/mydea
Feb 28, 2024https://github.com/getsentry/sentry-javascript/pull/10844#discussion_r1506160741
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10844
https://github.com/mydea
mydeahttps://github.com/mydea
Feb 28, 2024 https://github.com/getsentry/sentry-javascript/pull/10844#pullrequestreview-1906590393
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/10844/files
packages/browser/test/unit/sdk.test.tshttps://github.com/getsentry/sentry-javascript/pull/10844/files#diff-2838ab40b251a2428639be19154408fa3b2796e929662ea355146827472e59ed
mydeahttps://github.com/mydea
Feb 28, 2024https://github.com/getsentry/sentry-javascript/pull/10844#discussion_r1506162090
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10844
s1gr1dhttps://github.com/s1gr1d
Feb 28, 2024https://github.com/getsentry/sentry-javascript/pull/10844#discussion_r1506265158
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10844
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Feb 28, 2024https://github.com/getsentry/sentry-javascript/pull/10844#issuecomment-1969246862
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10844
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10844
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/1b85c6b7076fc9c2268f4c0214c82fde6368f257..6516bc95f9666b1bae9f6ff2e2c96da9c3b97144
1b85c6bhttps://github.com/getsentry/sentry-javascript/commit/1b85c6b7076fc9c2268f4c0214c82fde6368f257
6516bc9https://github.com/getsentry/sentry-javascript/commit/6516bc95f9666b1bae9f6ff2e2c96da9c3b97144
Compare https://github.com/getsentry/sentry-javascript/compare/1b85c6b7076fc9c2268f4c0214c82fde6368f257..6516bc95f9666b1bae9f6ff2e2c96da9c3b97144
February 28, 2024 16:37https://github.com/getsentry/sentry-javascript/pull/10844#event-11954393749
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
mydeahttps://github.com/mydea
February 28, 2024 16:42https://github.com/getsentry/sentry-javascript/pull/10844#event-11954455744
https://github.com/mydea
mydeahttps://github.com/mydea
Feb 29, 2024 https://github.com/getsentry/sentry-javascript/pull/10844#pullrequestreview-1908389509
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/10844/files
mydeahttps://github.com/mydea
https://github.com/getsentry/sentry-javascript/pull/10844#pullrequestreview-1908389509
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10844
dev-packages/browser-integration-tests/suites/manual-client/skip-init-browser-extension/init.jshttps://github.com/getsentry/sentry-javascript/pull/10844/files#diff-79555072307db2cf4183fb845cf4e42e1dc2cfea0d4cb188ad1486f10b6f6e57
mydeahttps://github.com/mydea
Feb 29, 2024https://github.com/getsentry/sentry-javascript/pull/10844#discussion_r1507279889
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10844
dev-packages/browser-integration-tests/suites/manual-client/skip-init-chrome-extension/init.jshttps://github.com/getsentry/sentry-javascript/pull/10844/files#diff-68a25593a197834549aab9cd469159dcdc4712d4bdb78cdde814d0369fba9b63
mydeahttps://github.com/mydea
Feb 29, 2024https://github.com/getsentry/sentry-javascript/pull/10844#discussion_r1507280335
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10844
s1gr1dhttps://github.com/s1gr1d
February 29, 2024 11:30https://github.com/getsentry/sentry-javascript/pull/10844#commits-pushed-dbb42d4
https://github.com/s1gr1d
prevent initialization inside a browser extensionhttps://github.com/getsentry/sentry-javascript/pull/10844/commits/dbb42d407b79e0cfe6e3a143d1fe92d365039f4f
dbb42d4https://github.com/getsentry/sentry-javascript/pull/10844/commits/dbb42d407b79e0cfe6e3a143d1fe92d365039f4f
https://github.com/s1gr1d
less mutation on options; review commentshttps://github.com/getsentry/sentry-javascript/pull/10844/commits/0a6730a50865292ffc2be2b3867cef4e317e1e73
0a6730ahttps://github.com/getsentry/sentry-javascript/pull/10844/commits/0a6730a50865292ffc2be2b3867cef4e317e1e73
https://github.com/s1gr1d
fix testshttps://github.com/getsentry/sentry-javascript/pull/10844/commits/8c5ebc06d454204aa4185a6574ca43df9576f7d6
8c5ebc0https://github.com/getsentry/sentry-javascript/pull/10844/commits/8c5ebc06d454204aa4185a6574ca43df9576f7d6
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/6516bc95f9666b1bae9f6ff2e2c96da9c3b97144..8c5ebc06d454204aa4185a6574ca43df9576f7d6
6516bc9https://github.com/getsentry/sentry-javascript/commit/6516bc95f9666b1bae9f6ff2e2c96da9c3b97144
8c5ebc0https://github.com/getsentry/sentry-javascript/commit/8c5ebc06d454204aa4185a6574ca43df9576f7d6
Compare https://github.com/getsentry/sentry-javascript/compare/6516bc95f9666b1bae9f6ff2e2c96da9c3b97144..8c5ebc06d454204aa4185a6574ca43df9576f7d6
February 29, 2024 10:31https://github.com/getsentry/sentry-javascript/pull/10844#event-11963967357
https://github.com/s1gr1d
review comments, fix testhttps://github.com/getsentry/sentry-javascript/pull/10844/commits/efb9df0d1a8378f018d81386e295bfe4563c9f25
efb9df0https://github.com/getsentry/sentry-javascript/pull/10844/commits/efb9df0d1a8378f018d81386e295bfe4563c9f25
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
February 29, 2024 12:23https://github.com/getsentry/sentry-javascript/pull/10844#event-11965231233
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
784b485https://github.com/getsentry/sentry-javascript/commit/784b485020b91aac4f2ac0160ae6df27d91304d9
Feb 29, 2024https://github.com/getsentry/sentry-javascript/pull/10844#event-11965770819
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
February 29, 2024 13:08https://github.com/getsentry/sentry-javascript/pull/10844#event-11965771055
https://github.com/jaredp
jaredphttps://github.com/jaredp
May 15, 2024 https://github.com/getsentry/sentry-javascript/pull/10844#ref-issue-2131714500
Prevent SDK initialization via Sentry.init in Chrome extension #10632 https://github.com/getsentry/sentry-javascript/issues/10632
https://github.com/ddomonkos
ddomonkoshttps://github.com/ddomonkos
Aug 1, 2024 https://github.com/getsentry/sentry-javascript/pull/10844#ref-issue-2441919191
Sentry does not init in browser extension's service worker #13152 https://github.com/getsentry/sentry-javascript/issues/13152
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F10844
https://github.com/mydea
mydea https://github.com/mydea
https://github.com/getsentry/sentry-javascript/pull/10844/files/6516bc95f9666b1bae9f6ff2e2c96da9c3b97144
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10844
https://github.com/s1gr1d
s1gr1d https://github.com/s1gr1d
Prevent SDK initialization via Sentry.init in Chrome extension https://github.com/getsentry/sentry-javascript/issues/10632
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10844
https://github.com/s1gr1d
https://github.com/mydea
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.