Skip to content

Release WebFront 0.6.0 - #437

Merged
ambroise-leclerc merged 192 commits into
masterfrom
release/0.6.0
Oct 31, 2026
Merged

ambroise-leclerc merged 192 commits into
masterfrom
release/0.6.0

Conversation

@ambroise-leclerc

Copy link
Copy Markdown
Collaborator

Prepare WebFront 0.6.0 from develop for the stable branch. The release includes per-browser DOM documents and awaitable events, the optional React adapter and forms descriptors, native developer automation, browser broadcasts, and native window configuration.

The version in the public header and the changelog are updated to 0.6.0. The complete changes and migration details are in docs/CHANGELOG.md.

Validation: the release version check passes locally. The master PR runs the complete desktop, portability, sanitizer and CEF checks.

ambroise-leclerc and others added 30 commits October 26, 2026 00:22
Buffer gzip bit reads and benchmark cold decoding [#282]
ADR-018 (Proposed) compares eight models of DOM access, from the state of
the art in TypeScript, Rust and Python, and retains a hybrid: a batched,
validated mutation stream into islands the page lends to C++, React and
other UI libraries kept as owners of their DOM through an external store,
and C++26 reflection as an optional layer for generated interfaces.

Throwaway prototypes in test/web/dom (manual WebKitGTK target
webkitgtk_dom_prototype, never built by CTest or CI) measure the stream,
one message per operation, awaited and batched reads, event round trips,
React 19 islands and store updates, a form generated by reflection with
GCC 16.1, and hostile batches. They found a 40 ms delay on callbacks that
call ui.jsFunction before returning, since TCP_NODELAY is not set (#379).
Derived work: #379 to #384.
… findings [#378]

The throwaway prototypes and their manual CMake target leave the tree; ADR-018
points to commit ef2bb25 of PR #385 for them. The review findings on the
prototype interpreter (URL parsing, validation against the state a batch
produces, island elements that could be moved) become prescriptions for the
embedded interpreter of #380, and each acceptance criterion names its issue.
Fix HTTP response lifetimes, CI repetition and obsolete build files [#376]
ADR-018 : accès au DOM depuis C++, prototypes mesurés [#378]
Activer TCP_NODELAY sur les connexions acceptées [#379]
Exécuter le job desktop Linux dans une image d'outils préconstruite
Reject suite command words that CMake lists would corrupt, parse day-long ps CPU times in the macOS sampler, restore the lifecycle indentation, and document the port "0" contract and session failure diagnosis.
Opening every process on a loaded runner can outlast a short command and report no process; run the cache probe even after a test failure.
Label the unit tests fast and the consumer project portability, let the suite runner exclude a label, run the fast tier first in the desktop jobs, add a portability matrix, and run the advanced tier weekly and on pull requests into master.
ambroise-leclerc and others added 21 commits October 30, 2026 17:41
- WebFrontAgent (Linux): end only the descendants running the agent's own
  executable, the CEF helpers, so a WebKitGTK web process or a command of the
  developer application survives; give them the cleanup grace (5 s on a normal
  exit) before killing them; hold them through pidfds, confirmed by a second
  scan, so a reused PID is never signalled. They are listed once: the browser
  aborts after a few GPU relaunches.
- Start the removal shell in its own session, so a kill of the agent's process
  group does not prevent the removal; release the spawn actions and attributes
  on every path; test the glibc version without __GLIBC_PREREQ, which another
  libc lacks.
- CheckJasmineRunner: read the orphan's state with ps where there is no /proc
  (macOS) instead of taking it for gone; do not wait after the last probe.
- AutomationClient: list a leftover profile with os.walk, which tolerates the
  removal still under way, and stop after 40 entries.
]

- WebFrontAgent (Linux): drop a helper whose pidfd cannot be opened because
  it is gone, so its reused identifier is never signalled; only a kernel
  without pidfds falls back to the identifier. Recognize a non-dumpable CEF
  helper, whose executable link is hidden, by its command name.
- The removal shell reads the agent's state with builtins and waits for
  about a minute at most. A normal exit, after CefShutdown, starts it only
  when the profile could not be removed.
- Document that the /proc/self/fd fallback lists a snapshot of descriptors.
- AutomationClient: create the profile directory without
  ignore_cleanup_errors, which needs Python 3.10.
…ile check [#416]

- WebFrontAgent (Linux): follow a helper whose pidfd cannot be opened for a
  reason other than its exit (seccomp, no descriptor left) by its
  identifier, signalled only if a scan just before still finds it among the
  helpers. Mark the parameter of openProcess unused where there is no
  pidfd_open.
- AutomationClient: create the profile directory in /tmp on Linux rather
  than in an inherited, possibly long TMPDIR, and count a profile as removed
  once absent for 2.5 s, longer than the agent's repeated removal.
…e-paths

Keep the watchdog profile path short and let a killed orphan exit [#416]
…401]

forEachUI skips a browser until it counts as started, a window that ends
inside WebFront after the onUIStarted handlers return: a state sent that
way can leave a starting browser on the handler's older state. The guide
and the header now say so and send states through broadcast.

The Threads section states that no call through a UI or a broadcast may
still run when shutdown or destruction starts, and that
connectedBrowsers() also counts connections that are not started yet or
closed but not released. A queued writeLatest() frame keeps its group's
iterator, so the group is erased without a lookup. The changelog entry
is wrapped like the rest of the file.
With GCC 16 at -O2 and above, Store::flush() on a moved-from store was
reported as a call on a null pointer (-Werror=nonnull), although check()
throws first, and the Release unit tests did not compile. The store's
operations now use checked(), which returns the verified state by reference,
so no null path remains after the check.

GCC runs this analysis only when it optimizes, which is why the Debug CI job
did not see it: GCC builds now also compile ReactStoreTests.cpp at -O3
(react_store_optimized). That target fails with the previous header.
A broadcast returns once its call is queued or kept for every browser, so
a call made after it on the same thread, or on a thread synchronized after
it, follows it. Calls that overlap on several threads have no order, which
the guide now says; sending under linksMutex would not order them and
would hold a WebFront lock while the write starts.
Broadcast to every connected browser and document the threads [#401]
Each connection gets a 64-bit generation, never reused. BasicUI, JsFunction and JsFunctionSender carry it with the identifier, findLink checks both, and operator== compares it. The generation never crosses the wire.
…onstructor change [#428]

- cppFunctionCalled reads the link and its generation together instead of locking twice.
- Document why domDocuments is keyed by identifier alone.
- Changelog: the public constructors of UI, JsFunction and JsFunctionSender take the generation.
- Regression test reads the kept UI values under the mutex.
- The regression test requires the stale typed future to be ready immediately, so a regression fails instead of hanging.
- The started event builds its UI once; generationOf reuses linkAndGeneration.
- Mark testing::ConnectionIds as test-only and document why the Commands registry is keyed by identifier alone.
Reject a stale UI once its connection identifier is reused [#428]
Build the React store tests in Release with GCC 16 [#429]
Copilot AI balanced review requested due to automatic review settings October 31, 2026 07:32
@coderabbitai

coderabbitai Bot commented Oct 31, 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: 64066a79-fcb0-42fe-a6ab-d00519a436dc

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 7b9c6d5 into master Oct 31, 2026
17 checks passed
@ambroise-leclerc
ambroise-leclerc deleted the release/0.6.0 branch October 31, 2026 08:16
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