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

Fix Firefox crash (marketo forms) #780

Merged
merged 2 commits into from
Sep 23, 2020
Merged

Fix Firefox crash (marketo forms) #780

merged 2 commits into from
Sep 23, 2020

Conversation

zstix
Copy link
Contributor

@zstix zstix commented Sep 23, 2020

Description

When Firefox has "Strict" content blocked enabled, the developer site would crash because the browser removed MktoForms2 from the window object. This PR checks to make sure it's available (and is loaded) before adding the form to the page.

Reviewer Notes

I initially tried to create an ErrorBoundary component, but the issue was coming from gatsby-node initially. At some point, we should consider building in some boundaries so the site can partially function in the event of errors.

Related Issue(s) / Ticket(s)

@zstix zstix merged commit de7b44e into main Sep 23, 2020
@zstix zstix deleted the zack/firefox-crash-fix branch September 23, 2020 18:12
@nr-opensource-bot
Copy link
Contributor

🎉 This PR is included in version 1.21.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Marketo breaks site for Firefox users with ad-blocker enabled
3 participants