@ai-ecoverse/slicc-bios 1.74.11 → 1.74.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/README.md +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -518,7 +518,7 @@ A browser extension's frame inside an ordinary page, such as a password manager'
|
|
|
518
518
|
- **Workers are judged by their parents too:** a target that is not an iframe (a worker, a worker of a worker, any other child) counts as protected when Chrome's `parentId` names a target that is protected, held, or refused in turn, whatever the child's own URL, so a worker that a protected-URL iframe or one of seven's pages created can't be described, attached by id or listed. The guard walks the whole parent chain; a cycle, a missing parent or a chain deeper than 64 fails closed, and none of these holds a target. While a parent in that chain is a page the guard opened for `Target.createTarget` whose first commit hasn't landed (a tab with an opener), the child is refused after the same wait as for the page itself, and a shown worker whose creator chain reaches such a page refuses its commands.
|
|
519
519
|
- **Refused commands** answer an error: any command whose `targetId` or `frameId` is a protected target (the guard asks for the target's current URL first) (`Target.attachToTarget`, `activateTarget`, `closeTarget`, `getTargetInfo`, `Browser.getWindowForTarget` and the rest, with or without a session); any command whose `url`, origin (`origin`, `securityOrigin`, `ownerOrigin`, `topLevelSite`, `scopeURL` and the like), `storageKey`, `cacheId` or cookie `domain` is protected, at any depth of its parameters, which covers navigation, `IndexedDB.*`, `CacheStorage.*`, `DOMStorage.*`, `Storage.*`, `ServiceWorker.*` and cookie writes; `Network.clearBrowserCookies`, `Storage.clearCookies`, `ServiceWorker.stopAllWorkers`, `BackgroundService.clearEvents`, `Storage.getPrivateVerificationTokens` and `Tracing.start`, which reach every origin; `Network.loadNetworkResource`, which follows redirects the guard can't see; `IO.read` and `IO.close` on a stream the guard didn't hand out in an answer; a `ServiceWorker` command for a registration or version the guard hasn't shown; `Target.detachFromTarget` of a session the connection didn't attach; and every `Fetch.*` command without a tab session, so nothing can pause the whole browser. Free-form values such as `expression` or `headers` aren't searched.
|
|
520
520
|
- **Filtered answers and events:** cookie lists leave out cookies whose domain is protected and partitioned cookies under a protected site. `Storage`, `DOMStorage`, `IndexedDB`, `CacheStorage` and `BackgroundService` events that name a protected origin are dropped, and so are service worker registrations and versions on one.
|
|
521
|
-
- **Checked on attach:** a new session is handed to the program only after the guard has checked its target and read the session's frame tree, and none of them is protected. An auto-attached page or frame without a URL yet is held, with its events dropped and its commands refused, until it has one, and cut if it has none after 10 s. A target that attaches paused (`waitForDebuggerOnStart`) is resumed as soon as the guard's `Fetch` arm on its own session for that target is accepted (at most 1 s), before the rest of the guard's setup, because `Page.enable` and the frame-tree read can't finish on a paused page; it stays held the same way until the guard has placed it, and a program's own `Runtime.runIfWaitingForDebugger` doesn't wait for that setup. If the guard's `Fetch.enable` is refused, the target is cut instead of resumed. A target that is already protected or held when it attaches is resumed only as the guard cuts it, and if the read that confirms it doesn't settle within 1 s, the guard cuts it then. A paused tab with no page under it after 10 s is resumed, since the program has no session on any page in it. A tab that attaches paused is resumed once the page under it is armed the same way: until the tab runs, that page can't answer the guard's frame-tree read, and the program waits for the guard before it resumes the tab.
|
|
521
|
+
- **Checked on attach:** a new session is handed to the program only after the guard has checked its target and read the session's frame tree, and none of them is protected. An auto-attached page or frame without a URL yet is held, with its events dropped and its commands refused, until it has one, and cut if it has none after 10 s. A target that attaches paused (`waitForDebuggerOnStart`) is resumed as soon as the guard's `Fetch` arm on its own session for that target is accepted (at most 1 s), before the rest of the guard's setup, because `Page.enable` and the frame-tree read can't finish on a paused page; it stays held the same way until the guard has placed it, and a program's own `Runtime.runIfWaitingForDebugger` doesn't wait for that setup. If the guard's `Fetch.enable` is refused, the target is cut instead of resumed. A target that is already protected or held when it attaches is resumed only as the guard cuts it, and if the read that confirms it doesn't settle within 1 s, the guard cuts it then. A paused tab with no page under it after 10 s is resumed, since the program has no session on any page in it. A tab that attaches paused is resumed once the page under it is armed the same way: until the tab runs, that page can't answer the guard's frame-tree read, and the program waits for the guard before it resumes the tab. An iframe that Chrome still names with an empty URL when the guard checks it is read from a fresh frame tree of the page it attached under, used only when that tree lists the frame once at an `http:`, `https:` or `data:` address no other target claims and every recorded parent names that page, and judged again at its next target info change or navigation; otherwise it still fails closed.
|
|
522
522
|
- **Cut sessions:** a session whose target becomes protected (`Target.targetInfoChanged`), whose page or any frame in it is about to navigate or navigates to a protected URL (`frameRequestedNavigation`, `frameScheduledNavigation`, `frameStartedNavigating`, `frameNavigated`, `navigatedWithinDocument`, or a `Document` request), or whose context runs on a protected origin is detached at once, without the event, and its target counts as protected from then on. Any other page event that names a protected URL or origin is dropped. Its later events and the answers to its pending commands are dropped, and its commands are refused. The guard watches each session's `Page` events itself, and passes them on only when the program asked for them.
|
|
523
523
|
- **Requests from protected documents:** a request whose URL, document, frame, initiator, `Referer` or `Origin` is protected never reaches the program. The guard continues its `Fetch` pause itself, drops its `Network` events, and refuses its bodies (`Network.getResponseBody`, `getRequestPostData`, `Fetch.getResponseBody` and the like). Bodies, `replayXHR` and `Fetch` replies for a request the guard hasn't seen are refused too. Extra-info events that come before their request wait up to 2 s for it, then are dropped.
|
|
524
524
|
- **Cookies a `Fetch` reply sets:** `Fetch.fulfillRequest` and `Fetch.continueResponse` are refused when a `Set-Cookie` or `Set-Cookie2` line (any case, in `responseHeaders` as a list or a map, in base64 `binaryResponseHeaders`, with values split at line breaks) has a `Domain`, quoted or not, that covers a protected host, and when the guard can't read those headers: another shape, a value that isn't a string, a header name that isn't a token, a line break in another header, base64 it can't decode or a `Domain` that isn't a host name. A `responsePhrase` with a CR, LF or NUL, or one that isn't a string, and a `responseCode` that isn't an integer are refused too, and a phrase with a colon has its `Domain` attributes checked the same way. The whole command is refused, never a stripped copy, and the pause can still be answered. A cookie without `Domain` is host-only, so it reaches a protected host only on a protected request, whose replies are already refused. Not covered yet: a `Domain` that covers one of the credential hosts seven signs in with, until [#1606](https://github.com/ai-ecoverse/slicc-bios/pull/1606) adds them to the same check ([#1632](https://github.com/ai-ecoverse/slicc-bios/issues/1632)).
|
|
@@ -529,7 +529,7 @@ A browser extension's frame inside an ordinary page, such as a password manager'
|
|
|
529
529
|
- `Page.createIsolatedWorld` on a frame the guard places as ordinary, always forwarded without `grantUniveralAccess` and `contentSecurityPolicy`, whatever the client asks. A frame that shows Chrome's error page for a refused document, or the guard's own blank, gets the "out of reach" refusal and no context.
|
|
530
530
|
- Exactly `Emulation.setFocusEmulationEnabled`, `setEmulatedMedia`, `setDeviceMetricsOverride` and `setTouchEmulationEnabled`.
|
|
531
531
|
- `Runtime.addBinding` scoped to an isolated world: a non-empty `executionContextName` (not a browser extension's world), or the `executionContextId` of an isolated world on an ordinary origin. `Runtime.bindingCalled` reaches the client only from such a world.
|
|
532
|
-
- `Target.setAutoAttach` whose `filter` would admit tabs (Puppeteer's catch-all filters, `[{}]`) is forwarded with its filter narrowed to tab targets on the browser session (Chrome refuses a filter that allows both tabs and pages there) and to page and iframe targets on any other session, iframe sessions included, so a Puppeteer client gets its tab, page and cross-site iframe (OOPIF) attachments and no workers under them. For a kernel program over the DevTools port and the link, a filter without tabs, slicc-cdp's dedicated-worker HAR capture (`[{type: "worker"}]`), shared and service worker filters and an omitted filter (Playwright's) are forwarded as sent, and each worker they attach is judged by its own URL and by its creator: it is cut (resumed, then detached) and never shown if its URL is protected, if the session it attaches under is cut, not yet shown or unknown, if that session's target, its `parentId` or opener (and each of their openers and parents, including a parent session that is itself a worker) is held or protected, or if its creator frame is protected, which also covers a `data:` worker of a protected creator. A `data:` worker an ordinary page created stays shown. Holds raise no event, so every delivery for a worker (events, command answers, its own target events, bindings) re-checks the creator synchronously, with a cached verdict and no CDP call per worker event; a pending or failed verdict fails closed. Cutting a session also cuts every worker it created, and a worker target once cut for a creator reason stays cut if attached again on any session, browser-level included. `Target.getTargets` and discovery name a worker only when the client holds a shown session for it whose verdict is safe. A remote device (a connection that comes in over the remote CDP stream, `caller.kind === 'device'`) gets no worker session on any route until #1515: over the DevTools port and the link, a filter that admits only worker types is refused (`NO_WORKERS`), an omitted filter goes out with the worker types excluded in front of Chrome's default, a filter that admits a worker type together with any other type is narrowed like a tab-admitting one, any worker attachment that reaches it anyway is cut (resumed, then detached) and never shown, `Target.attachToTarget` of a worker is refused, and workers are left out of its `Target.getTargets` and `Target.getTargetInfo` answers and its discovery events. So for a remote device Playwright's `page.workers()` is empty and Puppeteer gets no workers. On the extension route a worker-only filter reaches the extension unchanged and keeps its `NO_AUTO_ATTACH`, and so does a browser-wide call that admits neither tabs nor pages. Each iframe attachment is judged like a page attachment: it is held (a paused one is resumed once armed) and its session hidden until the guard has placed it. Then it is shown with its target info, or cut (resumed, then detached) and never shown when it is protected by its URL or its ancestry (see "Iframes are judged by their ancestry" above). A shown iframe that navigates into a protected origin is cut like a page. An iframe session takes the same calls and checks as a page session, group 1 included. So over the DevTools port, Puppeteer reads cross-site iframes; through slicc-extension it reads same-site iframes only (see below). A page the guard opens for `Target.createTarget` starts in the background unless the call asks otherwise, so seven stays in front, and the guard turns on focus emulation for it on its own session before the program sees it, so the page counts as focused and visible and renders; a program can still send its own `Emulation.setFocusEmulationEnabled`, one of the admitted display calls. Any other call, such as one asking for iframes only, is forwarded as it came. A `tab` target is judged by the page under it. It is cut if its own URL is protected, if that page is held (a sign-in), has a protected opener or a protected URL, and whenever that page's session is cut later. On the extension route the guard knows the page from the synthetic tab's id; over the DevTools port it learns it when the page attaches under the tab. Before every command on a tab session the guard reads the page under it again, and cuts the tab and refuses if that page is now held or protected, or the read doesn't answer. A tab's URL and title reach the program only in the answer to its own `Target.getTargetInfo` after such a fresh read showed an ordinary page; everywhere else (its attachment, `Target.getTargets`, discovery events) the tab's target info has no URL, title or opener. Until that page is placed as ordinary, a command that names the tab, such as `Target.closeTarget` or `Target.activateTarget`, is refused. A tab session takes only `Target.setAutoAttach`, `Runtime.runIfWaitingForDebugger` and `Target.getTargetInfo` about itself (another `targetId` is refused), and since it reads no page content it needs no content proof, so a new tab that has no URL yet still resumes. A tab with no URL yet doesn't count as protected for that alone; the pages under it are judged by their own URLs and are checked, held and cut like every other page.
|
|
532
|
+
- `Target.setAutoAttach` whose `filter` would admit tabs (Puppeteer's catch-all filters, `[{}]`) is forwarded with its filter narrowed to tab targets on the browser session (Chrome refuses a filter that allows both tabs and pages there) and to page and iframe targets on any other session, iframe sessions included, so a Puppeteer client gets its tab, page and cross-site iframe (OOPIF) attachments and no workers under them. For a kernel program over the DevTools port and the link, a filter without tabs, slicc-cdp's dedicated-worker HAR capture (`[{type: "worker"}]`), shared and service worker filters and an omitted filter (Playwright's) are forwarded as sent, and each worker they attach is judged by its own URL and by its creator: it is cut (resumed, then detached) and never shown if its URL is protected, if the session it attaches under is cut, not yet shown or unknown, if that session's target, its `parentId` or opener (and each of their openers and parents, including a parent session that is itself a worker) is held or protected, or if its creator frame is protected, which also covers a `data:` worker of a protected creator. A `data:` worker an ordinary page created stays shown. Holds raise no event, so every delivery for a worker (events, command answers, its own target events, bindings) re-checks the creator synchronously, with a cached verdict and no CDP call per worker event; a pending or failed verdict fails closed. A creator can also move without an event reaching the guard, so before a worker's event, command or answer the guard reads each target of its creator chain again (`Target.getTargetInfo`) when that target was last read more than a second ago, and judges the worker again when one moved; each target is read at most once a second however many events arrive. A read that fails cuts the worker and refuses every worker whose chain includes that target, a new attachment of the same worker included, until a later read (again at most once a second) succeeds; a failed read never counts as a fresh one. A move without an event is therefore caught within about a second, and that second is a known residual: after a creator moves onto seven with no event at all, a kernel program can still evaluate in the worker (a remote device gets no worker session at all) for up to about a second while the chain's entries are fresher than the bound (a HAR capture right after a navigation that raised no event, for instance). Chrome raises events for real moves, so this needs a missed event, and the worker fails closed once the window ends. Cutting a session also cuts every worker it created, and a worker target once cut for a creator reason stays cut if attached again on any session, browser-level included. `Target.getTargets` and discovery name a worker only when the client holds a shown session for it whose verdict is safe. A remote device (a connection that comes in over the remote CDP stream, `caller.kind === 'device'`) gets no worker session on any route until #1515: over the DevTools port and the link, a filter that admits only worker types is refused (`NO_WORKERS`), an omitted filter goes out with the worker types excluded in front of Chrome's default, a filter that admits a worker type together with any other type is narrowed like a tab-admitting one, any worker attachment that reaches it anyway is cut (resumed, then detached) and never shown, `Target.attachToTarget` of a worker is refused, and workers are left out of its `Target.getTargets` and `Target.getTargetInfo` answers and its discovery events. So for a remote device Playwright's `page.workers()` is empty and Puppeteer gets no workers. On the extension route a worker-only filter reaches the extension unchanged and keeps its `NO_AUTO_ATTACH`, and so does a browser-wide call that admits neither tabs nor pages. Each iframe attachment is judged like a page attachment: it is held (a paused one is resumed once armed) and its session hidden until the guard has placed it. Then it is shown with its target info, or cut (resumed, then detached) and never shown when it is protected by its URL or its ancestry (see "Iframes are judged by their ancestry" above). A shown iframe that navigates into a protected origin is cut like a page. An iframe session takes the same calls and checks as a page session, group 1 included. So over the DevTools port, Puppeteer reads cross-site iframes; through slicc-extension it reads same-site iframes only (see below). A page the guard opens for `Target.createTarget` starts in the background unless the call asks otherwise, so seven stays in front, and the guard turns on focus emulation for it on its own session before the program sees it, so the page counts as focused and visible and renders; a program can still send its own `Emulation.setFocusEmulationEnabled`, one of the admitted display calls. Any other call, such as one asking for iframes only, is forwarded as it came. A `tab` target is judged by the page under it. It is cut if its own URL is protected, if that page is held (a sign-in), has a protected opener or a protected URL, and whenever that page's session is cut later. On the extension route the guard knows the page from the synthetic tab's id; over the DevTools port it learns it when the page attaches under the tab. Before every command on a tab session the guard reads the page under it again, and cuts the tab and refuses if that page is now held or protected, or the read doesn't answer. A tab's URL and title reach the program only in the answer to its own `Target.getTargetInfo` after such a fresh read showed an ordinary page; everywhere else (its attachment, `Target.getTargets`, discovery events) the tab's target info has no URL, title or opener. Until that page is placed as ordinary, a command that names the tab, such as `Target.closeTarget` or `Target.activateTarget`, is refused. A tab session takes only `Target.setAutoAttach`, `Runtime.runIfWaitingForDebugger` and `Target.getTargetInfo` about itself (another `targetId` is refused), and since it reads no page content it needs no content proof, so a new tab that has no URL yet still resumes. A tab with no URL yet doesn't count as protected for that alone; the pages under it are judged by their own URLs and are checked, held and cut like every other page.
|
|
533
533
|
- **Still refused, with the texts above:** init scripts with code (`addInitScript`, `evaluateOnNewDocument`), `Page.addScriptToEvaluateOnLoad`, `Page.setBypassCSP`, an unscoped or main-world `Runtime.addBinding` (`exposeFunction`), every other `Emulation.set*` (user agent, locale, time zone, geolocation and the rest) and the `Network` overrides, including the `Network.setCacheDisabled` that request interception (`route`, `setRequestInterception`) sends.
|
|
534
534
|
- **Attachments before answers:** while a program has browser-wide page auto-attach on, `Target.createTarget` answers only after the new page's attachment has been shown or cut (at most 10 s), the order Chrome keeps and Playwright relies on.
|
|
535
535
|
- **Admitted settings and the window before the arm:** the guard resumes a paused target only once its `Fetch` arm is in place, and from then on the target never commits a protected document (its `Document` request fails, and the session is cut first), so an admitted world or display override at most reaches Chrome's error page. A refused `Fetch.enable` cuts the target. Two windows are left. If the arm is still unanswered after 1 s, an ordinary target is resumed anyway, so it can't hang, and is unarmed until the arm lands. A program can also resume a paused tab itself before the page under it is armed. What covers both: the program's session stays hidden until the guard has placed the target, and a protected commit marks the target's proof uncertain, which refuses its pending reads, and cuts the session, so it is never shown. A vector row that times `Fetch.enable` against the resume comes before group 2.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-bios",
|
|
3
|
-
"version": "1.74.
|
|
3
|
+
"version": "1.74.13",
|
|
4
4
|
"description": "Slim loader that boots SLICC into OPFS and serves the UI from there",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"format": "biome check --write ."
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@ai-ecoverse/slicc": "1.67.
|
|
52
|
+
"@ai-ecoverse/slicc": "1.67.16",
|
|
53
53
|
"@ai-ecoverse/slicc-browsers": "1.24.0",
|
|
54
|
-
"@ai-ecoverse/slicc-cdp": "1.
|
|
54
|
+
"@ai-ecoverse/slicc-cdp": "1.52.1",
|
|
55
55
|
"@ai-ecoverse/slicc-kernel": "1.190.0",
|
|
56
56
|
"@ai-ecoverse/slicc-shared-web": "2.14.4",
|
|
57
57
|
"@ai-ecoverse/slicc-spectrum": "2.16.1",
|