@posthog/rrweb 0.0.48 → 0.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15299,7 +15299,17 @@ function record(options = {}) {
15299
15299
  );
15300
15300
  }
15301
15301
  return () => {
15302
- handlers.forEach((h) => h());
15302
+ handlers.forEach((h) => {
15303
+ try {
15304
+ h();
15305
+ } catch (error) {
15306
+ const msg = String(error);
15307
+ const isCrossOriginFrameError = msg.includes("from accessing a cross-origin frame") && msg.includes("Blocked a frame with origin");
15308
+ if (!isCrossOriginFrameError) {
15309
+ throw error;
15310
+ }
15311
+ }
15312
+ });
15303
15313
  processedNodeManager.destroy();
15304
15314
  iframeManager.removeLoadListener();
15305
15315
  iframeManager.destroy();