diff --git a/src/components/GroundingHtml.web.tsx b/src/components/GroundingHtml.web.tsx
index f5e08240..1cce651c 100644
--- a/src/components/GroundingHtml.web.tsx
+++ b/src/components/GroundingHtml.web.tsx
@@ -114,7 +114,7 @@ export function GroundingHtml({ html, style }: GroundingHtmlProps) {
scrollEl.addEventListener('wheel', onWheel, { capture: true, passive: false })
return () => scrollEl.removeEventListener('wheel', onWheel, { capture: true })
- }, [contentWidth])
+ }, [])
const captureBubblePress = useCallback((event: SyntheticEvent) => {
stopBubbleScrollCapture(event)
diff --git a/src/utils/__tests__/sanitizeGroundingHtml.test.ts b/src/utils/__tests__/sanitizeGroundingHtml.test.ts
index ec5a7e70..a448c6e7 100644
--- a/src/utils/__tests__/sanitizeGroundingHtml.test.ts
+++ b/src/utils/__tests__/sanitizeGroundingHtml.test.ts
@@ -29,6 +29,18 @@ describe('stripExecutableGroundingMarkup', () => {
const html = 'ipt>alert(1)ipt>'
expect(stripExecutableGroundingMarkup(html)).toBe('')
})
+
+ it('removes embed-capable elements', () => {
+ const html =
+ '