@ai-ecoverse/slicc-browsers 1.52.0 → 1.53.0
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/README.md +8 -6
- package/catalog.json +81 -0
- package/engine/engine-js.mjs +1 -1
- package/engine/engine-wasm.mjs +1 -1
- package/engine/engine.wasm +0 -0
- package/engine-vectors.json +1611 -162
- package/engine.mjs +4 -22
- package/guard-vectors.json +650 -18
- package/package.json +7 -4
- package/protected-error-page.mjs +250 -28
- package/protected-js.mjs +1 -1
- package/protected.json +329 -11
- package/protected.mjs +1 -1
- package/schema/catalog.schema.json +28 -0
- package/schema/engine-vectors.schema.json +3 -1
- package/schema/protected.schema.json +3 -0
- package/sealed-event-rules.mjs +18 -0
- package/sealed-events.mjs +8 -0
|
@@ -315,6 +315,34 @@
|
|
|
315
315
|
"unparseableRefusal": {
|
|
316
316
|
"const": "slicc: refused: slicc can't parse this URL, so it could be a protected page"
|
|
317
317
|
},
|
|
318
|
+
"sealedAllowed": {
|
|
319
|
+
"description": "Exact commands allowed on a sealed document. Event-producing subscriptions are not implicitly allowed. Target discovery is redacted, Page.enable is for lifecycle and navigation, and Fetch.enable still requires the guard’s request restrictions. Tree replies are separately projected. Unlisted commands are refused.",
|
|
320
|
+
"type": "array",
|
|
321
|
+
"uniqueItems": true,
|
|
322
|
+
"items": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"pattern": "^[A-Z][A-Za-z0-9]*\\.[a-z][A-Za-z0-9]*$"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"sealedEvents": {
|
|
328
|
+
"description": "Content events withheld on sealed documents even for earlier subscriptions. Domain.* covers every event in the domain; named events do not close other lifecycle or metadata events.",
|
|
329
|
+
"type": "array",
|
|
330
|
+
"minItems": 1,
|
|
331
|
+
"uniqueItems": true,
|
|
332
|
+
"items": {
|
|
333
|
+
"type": "string",
|
|
334
|
+
"pattern": "^[A-Z][A-Za-z0-9]*\\.(?:[a-z][A-Za-z0-9]*|\\*)$"
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"sealedContent": {
|
|
338
|
+
"description": "Examples of content methods denied on sealed documents; Domain.* denotes a domain prefix. sealedAllowed is the only allowlist.",
|
|
339
|
+
"type": "array",
|
|
340
|
+
"uniqueItems": true,
|
|
341
|
+
"items": {
|
|
342
|
+
"type": "string",
|
|
343
|
+
"pattern": "^[A-Z][A-Za-z0-9]*\\.(?:[a-z][A-Za-z0-9]*|\\*)$"
|
|
344
|
+
}
|
|
345
|
+
},
|
|
318
346
|
"extensionWorlds": {
|
|
319
347
|
"type": "object",
|
|
320
348
|
"additionalProperties": false,
|
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
"loaderId": { "type": "string" },
|
|
89
89
|
"url": { "type": "string" },
|
|
90
90
|
"securityOrigin": { "type": "string" },
|
|
91
|
+
"originRead": { "enum": ["ok", "failed", "none"] },
|
|
91
92
|
"unreachableUrl": { "type": "string" },
|
|
92
93
|
"type": { "type": "string" },
|
|
93
94
|
"shown": { "type": "boolean" },
|
|
@@ -164,9 +165,10 @@
|
|
|
164
165
|
"additionalProperties": {
|
|
165
166
|
"type": "object",
|
|
166
167
|
"additionalProperties": false,
|
|
167
|
-
"required": ["protected", "role", "capture"],
|
|
168
|
+
"required": ["protected", "sealed", "role", "capture"],
|
|
168
169
|
"properties": {
|
|
169
170
|
"protected": { "type": "boolean" },
|
|
171
|
+
"sealed": { "type": "boolean" },
|
|
170
172
|
"role": {
|
|
171
173
|
"enum": [
|
|
172
174
|
"seven",
|
|
@@ -63,6 +63,9 @@
|
|
|
63
63
|
"opener": { "enum": ["protected", "unprotected", "unknown"] },
|
|
64
64
|
"contextOrigin": { "type": "string" },
|
|
65
65
|
"securityOrigin": { "type": "string" },
|
|
66
|
+
"origin": { "type": "string" },
|
|
67
|
+
"sealed": { "type": "boolean" },
|
|
68
|
+
"originRead": { "enum": ["ok", "failed", "none"] },
|
|
66
69
|
"role": {
|
|
67
70
|
"enum": [
|
|
68
71
|
"ordinary",
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default Object.freeze([
|
|
2
|
+
'Page.screencastFrame',
|
|
3
|
+
'Runtime.*',
|
|
4
|
+
'Debugger.*',
|
|
5
|
+
'DOM.*',
|
|
6
|
+
'CSS.*',
|
|
7
|
+
'Log.*',
|
|
8
|
+
'Console.*',
|
|
9
|
+
'Accessibility.*',
|
|
10
|
+
'Overlay.*',
|
|
11
|
+
'LayerTree.*',
|
|
12
|
+
'DOMStorage.*',
|
|
13
|
+
'IndexedDB.*',
|
|
14
|
+
'Animation.*',
|
|
15
|
+
'Audits.*',
|
|
16
|
+
'Media.*',
|
|
17
|
+
'DOMSnapshot.*',
|
|
18
|
+
]);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import rules from './sealed-event-rules.mjs';
|
|
2
|
+
|
|
3
|
+
const names = new Set(rules);
|
|
4
|
+
export const sealedEventDomains = Object.freeze([
|
|
5
|
+
...new Set(rules.map((rule) => rule.split('.')[0])),
|
|
6
|
+
]);
|
|
7
|
+
export const sealedContentEvent = (method) =>
|
|
8
|
+
names.has(method) || names.has(method.split('.')[0] + '.*');
|