Skip to content

[6791] Sentry: SecurityError removeEventListener from cross-origin Window (Part II)#6851

Open
n-lark wants to merge 4 commits intomainfrom
6791-posthog-prevent-idle
Open

[6791] Sentry: SecurityError removeEventListener from cross-origin Window (Part II)#6851
n-lark wants to merge 4 commits intomainfrom
6791-posthog-prevent-idle

Conversation

@n-lark
Copy link
Contributor

@n-lark n-lark commented Mar 10, 2026

Description

See test plan and details here.

Related Issue(s)

Resolves #6791

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production
  • Link to Changelog Entry PR, or note why one is not needed.

Labels

  • Includes a DB migration? -> add the area:migration label

@n-lark n-lark requested a review from cstns March 10, 2026 18:34
@n-lark n-lark self-assigned this Mar 10, 2026
@n-lark n-lark changed the title [6791] Part II Sentry: SecurityError — removeEventListener from cross-origin Window [6791] Sentry: SecurityError removeEventListener from cross-origin Window (Part II) Mar 10, 2026
@codecov
Copy link

codecov bot commented Mar 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.64%. Comparing base (f8a4655) to head (d245afb).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6851   +/-   ##
=======================================
  Coverage   76.64%   76.64%           
=======================================
  Files         399      399           
  Lines       20155    20155           
  Branches     4851     4851           
=======================================
  Hits        15447    15447           
  Misses       4708     4708           
Flag Coverage Δ
backend 76.64% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

// session timer alive. PostHog resets its recording after ~30 minutes of
// inactivity on the parent page — but the user may be actively working
// inside the cross-origin iframe where events don't reach the parent.
this.posthogKeepAliveInterval = setInterval(() => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you also need to declare posthogKeepAliveInterval in a data block

    data () {
        return {
            posthogKeepAliveInterval: null
        }
    },

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sentry: SecurityError removeEventListener from cross-origin Window

2 participants