@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.
package/dist/rrweb.js CHANGED
@@ -15306,7 +15306,17 @@ function record(options = {}) {
15306
15306
  );
15307
15307
  }
15308
15308
  return () => {
15309
- handlers.forEach((h) => h());
15309
+ handlers.forEach((h) => {
15310
+ try {
15311
+ h();
15312
+ } catch (error) {
15313
+ const msg = String(error);
15314
+ const isCrossOriginFrameError = msg.includes("from accessing a cross-origin frame") && msg.includes("Blocked a frame with origin");
15315
+ if (!isCrossOriginFrameError) {
15316
+ throw error;
15317
+ }
15318
+ }
15319
+ });
15310
15320
  processedNodeManager.destroy();
15311
15321
  iframeManager.removeLoadListener();
15312
15322
  iframeManager.destroy();