feat(paywalls): isolate web_view content with a fixed CSP#3652
Draft
alexrepty wants to merge 1 commit into
Draft
feat(paywalls): isolate web_view content with a fixed CSP#3652alexrepty wants to merge 1 commit into
alexrepty wants to merge 1 commit into
Conversation
2 tasks
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Jun 25, 2026
This was referenced Jun 25, 2026
66c0ccb to
a3e9e1a
Compare
61039df to
38f5302
Compare
This was referenced Jun 26, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## alexrepty/paywalls-web-view-rendering #3652 +/- ##
======================================================================
Coverage 80.33% 80.33%
======================================================================
Files 383 383
Lines 15717 15717
Branches 2194 2194
======================================================================
Hits 12627 12627
Misses 2213 2213
Partials 877 877 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
38f5302 to
6c73e7c
Compare
a3e9e1a to
0dffacc
Compare
When a `web_view` declares a `protocol_version`, the renderer injects a fixed Content-Security-Policy meta tag at document start to isolate the content from external sources: only same-origin images/scripts/fonts are allowed, `data:` references for images/fonts are blocked, and XHR/fetch/WebSocket are disallowed (`connect-src 'none'`). Geolocation is disabled. The bundle must be fully self-contained. Recommended labels: pr:other, pr:RevenueCatUI, feat:Paywalls_V2
6c73e7c to
71e76e1
Compare
0dffacc to
353f584
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Checklist
purchases-iosand hybridsMotivation
Description