@botiverse/porthole 0.14.12 → 0.14.13
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 +12 -0
- package/dist/annotate/types.d.ts +4 -1
- package/dist/annotate/types.js +4 -1
- package/dist/check/page-source.js +1 -1
- package/dist/conformance/harness-source.js +1 -1
- package/dist/host/types.d.ts +8 -0
- package/dist/react/frame.d.ts +3 -1
- package/dist/shell/annotate.d.ts +2 -1
- package/dist/shell/annotate.js +13 -3
- package/docs/ADOPTING.md +36 -1
- package/docs/DECISIONS.md +133 -2
- package/docs/DESIGN.md +8 -2
- package/docs/THREAT_MODEL.md +30 -4
- package/package.json +1 -1
- package/src/annotate/types.ts +4 -1
- package/src/host/types.ts +8 -0
- package/src/react/frame.tsx +3 -1
- package/src/shell/annotate.ts +13 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@
|
|
|
4
4
|
section); the reasons for every change are in [docs/DECISIONS.md](docs/DECISIONS.md), by the
|
|
5
5
|
P-numbers below.
|
|
6
6
|
|
|
7
|
+
## 0.14.13
|
|
8
|
+
|
|
9
|
+
- **Annotations: a `focusMark` that had to wait (P135).** While the frame finds its marks, `focusMark`
|
|
10
|
+
waits, and is now dropped unless the focus is in the frame by then, so it takes no keyboard from a
|
|
11
|
+
person who moved on. A call on a calm page is unchanged. After your card closes the focus is on your
|
|
12
|
+
`<body>`, so a call that waited is dropped: if the focus is still there a moment later, call
|
|
13
|
+
`display.focus()` and `focusMark(id)` again (ADOPTING). Known gap: on a nested page that had the
|
|
14
|
+
focus, `display.focus()` doesn't bring it back, so a call that waits is dropped even then.
|
|
15
|
+
- **Security (P135):** the shell asks through the platform's `hasFocus`, kept before content runs
|
|
16
|
+
(controls `marker-late`, `marker-has-focus`). No CSP, sandbox, egress or gate changes; the focus
|
|
17
|
+
guard is untouched.
|
|
18
|
+
|
|
7
19
|
## 0.14.12
|
|
8
20
|
|
|
9
21
|
- **Annotations: the keyboard back on a marker (P134).** `annotations.focusMark(id)` (React:
|
package/dist/annotate/types.d.ts
CHANGED
|
@@ -234,7 +234,10 @@ export declare const ANNOTATE_METHODS: {
|
|
|
234
234
|
readonly tracked: "porthole/annotate.tracked";
|
|
235
235
|
/** Host → frame: take the page's text selection away, telling nothing back (P115). */
|
|
236
236
|
readonly clearSelection: "porthole/annotate.clearSelection";
|
|
237
|
-
/**
|
|
237
|
+
/**
|
|
238
|
+
* Host → frame: put the focus on one mark's marker (`{ id }`), telling nothing back (P134); one
|
|
239
|
+
* that waited for the marks is dropped unless the focus is in the frame's document by then (P135).
|
|
240
|
+
*/
|
|
238
241
|
readonly focusMark: "porthole/annotate.focusMark";
|
|
239
242
|
};
|
|
240
243
|
/** The most of each part of an anchor or report the host takes. */
|
package/dist/annotate/types.js
CHANGED
|
@@ -36,7 +36,10 @@ export const ANNOTATE_METHODS = {
|
|
|
36
36
|
tracked: "porthole/annotate.tracked",
|
|
37
37
|
/** Host → frame: take the page's text selection away, telling nothing back (P115). */
|
|
38
38
|
clearSelection: "porthole/annotate.clearSelection",
|
|
39
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* Host → frame: put the focus on one mark's marker (`{ id }`), telling nothing back (P134); one
|
|
41
|
+
* that waited for the marks is dropped unless the focus is in the frame's document by then (P135).
|
|
42
|
+
*/
|
|
40
43
|
focusMark: "porthole/annotate.focusMark",
|
|
41
44
|
};
|
|
42
45
|
/** The most of each part of an anchor or report the host takes. */
|