Skip to content

Revert web worker registry name refactor to fix CSP build edge case #11790

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

Merged
merged 3 commits into from
Apr 21, 2022

Conversation

mourner
Copy link
Member

@mourner mourner commented Apr 21, 2022

Fixes #11764 by essentially reverting #11511, because it turned out that the optimization had edge cases beyond our control (like the CSP build being re-minified on user end).

Launch Checklist

  • briefly describe the changes in this PR
  • write tests for all new functionality
  • manually test the debug page
  • apply changelog label ('bug', 'feature', 'docs', etc) or use the label 'skip changelog'
  • add an entry inside this element for inclusion in the mapbox-gl-js changelog: <changelog>Fix an issue where CSP build was unusable after minification in a bundling setup.</changelog>

Sorry, something went wrong.

@mourner mourner requested a review from ansis April 21, 2022 16:45
Copy link
Contributor

@ansis ansis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with the example in the bug. Works! also works with csp-static.html

@ansis ansis merged commit 056d8fe into main Apr 21, 2022
@ansis ansis deleted the revert-web-worker-registry-optimization branch April 21, 2022 21:11
ansis added a commit that referenced this pull request Apr 22, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…11790) (#11805)

Co-authored-by: Volodymyr Agafonkin <agafonkin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants