René's URL Explorer Experiment


Title: feat(replay): Add more default block filters by lucas-zimerman · Pull Request #7233 · getsentry/sentry-javascript · GitHub

Open Graph Title: feat(replay): Add more default block filters by lucas-zimerman · Pull Request #7233 · getsentry/sentry-javascript

X Title: feat(replay): Add more default block filters by lucas-zimerman · Pull Request #7233 · getsentry/sentry-javascript

Description: This adds the following block filters: link[rel="icon"] (Browser icon) link[rel="apple-touch-icon"]' (Browser icon) base[href="/"] The link icons could be removed since they're not visible from the Sentry Replay UI. The base href is removing the localhost references that causes CSP errors at Sentry as seen here #7184 and here #7183 (comment) The base[href="/"] filter makes sense for apps that are using Sentry/Javascript since the tools usually adds a localhost reference and that causes the Sentry Website to have CSP errors. Additionally, I have validated it locally with the Replay Sample/Demo but I am unsure how should I add tests for those items. Before submitting a pull request, please take a look at our Maybe in the future, consider adding ways for sibling SDKs to add additional block parameters so that the main Replay doesn't include filters from platform specific code. Contributing guidelines and verify: If you've added code that should be tested, please add tests. Ensure your code lints and the test suite passes (yarn lint) & (yarn test). (Yarn test is not passing locally because the machine is running out of memory and there's a test that seems to be time sensitive)

Open Graph Description: This adds the following block filters: link[rel="icon"] (Browser icon) link[rel="apple-touch-icon"]' (Browser icon) base[href="/"] The link icons could be remove...

