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

Deduplicate wxt:content-script-started #1364

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DenizUgur
Copy link

@DenizUgur DenizUgur commented Jan 22, 2025

This fix prevents premature context invalidation. Some pages might send the same message again, either by design or a flaw. That shouldn't interfere with the context invalidation logic.

We could go even further and add a UUID to the event in stopOldScripts and check that but timestamp might be good enough.

fixes #1359

> This fix prevents premature context invalidation
> fixes wxt-dev#1359
Copy link

netlify bot commented Jan 22, 2025

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 98067bc
🔍 Latest deploy log https://app.netlify.com/sites/creative-fairy-df92c4/deploys/67914d4e469d6c0009d7876a
😎 Deploy Preview https://deploy-preview-1364--creative-fairy-df92c4.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 site 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.

Premature context invalidation for content scripts
1 participant