Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Make the beforeunload event tests work regardless of extensions #5478

Merged
merged 1 commit into from
Apr 24, 2024

Commits on Apr 24, 2024

  1. Tests: Make the beforeunload event tests work regardless of extensions

    Some browser extensions, like React DevTools, send messages to the content area.
    Since our beforeunload event test listens for all messages, it used to catch
    those as well, failing the test.
    
    Add a `source` field to the payload JSON and check for it before treating the
    message as coming from our own test to make sure the test passes even with such
    browser extensions installed.
    mgol committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    6f0a7dd View commit details
    Browse the repository at this point in the history