Repository navigation
Run community plugins as sandboxed web pages - #33
Merged
Merged
Conversation
…est path escapes for real
…ce and harden the local-network check
…o hosts a browser accepts
…re as a plugin error
…d make the fetch tests bite
… the BOM as an escape
…'s place in the strip
…g plugin view locks
…ytes a plugin is served
…ve bad folders and late starts
… plugin names, hosts and message limits
… a default User-Agent
… zero-width non-joiner in plugin text
…ddresses at the source
…y panels with a bar
…s and half-finished swaps
…ery user can unpack
…he link that was checked
…nd keep the plugin list calm and in order
…tranger's value in the summary as text
… and keep the keyboard's place
…lose the small gaps the final review found
2 of 13 tasks
Install reviewed community plugins from a plugin hub
6 of 15 tasks
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.
Summary
Part 2 of the plugin system: the runtime for community plugins. It merges into part 1 (#31), not
main.A plugin is a folder with
plugin.jsonplus web files (HTML, JavaScript, CSS). FourFold runs it as a sandboxed page in the plugin strip, and the page talks to the app only through a smallwindow.fourfoldlibrary. In this part plugins load only from a local dev folder, for plugin authors. The hub that lets everyone install reviewed plugins is part 3.%LOCALAPPDATA%\FourFoldAccountManager\dev-plugins, each with a DEV badge and a "Can contact" line.plugin.jsonbreaks a rule is listed with the reason.plugin.json. FourFold makes the request itself: https only, public addresses only, no cookies.PLUGIN_AUTHORS.mddocumentsplugin.json, the API, the sandbox and every limit.samples/goal-trackeris a working plugin with a card.samples/sandbox-checktries the things a plugin must not be able to do and reports PASS or FAIL.The sandbox
https://<id>.fourfoldplugin/.eval.window.close()andwindow.print().Behavior to know about
pluginDeveloperMode, and apluginCardid on overlay card placements. The previous release reads a newer settings file without failing; it ignores plugin cards.window.close(), so the host detaches that handler from the control's private members. If a WebView2 SDK update renames them, plugins refuse to start until the lock is re-checked.User-Agent: FourFold-Plugin/1unless the plugin sets its own.Test plan
dotnet build FourFoldAccountManager.sln -c Debug: 0 warnings, 0 errors.plugin.jsonshows the reason; fixing it loads the plugin again.Review notes: every task was reviewed on its own and the branch was reviewed as a whole. The WebView2 behaviour was checked with throwaway harnesses against a real WebView2, not inside FourFold, so the manual checks above are the first run in the app. The last commit (
f65b28e, five small edits) was not independently reviewed.