@ai-ecoverse/slicc-browsers 1.38.4 → 1.39.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 +1 -6
- package/guard-vectors.json +1 -1
- package/package.json +1 -1
- package/protected.json +60 -0
package/README.md
CHANGED
|
@@ -73,11 +73,6 @@ Every feature builds for `wasm32-wasip1`. Keep `corpus` in `[dev-dependencies]`
|
|
|
73
73
|
npm install @ai-ecoverse/slicc-browsers
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
-
```js
|
|
77
|
-
import catalog from '@ai-ecoverse/slicc-browsers' with { type: 'json' };
|
|
78
|
-
import { protectedOrigins } from '@ai-ecoverse/slicc-browsers/protected.mjs';
|
|
79
|
-
```
|
|
80
|
-
|
|
81
76
|
| export | what it is |
|
|
82
77
|
| --- | --- |
|
|
83
78
|
| `.`, `./catalog.json`, `./corpus.json`, `./protected.json`, `./guard-vectors.json`, `./debugger-stage1.json` | the data |
|
|
@@ -167,7 +162,7 @@ URLs are judged the way the browser parses them, so `blob:`, `view-source:` and
|
|
|
167
162
|
|
|
168
163
|
A browser extension's frame inside an ordinary page doesn't make the tab protected. The frame itself stays out of reach: it can't be attached or read, and its URL never appears in target discovery, page reads, snapshots, accessibility trees or evaluate results. The tab's own page can still be read and snapshotted. Screenshots and input are allowed only while every extension frame is hidden (no layout box or `visibility: hidden`) and none holds focus through nested documents or shadow roots; a screenshot taken while one became shown is thrown away. Opacity and position don't count as hidden. A race between the visibility or focus check and the CDP reply is accepted. Whole-page captures and starting a screencast are refused while any extension frame is in the tab; an active screencast is stopped or its frames dropped until the frame is gone. These refusals name the extension frame, not seven. A frame from the program's own extension, and any other protected frame, still makes the whole tab protected. `protectedOrigins.extensionFrames` lists the schemes, methods and refusals; `protected.mjs` offers `extensionFrame(url)`.
|
|
169
164
|
|
|
170
|
-
`catalog.json`'s `protectedOrigins` holds the rules, and `protected.json` the vectors: URLs, targets, cookie domains and storage keys, each with the expected answer. A target may carry `contextOrigin`, its default execution context's origin; the rule binds a live context origin too. `protected.mjs` is the reference implementation:
|
|
165
|
+
`catalog.json`'s `protectedOrigins` holds the rules, and `protected.json` the vectors: URLs, targets, cookie domains and storage keys, each with the expected answer. A target may carry `contextOrigin`, its default execution context's origin; the rule binds a live context origin too. Origins with leading whitespace or control characters are not exercised: browsers do not report them. `protected.mjs` is the reference implementation:
|
|
171
166
|
|
|
172
167
|
```js
|
|
173
168
|
import catalog from '@ai-ecoverse/slicc-browsers' with { type: 'json' };
|
package/guard-vectors.json
CHANGED
package/package.json
CHANGED
package/protected.json
CHANGED
|
@@ -1119,6 +1119,66 @@
|
|
|
1119
1119
|
"contextOrigin": "https://example.test",
|
|
1120
1120
|
"protected": false
|
|
1121
1121
|
},
|
|
1122
|
+
{
|
|
1123
|
+
"url": "about:blank",
|
|
1124
|
+
"contextOrigin": "AbOuT:blank",
|
|
1125
|
+
"protected": true
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
"url": "about:blank",
|
|
1129
|
+
"contextOrigin": "about:",
|
|
1130
|
+
"protected": true
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"url": "about:blank",
|
|
1134
|
+
"contextOrigin": "abouT:",
|
|
1135
|
+
"protected": true
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"url": "about:blank",
|
|
1139
|
+
"contextOrigin": "about:\n",
|
|
1140
|
+
"protected": true
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
"url": "about:blank",
|
|
1144
|
+
"contextOrigin": "about://\n",
|
|
1145
|
+
"protected": true
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"url": "about:blank",
|
|
1149
|
+
"contextOrigin": "about://\r",
|
|
1150
|
+
"protected": true
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
"url": "about:blank",
|
|
1154
|
+
"contextOrigin": "about://\t",
|
|
1155
|
+
"protected": true
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
"url": "about:blank",
|
|
1159
|
+
"contextOrigin": "about:blank ",
|
|
1160
|
+
"protected": true
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"url": "about:blank",
|
|
1164
|
+
"contextOrigin": "about://x\u0000",
|
|
1165
|
+
"protected": true
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
"url": "about:blank",
|
|
1169
|
+
"contextOrigin": "about:%20",
|
|
1170
|
+
"protected": true
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"url": "about:blank",
|
|
1174
|
+
"contextOrigin": "",
|
|
1175
|
+
"protected": false
|
|
1176
|
+
},
|
|
1177
|
+
{
|
|
1178
|
+
"url": "about:blank",
|
|
1179
|
+
"contextOrigin": "null",
|
|
1180
|
+
"protected": false
|
|
1181
|
+
},
|
|
1122
1182
|
{
|
|
1123
1183
|
"url": "blob:https://seven.sliccy.ai/0b9e0f6c",
|
|
1124
1184
|
"protected": true
|