Repository navigation
fix: enforce preview resource and action boundaries - #156
Merged
Merged
Conversation
Resolve physical targets through a read-only resource provider instead of granting workspace and external parent directories to the webview loader. Limit external declarations to exact regular files, revoke obsolete grants and identify external preview resources as read-only. Signed-off-by: squidfunk <martin.donath@squidfunk.com>
Replay the retained update after the webview installs its listener so a fast native response cannot leave the initial preview blank. Add revision keys to workspace images so edits refresh without rotating the document mount. Signed-off-by: squidfunk <martin.donath@squidfunk.com>
Decode bounded webview messages and bind actions to the current session, document and render generation. Reject invalid source offsets and recheck context after asynchronous work. Resolve local navigation before opening files, require explicit confirmation for outside targets and keep executable schemes from navigating the webview. Generate CSP nonces with cryptographic randomness. Signed-off-by: squidfunk <martin.donath@squidfunk.com>
Preserve the in-progress native preview policy and resource-delivery integration for coordinated reconciliation with Studio App. The paired preview security work remains incomplete and unmerged. Signed-off-by: squidfunk <martin.donath@squidfunk.com>
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
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.
No description provided.