Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/sentry-v2' into mz/rrweb-ref-mul…
Browse files Browse the repository at this point in the history
…ti-gesture
  • Loading branch information
michellewzhang committed May 29, 2024
2 parents fd3e3ed + effc457 commit 99b4c57
Show file tree
Hide file tree
Showing 13 changed files with 1,336 additions and 90 deletions.
1 change: 1 addition & 0 deletions .github/workflows/size-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:

- name: Build Project
run: NODE_OPTIONS='--max-old-space-size=4096' yarn build:all

- name: Check bundle sizes
uses: getsentry/size-limit-action@master
with:
Expand Down
4 changes: 4 additions & 0 deletions packages/rrweb/src/record/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
scrollCallback,
canvasMutationParam,
adoptedStyleSheetParam,
IWindow,
} from '@sentry-internal/rrweb-types';
import type { CrossOriginIframeMessageEventContent } from '../types';
import {
Expand Down Expand Up @@ -444,6 +445,9 @@ function record<T = eventWithTime>(
},
onIframeLoad: (iframe, childSn) => {
iframeManager.attachIframe(iframe, childSn);
if (iframe.contentWindow) {
canvasManager.addWindow(iframe.contentWindow as IWindow);
}
shadowDomManager.observeAttachShadow(iframe);
},
onStylesheetLoad: (linkEl, childSn) => {
Expand Down
4 changes: 4 additions & 0 deletions packages/rrweb/src/record/mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import type {
removedNodeMutation,
addedNodeMutation,
Optional,
IWindow,
} from '@sentry-internal/rrweb-types';
import {
isBlocked,
Expand Down Expand Up @@ -344,6 +345,9 @@ export default class MutationBuffer {
},
onIframeLoad: (iframe, childSn) => {
this.iframeManager.attachIframe(iframe, childSn);
if (iframe.contentWindow) {
this.canvasManager.addWindow(iframe.contentWindow as IWindow);
}
this.shadowDomManager.observeAttachShadow(iframe);
},
onStylesheetLoad: (link, childSn) => {
Expand Down
Loading

0 comments on commit 99b4c57

Please sign in to comment.