@botiverse/porthole 0.14.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +770 -0
- package/dist/annotate/types.d.ts +4 -1
- package/dist/annotate/types.js +2 -0
- package/dist/annotate/validate.d.ts +2 -1
- package/dist/annotate/validate.js +11 -4
- package/dist/check/page-source.js +1 -1
- package/dist/compile/policy.js +2 -2
- package/dist/conformance/harness-source.js +1 -1
- package/dist/host/create-host.js +5 -0
- package/dist/host/types.d.ts +7 -0
- package/dist/react/frame.d.ts +4 -3
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +4 -3
- package/dist/server/naming.js +4 -0
- package/dist/server/nested.d.ts +24 -2
- package/dist/server/nested.js +28 -2
- package/dist/server/server.js +145 -25
- package/dist/server/types.d.ts +5 -0
- package/dist/shell/annotate.d.ts +3 -2
- package/dist/shell/annotate.js +22 -2
- package/dist/shell/runtime.d.ts +6 -0
- package/dist/shell/runtime.js +11 -1
- package/docs/ADOPTING.md +36 -7
- package/docs/ARCHITECTURE.md +10 -5
- package/docs/DECISIONS.md +207 -1
- package/docs/DESIGN.md +12 -4
- package/docs/THREAT_MODEL.md +30 -3
- package/package.json +6 -5
- package/src/annotate/types.ts +4 -1
- package/src/annotate/validate.ts +11 -6
- package/src/compile/policy.ts +2 -2
- package/src/host/create-host.ts +5 -0
- package/src/host/types.ts +7 -0
- package/src/react/frame.tsx +4 -3
- package/src/server/index.ts +6 -2
- package/src/server/naming.ts +4 -0
- package/src/server/nested.ts +32 -2
- package/src/server/server.ts +168 -24
- package/src/server/types.ts +5 -0
- package/src/shell/annotate.ts +22 -2
- package/src/shell/runtime.ts +12 -1
package/dist/compile/policy.js
CHANGED
|
@@ -173,8 +173,8 @@ export function sandboxTokens(config) {
|
|
|
173
173
|
case "opaque":
|
|
174
174
|
return ["allow-scripts"];
|
|
175
175
|
case "domain":
|
|
176
|
-
// Nested (P111), this frame holds Porthole's shell, on
|
|
177
|
-
// the shell's child (`PAGE_SANDBOX_TOKENS`).
|
|
176
|
+
// Nested (P111), this frame holds Porthole's shell, on a label of its own where no content
|
|
177
|
+
// runs with this origin (P114), and the page is the shell's child (`PAGE_SANDBOX_TOKENS`).
|
|
178
178
|
return ["allow-scripts", "allow-same-origin"];
|
|
179
179
|
case "external":
|
|
180
180
|
// The host may add a documented few (popups, modals, downloads), never top navigation.
|