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 running in <iframe sandbox="allow-scripts"> #12101

Merged
merged 2 commits into from
Jul 26, 2022
Merged

Conversation

ansis
Copy link
Contributor

@ansis ansis commented Jul 21, 2022

Accessing window.caches throws an exception. Silence the exception and don't use the cache.

We don't have an easy way to add this to CI right now but I created a new debug page to test this.

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 creating map in an iframe with sandbox attribute.</changelog>

Accessing `window.caches` throws an exception.
@ansis ansis requested a review from mourner July 21, 2022 18:36
@ansis ansis added the bug 🐞 label Jul 21, 2022
@ansis ansis merged commit ab8f1b9 into main Jul 26, 2022
@ansis ansis deleted the fix-iframe-sandbox branch July 26, 2022 13:56
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.

None yet

2 participants