X Description: This adds the following block filters: link[rel="icon"] (Browser icon) link[rel="apple-touch-icon"]' (Browser icon) base[href="/"] Th...

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

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:b3c1fc00-d034-0f42-d6b5-8dcdeee3719a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9F12:3047DC:C47930:100A36E:6B04DE50
html-safe-nonceb0db01765d615b17f82443d9639c12a90269c8e1aaca81161984fa5e6b47c151
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjEyOjMwNDdEQzpDNDc5MzA6MTAwQTM2RTo2QjA0REU1MCIsInZpc2l0b3JfaWQiOiIzODM2ODg3MzQxNzk3MjY5MDcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac3fc9cbb5f3d48e791bb55c86e58054a57fc4c85a1c07e837b88a88d879bd500c
hovercard-subject-tagpull_request:1247490172
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/getsentry/sentry-javascript/pull/7233/files
twitter:imagehttps://avatars.githubusercontent.com/u/8229322?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/8229322?s=400&v=4
og:image:altThis adds the following block filters: link[rel="icon"] (Browser icon) link[rel="apple-touch-icon"]' (Browser icon) base[href="/"] The link icons could be remove...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None194dacb8acfd3e4d3ffb2704e0b1f10327f0dad690a7142acc7b0e0a2d073965
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6c35540a0a2991ee20bd053ba2601cce33f72cb1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/7233/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F7233%2Ffiles
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%2F7233%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/pull/7233/files
Reloadhttps://github.com/getsentry/sentry-javascript/pull/7233/files
Reloadhttps://github.com/getsentry/sentry-javascript/pull/7233/files
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues334 (334)https://github.com/getsentry/sentry-javascript/issues
Pull requests51 (51)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
Sign up for GitHub https://github.com/signup?return_to=%2Fgetsentry%2Fsentry-javascript%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgetsentry%2Fsentry-javascript%2Fissues%2Fnew%2Fchoose
mydeahttps://github.com/mydea
getsentry:develophttps://github.com/getsentry/sentry-javascript/tree/develop
lucas-zimerman:fix/blockall-newtypeshttps://github.com/lucas-zimerman/sentry-javascript/tree/fix/blockall-newtypes
Conversation 7 https://github.com/getsentry/sentry-javascript/pull/7233
Commits 12 https://github.com/getsentry/sentry-javascript/pull/7233/commits
Checks 0 https://github.com/getsentry/sentry-javascript/pull/7233/checks
Files changed https://github.com/getsentry/sentry-javascript/pull/7233/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/7233/files
feat(replay): Add more default block filters https://github.com/getsentry/sentry-javascript/pull/7233/files#top
Show all changes 12 commits https://github.com/getsentry/sentry-javascript/pull/7233/files
60c2252 Add additional block filters lucas-zimerman Feb 20, 2023 https://github.com/getsentry/sentry-javascript/pull/7233/commits/60c225240cef11fb71093a238dfbc0ad5c54af69
3e44dac fix prettier lucas-zimerman Feb 20, 2023 https://github.com/getsentry/sentry-javascript/pull/7233/commits/3e44dacb360352e5a8998c850fe50ecfbab36b90
6d7b8ac isolated base block to const var lucas-zimerman Feb 21, 2023 https://github.com/getsentry/sentry-javascript/pull/7233/commits/6d7b8ace56965a77aa256dc18f66fca65f81b906
d6da706 fix changes lucas-zimerman Feb 21, 2023 https://github.com/getsentry/sentry-javascript/pull/7233/commits/d6da7068ad1d773556a561ea7caaf8feeedbd453
4c0f51d Merge branch 'develop' into fix/blockall-newtypes lucas-zimerman Feb 21, 2023 https://github.com/getsentry/sentry-javascript/pull/7233/commits/4c0f51d0b6ae3e23426b72fec8e6fab2cd06b379
310480e fix snapshot lucas-zimerman Feb 22, 2023 https://github.com/getsentry/sentry-javascript/pull/7233/commits/310480e69e37f6a198f3328fc5482cbb24412e57
32a20fe fix tests lucas-zimerman Feb 22, 2023 https://github.com/getsentry/sentry-javascript/pull/7233/commits/32a20fe52a804b86184aa71f834de09c316fb80d
ce813b8 fix lint lucas-zimerman Feb 22, 2023 https://github.com/getsentry/sentry-javascript/pull/7233/commits/ce813b89ecfea2a1b118c546d045216de77b94c0
79d575c fix prettier lucas-zimerman Feb 22, 2023 https://github.com/getsentry/sentry-javascript/pull/7233/commits/79d575cc70678b0985aa8b36dc034b1ad6f6e6d9
912aef9 nit test lucas-zimerman Feb 22, 2023 https://github.com/getsentry/sentry-javascript/pull/7233/commits/912aef98c98793218b623a73a979ed1f700799d5
0b70fa3 fix link on replay lucas-zimerman Feb 22, 2023 https://github.com/getsentry/sentry-javascript/pull/7233/commits/0b70fa3ce15461e3ebec4b14117299d4f5cb920d
5736cd5 Merge branch 'develop' into fix/blockall-newtypes lucas-zimerman Feb 22, 2023 https://github.com/getsentry/sentry-javascript/pull/7233/commits/5736cd5304dbcc146dba7f7666e8908de4cff742
Clear filters https://github.com/getsentry/sentry-javascript/pull/7233/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/7233/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/7233/files
privacy-chromium.json https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-8ab356d93f89577002079641a5cc194e29ed770b6ad8a104892d4fd5458a8d39
privacy-firefox.json https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-35f14387364d761aa61a4036b2ebdecbd14a92541f8075dbea5c05a8969b9472
privacy-webkit.json https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-aae13d1665194aa2b071f6d7985c9af60355b1feefe71f1dc282be348d3d8058
integration.ts https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-8fcb8015cb8a332c972960156ed5fcbe9d57ae5d3624f3a1c886c635ca6e5f3a
getPrivacyOptions.ts https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-8d59c59f53e6aa59bd82f27c9667fa0bc767a97bafa58b8e0799925ecba3187a
integrationSettings.test.ts https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-7db72ef0804571417dda664223490812d7b6ce3df15299059cc99d354f36d222
rrweb.test.ts https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-d6ea9ba52ee03e6a4a7f90be659b68c898e1bf23276e1f6ce15dd9a66c76cf0d
getPrivacyOptions.test.ts https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-2be558cd5a306b83c5061f092c4eb0b4b4b57c2b49f6bf860273703114947caf
...es/integration-tests/suites/replay/privacyDefault/test.ts-snapshots/privacy-chromium.jsonhttps://github.com/getsentry/sentry-javascript/pull/7233/files#diff-8ab356d93f89577002079641a5cc194e29ed770b6ad8a104892d4fd5458a8d39
View file https://github.com/lucas-zimerman/sentry-javascript/blob/5736cd5304dbcc146dba7f7666e8908de4cff742/packages/integration-tests/suites/replay/privacyDefault/test.ts-snapshots/privacy-chromium.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/7233/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-8ab356d93f89577002079641a5cc194e29ed770b6ad8a104892d4fd5458a8d39
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-8ab356d93f89577002079641a5cc194e29ed770b6ad8a104892d4fd5458a8d39
...ges/integration-tests/suites/replay/privacyDefault/test.ts-snapshots/privacy-firefox.jsonhttps://github.com/getsentry/sentry-javascript/pull/7233/files#diff-35f14387364d761aa61a4036b2ebdecbd14a92541f8075dbea5c05a8969b9472
View file https://github.com/lucas-zimerman/sentry-javascript/blob/5736cd5304dbcc146dba7f7666e8908de4cff742/packages/integration-tests/suites/replay/privacyDefault/test.ts-snapshots/privacy-firefox.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/7233/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-35f14387364d761aa61a4036b2ebdecbd14a92541f8075dbea5c05a8969b9472
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-35f14387364d761aa61a4036b2ebdecbd14a92541f8075dbea5c05a8969b9472
...ages/integration-tests/suites/replay/privacyDefault/test.ts-snapshots/privacy-webkit.jsonhttps://github.com/getsentry/sentry-javascript/pull/7233/files#diff-aae13d1665194aa2b071f6d7985c9af60355b1feefe71f1dc282be348d3d8058
View file https://github.com/lucas-zimerman/sentry-javascript/blob/5736cd5304dbcc146dba7f7666e8908de4cff742/packages/integration-tests/suites/replay/privacyDefault/test.ts-snapshots/privacy-webkit.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/7233/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-aae13d1665194aa2b071f6d7985c9af60355b1feefe71f1dc282be348d3d8058
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-aae13d1665194aa2b071f6d7985c9af60355b1feefe71f1dc282be348d3d8058
packages/replay/src/integration.tshttps://github.com/getsentry/sentry-javascript/pull/7233/files#diff-8fcb8015cb8a332c972960156ed5fcbe9d57ae5d3624f3a1c886c635ca6e5f3a
View file https://github.com/lucas-zimerman/sentry-javascript/blob/5736cd5304dbcc146dba7f7666e8908de4cff742/packages/replay/src/integration.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/7233/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-8fcb8015cb8a332c972960156ed5fcbe9d57ae5d3624f3a1c886c635ca6e5f3a
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-8fcb8015cb8a332c972960156ed5fcbe9d57ae5d3624f3a1c886c635ca6e5f3a
packages/replay/src/util/getPrivacyOptions.tshttps://github.com/getsentry/sentry-javascript/pull/7233/files#diff-8d59c59f53e6aa59bd82f27c9667fa0bc767a97bafa58b8e0799925ecba3187a
View file https://github.com/lucas-zimerman/sentry-javascript/blob/5736cd5304dbcc146dba7f7666e8908de4cff742/packages/replay/src/util/getPrivacyOptions.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/7233/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-8d59c59f53e6aa59bd82f27c9667fa0bc767a97bafa58b8e0799925ecba3187a
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-8d59c59f53e6aa59bd82f27c9667fa0bc767a97bafa58b8e0799925ecba3187a
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-8d59c59f53e6aa59bd82f27c9667fa0bc767a97bafa58b8e0799925ecba3187a
packages/replay/test/integration/integrationSettings.test.tshttps://github.com/getsentry/sentry-javascript/pull/7233/files#diff-7db72ef0804571417dda664223490812d7b6ce3df15299059cc99d354f36d222
View file https://github.com/lucas-zimerman/sentry-javascript/blob/5736cd5304dbcc146dba7f7666e8908de4cff742/packages/replay/test/integration/integrationSettings.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/7233/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-7db72ef0804571417dda664223490812d7b6ce3df15299059cc99d354f36d222
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-7db72ef0804571417dda664223490812d7b6ce3df15299059cc99d354f36d222
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-7db72ef0804571417dda664223490812d7b6ce3df15299059cc99d354f36d222
packages/replay/test/integration/rrweb.test.tshttps://github.com/getsentry/sentry-javascript/pull/7233/files#diff-d6ea9ba52ee03e6a4a7f90be659b68c898e1bf23276e1f6ce15dd9a66c76cf0d
View file https://github.com/lucas-zimerman/sentry-javascript/blob/5736cd5304dbcc146dba7f7666e8908de4cff742/packages/replay/test/integration/rrweb.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/7233/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-d6ea9ba52ee03e6a4a7f90be659b68c898e1bf23276e1f6ce15dd9a66c76cf0d
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-d6ea9ba52ee03e6a4a7f90be659b68c898e1bf23276e1f6ce15dd9a66c76cf0d
packages/replay/test/unit/util/getPrivacyOptions.test.tshttps://github.com/getsentry/sentry-javascript/pull/7233/files#diff-2be558cd5a306b83c5061f092c4eb0b4b4b57c2b49f6bf860273703114947caf
View file https://github.com/lucas-zimerman/sentry-javascript/blob/5736cd5304dbcc146dba7f7666e8908de4cff742/packages/replay/test/unit/util/getPrivacyOptions.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/7233/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-2be558cd5a306b83c5061f092c4eb0b4b4b57c2b49f6bf860273703114947caf
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-2be558cd5a306b83c5061f092c4eb0b4b4b57c2b49f6bf860273703114947caf
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-2be558cd5a306b83c5061f092c4eb0b4b4b57c2b49f6bf860273703114947caf
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-2be558cd5a306b83c5061f092c4eb0b4b4b57c2b49f6bf860273703114947caf
https://github.com/getsentry/sentry-javascript/pull/7233/files#diff-2be558cd5a306b83c5061f092c4eb0b4b4b57c2b49f6bf860273703114947caf
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.