Skip to content

Avoid function state in IndexedDB page wait#580

Open
issackjohn wants to merge 1 commit into
WebKit:mainfrom
issackjohn:issack/indexeddb-page-wait-cleanup
Open

Avoid function state in IndexedDB page wait#580
issackjohn wants to merge 1 commit into
WebKit:mainfrom
issackjohn:issack/indexeddb-page-wait-cleanup

Conversation

@issackjohn

Copy link
Copy Markdown
Contributor

Follow-up to the review on #531.

DeletingAllItems stored its resolver as a property on the
iterationFinishedListener function object and registered a
previous-page-loaded listener that was never removed.

This replaces that with a waitForPreviousPageLoaded() helper which
registers a one-shot listener per page transition, so the resolver is
local to the navigation it belongs to and the listener cleans itself up.

The DeletingAllItems step stored its resolver as a property on the
iterationFinishedListener function object and registered a listener that
was never removed.

Replace it with a waitForPreviousPageLoaded() helper that registers a
one-shot listener for each page transition, so the resolver is local to
the navigation it belongs to and the listener cleans itself up.

Follow-up to the review on WebKit#531.
@netlify

netlify Bot commented Jul 24, 2026

Copy link
Copy Markdown

Deploy Preview for webkit-speedometer-preview ready!

Name Link
🔨 Latest commit 8934c9d
🔍 Latest deploy log https://app.netlify.com/projects/webkit-speedometer-preview/deploys/6a63f58ea3a89700086aa91a
😎 Deploy Preview https://deploy-preview-580--webkit-speedometer-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

1 participant