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(base): triggering beforeunload event may cause Uncaught null #520

Merged
merged 2 commits into from
Mar 22, 2025

Conversation

nyannyacha
Copy link
Contributor

What kind of change does this PR introduce?

Bug fix

Description

Triggering beforeunload event may cause Uncaught null error due to resource limitation.

Closes FUNC-205

Copy link

linear bot commented Mar 21, 2025

@nyannyacha nyannyacha force-pushed the fix-beforeunload-uncaught-null branch from 0fdaf09 to 73a3218 Compare March 21, 2025 07:01
@nyannyacha nyannyacha enabled auto-merge (squash) March 21, 2025 07:25
@kallebysantos
Copy link
Contributor

ping @jumski: You be interested on this one

@jumski
Copy link

jumski commented Mar 21, 2025

Thanks for sharing @kallebysantos .

I indeed encountered this error regularly, but have no idea how to reproduce it.

Thanks for solving it @nyannyacha 😻

@nyannyacha
Copy link
Contributor Author

It's been a while @jumski 😁
Any feedback after this PR has been merged is greatly appreciated!

@jumski
Copy link

jumski commented Mar 21, 2025

Indeed @nyannyacha 😅

I was super focused on the SQL part lately, but it's done already 🥳

I will be working on updates to Edge Worker to make it work with pgflow soon, so will have a chance to test it again!

@jumski
Copy link

jumski commented Mar 21, 2025

@nyannyacha any clues to how to trigger it to verify? Other than spam-triggering onbeforeunload

@nyannyacha nyannyacha merged commit 62051c8 into main Mar 22, 2025
5 checks passed
@nyannyacha nyannyacha deleted the fix-beforeunload-uncaught-null branch March 22, 2025 05:52
Copy link

🎉 This PR is included in version 1.67.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@laktek
Copy link
Contributor

laktek commented Mar 22, 2025

@nyannyacha we need to backport this to Deno 2 release as well?

@nyannyacha
Copy link
Contributor Author

@laktek yeah this should be backported to the develop branch as well.

@nyannyacha
Copy link
Contributor Author

@jumski I think this is easily reproducible via a loop that invokes a function that consumes excessive CPU time.

nyannyacha added a commit that referenced this pull request Mar 24, 2025
* chore: add old eszip migration test (#512)

* chore(base): add a dependency

* chore(base): add `.gitignore`

* chore: add scripts

* chore(ci): add a step that brings test eszip binaries

* chore(base): update `.gitignore`

* chore(base): add old eszip migration test

* chore(base): add snapshots for old eszip migration tests

* stamp(ci): change bucket name

* stamp: update snapshots

* stamp: polishing

* fix(base): triggering `beforeunload` event may cause `Uncaught null` (#520)

* fix(base): triggering `beforeunload` event may cause `Uncaught null`

* chore: add an integration test
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.

4 participants