Skip to content

Release WebFront 0.8.0 - #474

Merged
ambroise-leclerc merged 42 commits into
masterfrom
release/0.8.0
Nov 1, 2026
Merged

ambroise-leclerc merged 42 commits into
masterfrom
release/0.8.0

Conversation

@ambroise-leclerc

Copy link
Copy Markdown
Collaborator

Prepare WebFront 0.8.0 for release: update the public version and changelog, and document consumer Jasmine testing in the README.

This release includes native program grants and temporary spaces for consumer Jasmine specs, web view captures, embedded frontend selection, and expanded automation setup operations. The developer environment remains pinned to its published 0.6.3 distribution.

Validation: run the full release CI tier for this pull request; the CEF-off build and CTest suite are also running locally.

ambroise-leclerc and others added 30 commits October 31, 2026 14:42
Synchronize develop after the 0.7.0 release
Define how WebFront applications reach operating system services such
as file selection: optional C++ portals with native, HTML and client
backends chosen per connection, user selection granting opaque handles
rather than paths, and file content over tokenised HTTP. Includes a
survey of other cross-platform UI libraries, embedded constraints and a
prioritised inventory of further system services.
List the prerequisites as five ordered epics (#446 to #450). Require a
streamed, range-aware HTTP extension for token reads instead of a plain
provider, deferred bridge responses for asynchronous C++ callbacks, and
an explicit association between a connection and an embedded view
rather than a loopback-address check. Clarify that the 64 KiB bound
comes from the string header, not from WebSocket.
…-default

Enable /bigobj for MSVC and make the WebFrontLifeReact project optional
Require root confinement to be enforced during path resolution through
operations relative to an opened root directory, with tests replacing a
component by an escaping link concurrently, writes included. Make read
tokens reusable for the life of the grant so that successive Range
requests and resumes succeed, with explicit renewal, and bind them to
their connection through a per-connection HttpOnly cookie; a bearer
mode stays explicit and short-lived. Track the binding in #469.
Require no-store and no-referrer on read responses and keep tokens out
of logs. As WebFront provides no TLS, refuse remote plaintext file reads
unless the deployment supplies encryption or the application opts in
explicitly. State that native dialogs are unavailable by default for
connections not bound to a view, and describe the explicit loopback
trust option and its risk consistently in the decision and criteria.
A cookie is shared by every tab of a browser profile, so the HTTP read
binding identifies a client, not a connection: replay from another
profile, browser or HTTP client is refused, while same-origin pages of
the same profile, which already share bridge authority, may read each
other's URLs. Bridge handles stay bound to their connection.

The HTML picker runs with the bridge's authority, so any admitted
script can list a declared root and create handles without the dialog.
Make each root declare its page access (none, read, readWrite), state
that an accessible root is the authorization, and keep host-controlled
selection to native dialogs and C++.
… in ADR-020

Serve every read response under a sandbox CSP with nosniff, CORP and,
outside a closed list of passive types, as an attachment, so that a
hostile HTML or SVG file opened by its URL cannot run with the bridge's
authority.

Never infer the transport from the connection address or forwarding
headers: a connection is local only when associated with an embedded
view or with the system browser WebFront launched (single-use secret in
the URL fragment); other connections need an explicit deployment
declaration (remoteFileTransport) for file access.

Name binding cookies per client so that concurrent first exchanges in a
fresh profile coexist instead of overwriting each other.
…-020

Descriptor-relative resolution stops link substitution, not the move of
an already opened directory out of the root, which POSIX cannot
prevent. Restate the guarantee as a trust assumption and make it
checked: resolve every operation from the root descriptor, refuse
traversed directories writable by another user or group unless the
root is declared shared, keep Windows directory handles without
FILE_SHARE_DELETE so concurrent moves fail, and verify ancestry before
committing a write. Add concurrent-move acceptance tests.
…ADR-020

The final ancestry check only detects a move: a directory moved during
the temporary write or between the check and the final rename can still
leave a file outside. State the resulting guarantee per platform
(prevention on Windows, none against the same user on POSIX) and align
the acceptance criterion.

Attach the authorization to the declared location rather than the root
object: verify on each operation that the declared path still resolves
to the root descriptor (rootMoved otherwise), check the root's
ancestors for write and sticky-bit rights, and hold the Windows root
handle without FILE_SHARE_DELETE for the life of the declaration.
…as transport proof in ADR-020

An ancestor owned by another user, even in mode 0755, lets that owner
move the root; a sticky directory still lets its own owner remove
entries. Admit only the effective user and the superuser as owners of
traversed directories, root ancestors and sticky-directory entries, and
cover these cases in the acceptance criteria.

A launch secret passed to the system browser can leak through its
command line or history and be presented first from a remote browser,
so it no longer attests local transport. System-browser applications
declare remoteFileTransport = loopbackAttested, whose loopback listener
WebFront verifies and whose remaining conditions the integrator attests.
Propose ADR-020: system services through optional C++ portals
…mateurs (#468) (#470)

* Capture the web view as PNG images and image sequences in consumer tests (#468)

Add webfront::frontend::capturePng(), a frontend-neutral registration for a
window's capture provider, and webfront::testing::CaptureStore, which writes
named screenshots and numbered recordings below a test-owned directory.
Jasmine specs reach them through webFrontCapture. WebKitGTK implements the
capture; the other frontends report that they cannot capture yet.

* Make captures non-blocking, resolve GTK capture symbols lazily and capture with WKWebView (#468)

- The bridge callbacks start a screenshot or the end of a recording on a
  worker thread and answer at once; the page polls, so the server thread is
  never blocked by a capture.
- WebKitGTK: the snapshot symbols are optional, so a runtime older than
  GTK 4.6 still opens windows and reports why it cannot capture.
- WKWebView: capture through takeSnapshotWithConfiguration on the main
  thread, encoded as PNG by AppKit; ConsumerJasmine-capture runs on it.
- Tests for the asynchronous API, the image limit, stop requests and
  window registration replacement; documentation updated.

* Harden capture workers, resolve review findings (#468)

- CaptureStore: per-worker state so a stop request cannot be lost or inherited,
  free the slot of a finished capture nobody collected, stop a recording when
  its page is replaced, refuse a recording name already used in the run, and
  bound the destructor wait by detaching a worker blocked on the window.
- validName uses explicit ASCII instead of the locale-dependent isalnum.
- webFrontCapture no longer depends on `this`.
- WebKitGTK: the idle source owns its job and is removed on timeout.
- WKWebView: copy the snapshot completion block explicitly.
- Tests wait on observable state instead of fixed delays.
- Drop formatting-only changes to untouched lines.

* Declare the copied snapshot block without a pointer declarator so older macOS SDKs compile it (#468)

* Capture the web view with WebView2 (#468)

Capture requests wait in a queue the window drains on its STA, where
CapturePreview runs; closing the window answers every pending request, so
none can leak or wait for its timeout. The consumer capture test now also
runs when the test frontend is WebView2.

* Capture the web view with CEF and answer captures that a closing window abandons (#468)

CEF captures through the DevTools protocol (Page.captureScreenshot) posted to
the UI thread. Every frontend now answers the captures still in flight when
its window closes, abandon() waits for the old recording worker so a reloaded
page finds the slot free, and the GTK timeout path no longer removes a source
that was already served. The capture spec covers more rejection paths.

* Never destroy a GTK source from the requesting thread and treat recording names case-insensitively (#468)

A timed-out GTK capture now marks its job abandoned and lets the main thread skip it,
instead of looking up and destroying a source the main thread may be serving. A
recording name that differs only by case from an earlier one is refused before any
directory is erased, as on case-insensitive file systems. The detached-worker tests
share their state through a shared_ptr instead of referencing locals.

* Answer queued captures when the window closes instead of waiting for their timeout (#468)

A capture was tracked only once the window's thread ran it, so a window that closed
first (or whose loop stopped) left it waiting for the whole timeout. The requester now
registers it before queueing it, and closing answers every pending request. The tracking
is shared by WebKitGTK, WKWebView and CEF.

* Keep a screenshot's result for its caller, untrack every finished capture, split the React burst spec (#468)

A second screenshot no longer takes over a finished one that its caller has not polled, so
concurrent callers cannot receive each other's image; a replaced page frees the slot with
abandon(). Every capture request is removed from the pending list once it ends, including
when the CEF engine refuses it. The React spec that opened two pages and sent two bursts of
1000 updates is split into two shorter specs instead of lengthening the timeout.
Add webfront::embeddedFrontendAvailable and webfront::EmbeddedWebFront, defined in every
configuration. Without an engine, constructing EmbeddedWebFront throws std::runtime_error.
…onstexpr

Declare the embedded frontend without consumer-side macros (#467)
…ndle checksums (#466)

The runner change alters the environment archive and 0.6.3 is published. The release pin stays on 0.6.3.
…erations

Add init, create, install, restore and embed to the automation contract (#466)
…consumer Jasmine specs (#445)

PROGRAMS in webfront_add_jasmine_test is the owner's grant; webFrontHost.run starts a listed program without a shell, with literal arguments, an explicit environment, bounded time and output and a structured result. The program and its descendants are killed at the timeout, on cancellation and at its end. Temporary spaces are private and removed. Validated on Linux.
ambroise-leclerc and others added 12 commits November 1, 2026 18:19
…, lost aborts and temporary space permissions (#445)

The Windows input handle is assigned without the deleted operator. On Linux the program is forked with a parent-death signal so a killed test takes it along. A missing child status (SIGCHLD ignored) ends the wait instead of blocking. The abort listener exists before the start call. The temporary root is closed to other users.
…ve grants (#445)

Reads are bounded per turn so the deadline and cancellation are always checked. The program's group is killed before it is reaped (waitid with WNOWAIT), so no signal can reach a reused PID. The runner clears WEBFRONT_JASMINE_HOST for tests without PROGRAMS.
…nchFailed and keep unremovable temporary spaces registered (#445)
…cess

Programmes natifs autorisés et espaces temporaires pour les specs Jasmine consommateurs (#445)
Copilot AI balanced review requested due to automatic review settings November 1, 2026 20:37
@coderabbitai

coderabbitai Bot commented Nov 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 699f7619-a9d7-4aab-8e33-f44279efc7a0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request due to rate limiting. Please try again later.

@ambroise-leclerc
ambroise-leclerc merged commit 15f5463 into master Nov 1, 2026
41 of 44 checks passed
@ambroise-leclerc
ambroise-leclerc deleted the release/0.8.0 branch November 1, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants