Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
205 commits
Select commit Hold shift + click to select a range
0d56a8b
Diagnose inherited Snap paths in WebKitGTK
ambroise-leclerc Nov 18, 2026
6985c09
Compare raw pointers in CaptureRegistration::reset
ambroise-leclerc Nov 18, 2026
59625fb
Respect environment variable path separators
ambroise-leclerc Nov 18, 2026
1e6ce86
Merge pull request #610 from ambroise-leclerc/606-capture-shared-ptr-…
AM-L Nov 18, 2026
b369e72
Show the WebKitGTK window at its first frame, add a window background…
ambroise-leclerc Nov 18, 2026
b18c064
Initialize GStreamer only for applications with media; trace start-up…
ambroise-leclerc Nov 18, 2026
ce14291
Merge pull request #609 from ambroise-leclerc/607-webkitgtk-snap-diag…
ambroise-leclerc Nov 18, 2026
8b54fd5
Defer WebView2 window presentation until first frame
ambroise-leclerc Nov 18, 2026
f79a219
Fix Windows test discovery and release workflow checks
ambroise-leclerc Nov 18, 2026
b3eb879
Detect native CUDA architectures for the host loop
ambroise-leclerc Nov 18, 2026
564b1bb
Address review: GStreamer opt-out kept for the session and off by def…
ambroise-leclerc Nov 18, 2026
59ccfe7
Include NativeFS in the WKWebView lifecycle test (#611)
ambroise-leclerc Nov 18, 2026
84783ab
Let WKWebView's first-layout probe fall back to a timer when animatio…
ambroise-leclerc Nov 18, 2026
dacba8d
Reveal the WKWebView window when the document has loaded instead of a…
ambroise-leclerc Nov 18, 2026
8980082
Give the WKWebView first-load test a delay longer than a cold web con…
ambroise-leclerc Nov 18, 2026
5dd5d13
Scope the GStreamer opt-out to the start of the session and test that…
ambroise-leclerc Nov 18, 2026
6dd54f9
Arm the WebView2 presentation delay with the window; state the proces…
ambroise-leclerc Nov 18, 2026
0cd4b00
Stop WKWebView painting its own white behind a transparent page and t…
ambroise-leclerc Nov 18, 2026
a5c5a39
Report the pixel read by the WKWebView background test (#611)
ambroise-leclerc Nov 18, 2026
cdf5dbf
Check the WKWebView background through its state, not through unrelia…
ambroise-leclerc Nov 18, 2026
d4db210
Give the developer environment's window its dark colour by default to…
ambroise-leclerc Nov 18, 2026
50db2fe
Address review follow-ups: changelog wording, late first-frame milest…
ambroise-leclerc Nov 18, 2026
896d52b
Make the WKWebView window non-opaque for a translucent background and…
ambroise-leclerc Nov 18, 2026
d4c2ce1
Merge pull request #612 from ambroise-leclerc/611-native-startup
AM-L Nov 18, 2026
f5b4b74
Add optional native pseudoterminals (#613)
ambroise-leclerc Nov 19, 2026
9fcbcde
Harden PTY lifecycle and address review feedback (#613)
ambroise-leclerc Nov 19, 2026
f9cc158
Fix hardened PTY build and Windows interrupt probe (#613)
ambroise-leclerc Nov 19, 2026
fb3ae10
Stabilize desktop CI discovery and DOM coroutine coverage
ambroise-leclerc Nov 19, 2026
2ed16cd
Accept ConPTY cursor positioning in the browser regression
ambroise-leclerc Nov 19, 2026
9146463
Move PTY launch off the server and finish lifecycle review
ambroise-leclerc Nov 19, 2026
8351204
Check PTY shell output independently of ANSI layout
ambroise-leclerc Nov 19, 2026
e40133d
Merge pull request #614 from ambroise-leclerc/613-native-pty
AM-L Nov 19, 2026
60539c6
Add the start-up time test, the font stack hint and CEF's background …
ambroise-leclerc Nov 19, 2026
2d795cd
Address the review of the start-up test and the font stack hint (#611)
ambroise-leclerc Nov 19, 2026
3a95bd7
Isolate start-up scratch directories per frontend and key font checks…
ambroise-leclerc Nov 19, 2026
2a30f55
Time the whole start, clamp CEF alpha and recheck edited stylesheets …
ambroise-leclerc Nov 19, 2026
e41c62d
Fix MSVC build of the font hint, isolate the WebView2 start-up profil…
ambroise-leclerc Nov 19, 2026
d621178
Format the stylesheet version without relying on the file clock's rep…
ambroise-leclerc Nov 19, 2026
2871384
Require the shown milestone, keep the file clock's own stamp and pars…
ambroise-leclerc Nov 19, 2026
3e83d61
Register the start-up tests only for frontends that declare STARTUP_T…
ambroise-leclerc Nov 19, 2026
4ec9cbb
Merge pull request #615 from ambroise-leclerc/611-startup-remaining
AM-L Nov 19, 2026
9f5ef28
Give the focus back to the developer terminal after a click on the pa…
ambroise-leclerc Nov 19, 2026
60e8180
Give the focus back only to the terminal that had it when a page hold…
ambroise-leclerc Nov 19, 2026
c0ea4b8
Judge the click by where the press started, not by an older selection…
ambroise-leclerc Nov 19, 2026
5ed7244
Find the terminal to refocus from the focus at the press, not from fo…
ambroise-leclerc Nov 19, 2026
392730a
Leave the focus to the field a label hands it to (#608)
ambroise-leclerc Nov 19, 2026
531d8cd
Share the workspace state with every terminal of the page (#608)
ambroise-leclerc Nov 19, 2026
0dec9a6
Check again, when the focus is given back, that the terminal still an…
ambroise-leclerc Nov 19, 2026
0ac0675
Answer POST on a dynamic route that opts in, with a body bounded by C…
ambroise-leclerc Nov 19, 2026
240220d
Name the 202 Accepted and 401 Unauthorized status codes (#619)
ambroise-leclerc Nov 19, 2026
e8887f1
Merge pull request #618 from ambroise-leclerc/608-terminal-focus
AM-L Nov 20, 2026
6427719
Answer 100 Continue only to an HTTP/1.1 Expect token, test the interi…
ambroise-leclerc Nov 20, 2026
6ec440d
Accept spaces and equal lists in Content-Length, read a POST body wit…
ambroise-leclerc Nov 20, 2026
f922d40
Accept optional whitespace in HTTP request headers (#621)
ambroise-leclerc Nov 20, 2026
5a078a3
Test controls before HTTP header values (#621)
ambroise-leclerc Nov 20, 2026
124aa1a
Use video without audio for HTTP playback regression (#621)
ambroise-leclerc Nov 20, 2026
9457e44
Bound CSS diagnostic reads and avoid GCC 13 iterator warning (#621)
ambroise-leclerc Nov 20, 2026
4890e2c
Merge pull request #622 from ambroise-leclerc/621-http-header-whitespace
AM-L Nov 20, 2026
321fbb4
Merge remote-tracking branch 'origin/develop' into 619-post-routes
ambroise-leclerc Nov 20, 2026
01706c5
Test Content-Length without a space after the colon and with tabs, no…
ambroise-leclerc Nov 20, 2026
393e8b0
Read a header line fold as one space and keep the POST body alive whi…
ambroise-leclerc Nov 20, 2026
e9241f7
Keep the changelog entry of the line fold to ASCII, as its format che…
ambroise-leclerc Nov 20, 2026
6bce8f4
Read Expect as a list of tokens, so 100-continue among several is ans…
ambroise-leclerc Nov 20, 2026
4dd03ab
Merge pull request #620 from ambroise-leclerc/619-post-routes
AM-L Nov 20, 2026
519cb2b
Document that Expect lists 100-continue among tokens, without case (#…
ambroise-leclerc Nov 20, 2026
b2e1704
Merge pull request #623 from ambroise-leclerc/619-expect-doc
AM-L Nov 20, 2026
7cffc35
Pin developer environment 1.0.1 (#624)
webfront-release[bot] Nov 20, 2026
bf680ee
Prepare WebFront 1.1.0 (#625)
ambroise-leclerc Nov 20, 2026
2574359
Repair the CI failures and make the desktop jobs more reliable (#629)
ambroise-leclerc Nov 20, 2026
ba9bc00
Start several applications side by side with WEBFRONT_PORT (#617)
ambroise-leclerc Nov 20, 2026
32da29e
Validate WEBFRONT_PORT, announce the bound port and add --port to the…
ambroise-leclerc Nov 20, 2026
70d8818
Read WEBFRONT_PORT with _dupenv_s on Windows (#617)
ambroise-leclerc Nov 20, 2026
4ed4412
Bind exclusively on Windows so that a port in use is refused (#617)
ambroise-leclerc Nov 20, 2026
f3232bb
Restore WEBFRONT_PORT after the tests and name the examples that take…
ambroise-leclerc Nov 20, 2026
6997fa5
Merge pull request #633 from ambroise-leclerc/617-instances-simultanees
AM-L Nov 21, 2026
f304a7a
Fall back to a free port, give each live instance its own browser pro…
ambroise-leclerc Nov 21, 2026
fa38e55
Coordinate profile leases between processes and report lock errors (#…
ambroise-leclerc Nov 21, 2026
77ec2af
Answer the review of the profile lease: clean on the shared path, fix…
ambroise-leclerc Nov 21, 2026
1db2d3f
Reuse the process's profile lease when a window reopens and coordinat…
ambroise-leclerc Nov 21, 2026
97bf034
Name the CEF profile directory after the executable (#617)
ambroise-leclerc Nov 21, 2026
27086e7
Declare the CEF profile move as breaking and shorten the changelog en…
ambroise-leclerc Nov 21, 2026
1ed3a65
Merge pull request #634 from ambroise-leclerc/617-instances-suite
AM-L Nov 21, 2026
db1afe5
Add an optional integrated TLS 1.3 server (#631)
ambroise-leclerc Nov 21, 2026
38b26b3
Implement TLS primitives directly from the specifications (#631)
ambroise-leclerc Nov 21, 2026
3e421b7
Preserve explicit remote reads and harden TLS lifecycle (#631)
ambroise-leclerc Nov 21, 2026
807db48
Compile the optional TLS provider on every desktop (#631)
ambroise-leclerc Nov 21, 2026
e1157f2
Finish orderly WSS closure and preserve masked curve selection (#631)
ambroise-leclerc Nov 21, 2026
9bec337
Show the off-loopback TLS warning with default logging (#631)
ambroise-leclerc Nov 21, 2026
c3f3875
Bound TLS negotiation and drain secure WebSocket closure (#631)
ambroise-leclerc Nov 21, 2026
c9f0e30
Keep PSK fixture iterator arithmetic signedness-safe (#631)
ambroise-leclerc Nov 21, 2026
9cf9c4a
Preserve braced ReadBinding construction with typed options (#631)
ambroise-leclerc Nov 21, 2026
1b0608d
Report TLS handshake failures and document closure semantics (#631)
ambroise-leclerc Nov 21, 2026
83c5069
Cap concurrent TLS handshakes per listener (#631)
ambroise-leclerc Nov 21, 2026
3e1043c
Verify the default HTTP browser URL and relax TLS test guards (#631)
ambroise-leclerc Nov 21, 2026
e882687
Check the ALPN alert in the OpenSSL record trace (#631)
ambroise-leclerc Nov 21, 2026
1795691
Split the TLS handshake coroutine for MSVC and harden Receive (#631)
ambroise-leclerc Nov 21, 2026
9294355
Follow RFC 8446 on key_share, plaintext record version, KeyUpdate and…
ambroise-leclerc Nov 21, 2026
eeced78
Bound the WSS close drain and drop the stdexec-only handshake race (#…
ambroise-leclerc Nov 21, 2026
66bf5b7
Silence MSVC C4737 for the TLS handshake coroutines (#631)
ambroise-leclerc Nov 21, 2026
e61bcb0
Build the TLS handshake stages unoptimized on MSVC (#631)
ambroise-leclerc Nov 21, 2026
3d31864
Keep the server Finished expression out of the co_await (#631)
ambroise-leclerc Nov 21, 2026
fe5e497
Reject a concurrent TLS Send in release builds and keep the Poly1305 …
ambroise-leclerc Nov 21, 2026
88a26e7
Bound the wait of a write blocked when a TLS peer sends close_notify …
ambroise-leclerc Nov 21, 2026
37ec84f
Address review of the integrated TLS server (#631)
ambroise-leclerc Nov 21, 2026
516e3af
Accept TLS 1.3 record padding before bounding the content (#631)
ambroise-leclerc Nov 21, 2026
a2f15ca
Drop every TLS 1.3 compatibility ChangeCipherSpec of the handshake wi…
ambroise-leclerc Nov 21, 2026
03db496
Merge pull request #635 from ambroise-leclerc/631-integrated-tls
AM-L Nov 21, 2026
31e954b
Serve MCP over Streamable HTTP from the application and remove webfro…
ambroise-leclerc Nov 22, 2026
0b9829a
Check the WebView2 STA only after pages that ran to their end (#638)
ambroise-leclerc Nov 22, 2026
8428407
Pin developer environment 1.0.2
webfront-release[bot] Nov 22, 2026
dc3e735
Add a dispatch input that repeats the WebView2 repeated-show case on …
ambroise-leclerc Nov 22, 2026
f234fb7
Keep the browser profile out of the scenario directory in the automat…
ambroise-leclerc Nov 22, 2026
3d1db6a
Check the profile root before reporting its removal, and test Host's …
ambroise-leclerc Nov 22, 2026
f452dc5
Merge pull request #643 from ambroise-leclerc/642-automation-profile-…
AM-L Nov 22, 2026
2b1c17a
Merge develop into 638-webview2-sta-check
ambroise-leclerc Nov 22, 2026
c4b92e0
Pass the MSVC analysis on the automation host probe and Enable.hpp (#…
ambroise-leclerc Nov 22, 2026
c770f51
Merge branch 'develop' into release/developer-1.0.2
ambroise-leclerc Nov 22, 2026
f60a85d
Merge pull request #640 from ambroise-leclerc/release/developer-1.0.2
AM-L Nov 22, 2026
0a4702e
Run each repeated-show scenario on its own thread and state that the …
ambroise-leclerc Nov 22, 2026
cd2abcc
Repeat the WebView2 repeated-show case while the rest of the suite ru…
ambroise-leclerc Nov 22, 2026
110b138
Support stable development MCP configuration (#637)
ambroise-leclerc Nov 22, 2026
69f5eb3
Advance developer environment sources to 1.0.3
ambroise-leclerc Nov 22, 2026
5447812
Record the apartment left after every show() of the repeated-show cas…
ambroise-leclerc Nov 22, 2026
9205c6f
Harden fixed MCP credentials and retry port conflicts
ambroise-leclerc Nov 22, 2026
5e9008c
Exercise the occupied MCP port retry signal
ambroise-leclerc Nov 22, 2026
0a9abc3
Stop the processes of the background load before the complete suite s…
ambroise-leclerc Nov 22, 2026
7213511
Handle transient MCP cleanup checks on Windows
ambroise-leclerc Nov 22, 2026
7aefebc
Describe from measurements when a WebView2 thread can still be in its…
ambroise-leclerc Nov 22, 2026
109652f
Validate MCP options before starting automation
ambroise-leclerc Nov 22, 2026
0b2c6d2
Make unauthenticated MCP sessions visible
ambroise-leclerc Nov 22, 2026
5efc5f2
Dispatch the messages the runtime queued on the thread before the apa…
ambroise-leclerc Nov 22, 2026
c30b41b
Harden MCP test retry and qualify token comparison
ambroise-leclerc Nov 22, 2026
7cbcc9d
Merge pull request #639 from ambroise-leclerc/638-webview2-sta-check
ambroise-leclerc Nov 22, 2026
6bcd97d
Check the apartment after every page of the WebView2 repeated-show ca…
ambroise-leclerc Nov 22, 2026
7fb51bf
Merge remote-tracking branch 'origin/develop' into 637-stable-mcp
ambroise-leclerc Nov 22, 2026
65aa024
Address review remarks on the stable MCP configuration (#637)
ambroise-leclerc Nov 22, 2026
c45b1e1
Revert "Check the apartment after every page of the WebView2 repeated…
ambroise-leclerc Nov 22, 2026
078141d
Revert "Dispatch the messages the runtime queued on the thread before…
ambroise-leclerc Nov 22, 2026
2f8fdff
Record the measurement that excludes the message drain and state the …
ambroise-leclerc Nov 22, 2026
c5a7aaa
Open a second native window on a page of the same application (#616)
ambroise-leclerc Nov 23, 2026
f7b1ad7
Centralize MCP address-in-use detection
ambroise-leclerc Nov 23, 2026
5306a9f
Merge pull request #644 from ambroise-leclerc/637-stable-mcp
ambroise-leclerc Nov 23, 2026
5933a35
Remove the measurement scaffolding of the WebView2 STA investigation …
ambroise-leclerc Nov 23, 2026
c20b8d5
Merge branch 'develop' into 638-webview2-apartment-check-all
ambroise-leclerc Nov 23, 2026
1386947
Expose the BDD test framework as the public WebFront::Bdd interface (…
ambroise-leclerc Nov 23, 2026
eaadedc
Locate the discovery script from the function, not from a directory v…
ambroise-leclerc Nov 23, 2026
e54a3a0
Review remarks on the public BDD framework (#647)
ambroise-leclerc Nov 23, 2026
4fe4690
Merge pull request #645 from ambroise-leclerc/638-webview2-apartment-…
ambroise-leclerc Nov 23, 2026
20143bb
Label BddConsumer as portability and note repeated discovery calls (#…
ambroise-leclerc Nov 23, 2026
80d2d85
Refuse SHARD_NAME and JUNIT_PREFIX without SHARDS (#647)
ambroise-leclerc Nov 23, 2026
22585c9
Apply clang-format to the files of the public BDD change (#647)
ambroise-leclerc Nov 23, 2026
439b31d
Refuse a second discovery call on a target and ]==] in properties (#647)
ambroise-leclerc Nov 23, 2026
40abf17
Restore the formatting of the files whose include changes (#647)
ambroise-leclerc Nov 23, 2026
732de45
Record acceptance of ADR-026 after delivery
ambroise-leclerc Nov 23, 2026
cc6df69
Regenerate the cases when only the properties change, escape titles r…
ambroise-leclerc Nov 23, 2026
f78cd47
Discover and run the cases through CROSSCOMPILING_EMULATOR, quote tit…
ambroise-leclerc Nov 23, 2026
e72f698
Keep titles and property values intact whatever they end with (#647)
ambroise-leclerc Nov 23, 2026
c9d561f
Rediscover on a build of the target alone, pass the prefix through th…
ambroise-leclerc Nov 23, 2026
155ebb1
Keep excluded executables excluded and read the executable and emulat…
ambroise-leclerc Nov 23, 2026
7dee166
Treat the executable of a case as one value, whatever its path holds …
ambroise-leclerc Nov 23, 2026
e0b3f32
Merge pull request #648 from ambroise-leclerc/647-public-bdd
ambroise-leclerc Nov 23, 2026
d9d92a2
Support secondary windows on WKWebView
ambroise-leclerc Nov 23, 2026
7e35b35
Merge pull request #650 from ambroise-leclerc/637-adr-accepted
AM-L Nov 23, 2026
c1ba1ff
Report secondary window failures, hide a closed window at once, suppo…
ambroise-leclerc Nov 23, 2026
526eb39
Bind openSecondaryWindow to the session read once at its start (#616)
ambroise-leclerc Nov 23, 2026
1a658db
Merge remote-tracking branch 'origin/develop' into 616-second-native-…
ambroise-leclerc Nov 23, 2026
11106fb
Find the PTY test markers through terminal control sequences (#649)
ambroise-leclerc Nov 23, 2026
285d702
Address review remarks on secondary windows (#616)
ambroise-leclerc Nov 23, 2026
5523e7e
Merge pull request #651 from ambroise-leclerc/649-pty-test-control-se…
AM-L Nov 23, 2026
2790430
Keep a hidden secondary window hidden when its page is opened again (…
ambroise-leclerc Nov 23, 2026
2eb1618
Tell the run-time availability of secondary windows and keep the WebV…
ambroise-leclerc Nov 23, 2026
3ae2957
Merge pull request #646 from ambroise-leclerc/616-second-native-window
ambroise-leclerc Nov 23, 2026
dd3e549
Share the secondary window registry and the interface session of the …
ambroise-leclerc Nov 23, 2026
e028c43
Factor the facade, presentation and startup trace of the native front…
ambroise-leclerc Nov 23, 2026
e6f2a9a
Use the renamed failure field in the WKWebView navigation decision (#…
ambroise-leclerc Nov 23, 2026
e3fe586
Name the namespace of the fake frontends so clang does not flag their…
ambroise-leclerc Nov 23, 2026
d3ab8d0
Keep the configured options a call does not override; address the rev…
ambroise-leclerc Nov 23, 2026
7b7aca2
Open every native window from one ViewOptions whose test injections r…
ambroise-leclerc Nov 23, 2026
31e11cc
Keep the member order of WKWebViewOptions and refuse a startup deadli…
ambroise-leclerc Nov 23, 2026
335bf48
Read the startup trace variable at any length and tidy the native fro…
ambroise-leclerc Nov 23, 2026
a34f1cb
Answer the review of the shared native windows (#652)
ambroise-leclerc Nov 23, 2026
a0cebc9
Bring an open secondary window forward even when the first one is clo…
ambroise-leclerc Nov 23, 2026
5b69690
Word the startup deadline error so the WKWebView lifecycle case still…
ambroise-leclerc Nov 23, 2026
a375c60
Merge pull request #654 from ambroise-leclerc/652-shared-native-windows
AM-L Nov 23, 2026
48eea66
Reformat the C++ sources with clang-format (#653)
ambroise-leclerc Nov 23, 2026
91d7e92
Give every C++ source the normalized file header (#653)
ambroise-leclerc Nov 23, 2026
a987ae9
Check the file headers and the clang-format drift, and list the refor…
ambroise-leclerc Nov 23, 2026
59964a0
Document the file header and the format check (#653)
ambroise-leclerc Nov 23, 2026
72d6f64
Make the clang-format check script executable (#653)
ambroise-leclerc Nov 24, 2026
064a3b7
Run the clang-format check weekly and for master, and leave the heade…
ambroise-leclerc Nov 24, 2026
32b8d55
Reformat the C++ sources with clang-format 23.1.5, the reference vers…
ambroise-leclerc Nov 24, 2026
4ff4c43
Make clang-format 23.1.5 the reference version of the format check (#…
ambroise-leclerc Nov 24, 2026
f5dc104
Merge pull request #656 from ambroise-leclerc/653-format-and-headers
ambroise-leclerc Nov 24, 2026
b84d643
Present WebFront as a library built for agentic development in the RE…
ambroise-leclerc Nov 24, 2026
7500e7e
Polish the README introductions and add a Chinese quick start
ambroise-leclerc Nov 24, 2026
51d748c
Clarify offline deployment in the English README
ambroise-leclerc Nov 24, 2026
5a67641
Align French and Chinese offline deployment wording
ambroise-leclerc Nov 24, 2026
1964b36
Translate the complete README into Simplified Chinese
ambroise-leclerc Nov 24, 2026
da33c3c
Merge pull request #657 from ambroise-leclerc/readme-agentic-1.2.0
AM-L Nov 24, 2026
1edc2e0
Pin developer environment 1.2.0
webfront-release[bot] Nov 24, 2026
2a238b5
Merge pull request #658 from ambroise-leclerc/release/developer-1.2.0
ambroise-leclerc Nov 24, 2026
baf32f3
Merge origin/master into release/1.2.0
ambroise-leclerc Nov 24, 2026
baad71c
Prepare WebFront 1.2.0
ambroise-leclerc Nov 24, 2026
32a1698
Raise the desktop job timeout from 25 to 60 minutes: a cold cache on …
ambroise-leclerc Nov 24, 2026
1e15850
State in the READMEs that WebFront is a C++ UI framework producing re…
ambroise-leclerc Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Commits that only reformat or re-header files; `git config blame.ignoreRevsFile .git-blame-ignore-revs` makes git blame skip them.
# Reformat the C++ sources with clang-format (#653)
48eea66d540c4921c447bebab1811f40ed177cd5
# Reformat with clang-format 23.1.5, the reference version (#653)
32b8d55a732e6333de9537fa6b73b4bc30321a58
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
# Exclude files from exporting
.gitattributes export-ignore
.gitignore export-ignore
.git-blame-ignore-revs export-ignore
.gitkeep export-ignore

# Embedded headers hold the exact bytes of their text sources. Freshness tests
Expand Down
30 changes: 30 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,36 @@ To ensure consistency, we use `.clang-format` and `clang-tidy` to enforce our co

Please run these tools on your code before submitting a pull request.

CI runs `.github/scripts/check-clang-format.sh` weekly, on pull requests into `master` and on manual dispatch (not on every pull request into `develop`), on every tracked C++ source (`clang-format --dry-run --Werror`) with a pinned version of `clang-format`
(`.github/workflows/SourceFormat.yml`); the reference version is **clang-format 23.1.5** (`python3 -m pip install clang-format==23.1.5`, or any 23.x: a patch release does not change the output, another major version may); run the script locally with it before you push, and never run `clang-format -i` with another major version. Generated headers (the embedded assets) and the gzip
fixtures are exempt. The commit that reformatted the whole code base is listed in `.git-blame-ignore-revs`; to make `git blame` skip it, run
`git config blame.ignoreRevsFile .git-blame-ignore-revs` once (GitHub applies the file by itself).

## File header

Every tracked C++ source (`.hpp`, `.cpp`, `.h`, `.cu`, `.cuh`, `.mm`) starts with this header, before `#pragma once` or the first `#include`:

```cpp
// SPDX-License-Identifier: Apache-2.0 OR CECILL-B
// Author: Ambroise Leclerc
// Created: AAAA-MM-JJ
//
// WebFront — <subsystem / component>
// Role: <exact responsibility of the file in one short sentence>.
// Thread: <ui-loop | bridge-io | worker-safe | thread-safe> | Alloc: <zero-hot-path | heap-init | unrestricted>
// LLM: <how to read or modify the file, for example "public API; read struct contracts before impl">
```

- **Author** is the author of the file; **Created** is the date of its first commit, in ISO format.
- **Thread** tells where the code may run: `ui-loop` (the thread of `show()` or of the frontend's interface loop), `bridge-io` (the server's I/O context thread),
`worker-safe` (a pure or self-contained unit that any thread may use on its own objects) or `thread-safe` (shared objects synchronized inside).
- **Alloc** tells what the code may allocate: `zero-hot-path` (nothing on the hot path), `heap-init` (heap allocation at construction or setup only) or `unrestricted`.
- **Role** and **LLM** are written for the file, from its content and the invariants of `AGENTS.md` and the ADRs; never copy a generic value. An agent reads them
first, so keep them true when the file changes.
- Files with another license (third-party code) and generated files (the embedded asset headers, the gzip fixtures) keep their own header; they are listed in
`test/cmake/CheckSourceHeaders.cmake`, which fails the `SourceHeaders` CTest case for a tracked source whose header is missing or malformed.
- Build files (`CMakeLists.txt`, `*.cmake`) and the TypeScript under `js/` do not need the header.

## Changelog format

[`docs/CHANGELOG.md`](../docs/CHANGELOG.md) answers three questions quickly: what changes for me, is anything breaking, and
Expand Down
39 changes: 39 additions & 0 deletions .github/scripts/check-clang-format.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/usr/bin/env bash
# Fails when a tracked C++ source differs from what its clang-format configuration produces (#653).
# .github/scripts/check-clang-format.sh [clang-format] the executable defaults to clang-format
# Each source uses the .clang-format of its directory (include/webfront/, test/, examples/); cmake/ has none and follows include/webfront/.
# Generated or fixed data is exempt; the list matches test/cmake/CheckSourceHeaders.cmake. The reference version is the one pinned in
# .github/workflows/SourceFormat.yml (clang-format 23.1.5): another major version may format differently.
set -euo pipefail

clang_format="${1:-clang-format}"
cd "$(git rev-parse --show-toplevel)"

reference_major=23
version="$("$clang_format" --version)"
if ! grep -Eq "version ${reference_major}\." <<< "$version"; then
echo "warning: the reference is clang-format ${reference_major}.x, this is: $version" >&2
fi

exempt='^(include/webfront/system/(DeveloperBootstrapData|DeveloperIndexHtmlData|DeveloperReleaseData|DomInterpreterData|FallbackIndexHtmlData|FallbackModuleData|FaviconData|WebFrontJsData)\.hpp|test/unit/GzipFixtures\.hpp)$'

status=0
count=0
while IFS= read -r file; do
style=file
case "$file" in
cmake/*) style=file:include/webfront/.clang-format ;;
esac
count=$((count + 1))
if ! "$clang_format" --dry-run --Werror --style="$style" "$file" 2> /dev/null; then
echo "not formatted: $file"
status=1
fi
done < <(git ls-files '*.hpp' '*.cpp' '*.h' '*.cu' '*.cuh' '*.mm' | grep -Ev "$exempt")

if [ "$status" -ne 0 ]; then
echo "Run clang-format -i on the files above (version: $("$clang_format" --version))." >&2
else
echo "$count files formatted"
fi
exit "$status"
4 changes: 2 additions & 2 deletions .github/workflows/BuildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
# Only Linux waits for its image. Native desktops below start immediately and reuse these steps.
if: ${{ !cancelled() && (github.event_name != 'workflow_dispatch' || inputs.repeat_desktop_tests) }}
# No `name:` expression: a skipped matrix job would display it unevaluated.
timeout-minutes: ${{ github.event_name == 'workflow_dispatch' && inputs.repeat_desktop_tests && (inputs.desktop_passes > 3 && 300 || 90) || 25 }}
timeout-minutes: ${{ github.event_name == 'workflow_dispatch' && inputs.repeat_desktop_tests && (inputs.desktop_passes > 3 && 300 || 90) || 60 }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -329,7 +329,7 @@ jobs:
permissions:
contents: read
# The explicit qualification includes a cold analysis build and desktop_passes complete graphs.
timeout-minutes: ${{ github.event_name == 'workflow_dispatch' && inputs.repeat_desktop_tests && (inputs.desktop_passes > 3 && 300 || 90) || 25 }}
timeout-minutes: ${{ github.event_name == 'workflow_dispatch' && inputs.repeat_desktop_tests && (inputs.desktop_passes > 3 && 300 || 90) || 60 }}
strategy:
fail-fast: false
matrix:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/SourceFormat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Source Format

# Rare on purpose (#653): the advanced tier only, like the other weekly and release-branch checks. A pull request into develop is not checked.
on:
pull_request:
branches: [ master ]
schedule:
- cron: '23 4 * * 1'
workflow_dispatch:

permissions:
contents: read

jobs:
clang-format:
name: clang-format
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false

# The version is pinned: clang-format changes its output from one release to the next.
- name: Install clang-format
run: python3 -m pip install --user clang-format==23.1.5

- name: Check the tracked sources
run: .github/scripts/check-clang-format.sh "$HOME/.local/bin/clang-format"
5 changes: 3 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The README introduces WebFront through the Game of Life walkthrough, demonstrati
- `js/pty/`: optional `@webfront/pty` adapter for native pseudoterminals. `wf run pty-package` assembles the archive used by the browser tests. See `docs/PTY.md`.
- `js/react/`: optional `@webfront/react` package (`createStore`, `useStore`, `Island`), declarations and package-local license. `wf run react-package` assembles it; tests verify the exact archive installed by the registry. It is outside the core's embedded resource list.
- `test/fixtures/`, `test/web/fixtures/`: retained regression fixtures, not public example applications.
- `test/unit/`: C++ unit tests, written with `test/unit/Bdd.hpp` (a single-header BDD framework); `test/web/`: real-browser integration (`suite/` is the WebFront project of the Jasmine specs, run by `webtest` through `wf test`); `test/driver/`: `webfront-wf`, the non-interactive `wf` driver for tests; `test/fuzz/`, `test/fixtures/`; `test/cmake/`: CMake test scripts and sub-projects. The `RepositoryLayout` CTest case pins the tracked root.
- `test/unit/`: C++ unit tests, written with `include/webfront/testing/Bdd.hpp` (a single-header BDD framework, a public maintained interface with the `WebFront::Bdd` target and `webfront_bdd_discover_tests`, `docs/BDD.md`; `cmake/WebFrontBdd*.cmake`); `test/web/`: real-browser integration (`suite/` is the WebFront project of the Jasmine specs, run by `webtest` through `wf test`); `test/driver/`: `webfront-wf`, the non-interactive `wf` driver for tests; `test/fuzz/`, `test/fixtures/`; `test/cmake/`: CMake test scripts and sub-projects. The `RepositoryLayout` CTest case pins the tracked root.
- `cmake/`: build modules (frontends, CEF, CPM, compiler options); `.github/`: workflows, `.github/CONTRIBUTING.md`.
- `docs/`: current reference guides, architecture decisions and `docs/CHANGELOG.md`.
- `docs/PROJECT_STATUS.md`: current supported paths, validation scope and known limitations; completed work belongs in the changelog and Git history.
Expand Down Expand Up @@ -117,9 +117,10 @@ Exception: a purely C++ change that reuses an existing encoding, introduces no n
## Coding and testing conventions

- Use C++23, four-space indentation, the `.clang-format` of the directory (`include/webfront/`, `test/`, `examples/`), and the naming rules in `.github/CONTRIBUTING.md`.
- Every tracked C++ source starts with the normalized file header (SPDX, Author, Created, subsystem, Role, Thread, Alloc, LLM) described in `.github/CONTRIBUTING.md`; read it first, keep it true when you change the file, and give a new file one. The `SourceHeaders` CTest case checks it, and CI checks the format with `.github/scripts/check-clang-format.sh` (pinned `clang-format`); generated headers are exempt.
- Keep production implementation header-only under `include/`; browser resources live in `js/`.
- Prefer standard-library facilities and explicit ownership. Keep public headers ODR-safe (`inline`/templates as appropriate).
- Unit tests are named `const Scenario` objects whose `given`/`when`/`then` sections are lambdas, checked with `require`/`check` (`test/unit/Bdd.hpp`), and use deterministic mocks.
- Unit tests are named `const Scenario` objects whose `given`/`when`/`then` sections are lambdas, checked with `require`/`check` (`include/webfront/testing/Bdd.hpp`), and use deterministic mocks.
- Jasmine specs are the project `test/web/suite/`, built by esbuild-wasm and run by `wf test` under the locked `jasmine-core` (installed from the local registry by `WebSuiteInstall`); `webtest` is the `webfront-wf` driver plus the C++ callbacks of the specs. The specs tell C++ they are done (`specsFinished`), the process status is that of `wf test` (or 1 when C++ did not observe every call), and the CTest case has a timeout. The registry the suite installs from is built by `wf run test-registry` (the `TestRegistry` case), from the packages that configure downloaded.
- Every bug fix needs a failing regression test at the lowest useful level. Bridge changes also need the browser integration test.
- Tests must not require user input, a fixed pre-existing browser session, or public network access after dependencies are configured.
Expand Down
24 changes: 6 additions & 18 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ else()
endif()

option(BUILD_SHARED_LIBS "Enable compilation of shared libraries" OFF)
option(WEBFRONT_BUILD_AUTOMATION "Build the optional local developer CLI/MCP launcher" OFF)
option(WEBFRONT_BUILD_EXAMPLES "Build the example applications" ${WEBFRONT_IS_TOP_LEVEL})
option(WEBFRONT_DISTRIBUTION "Require WebKitGTK sandboxing for distribution (development disables it by default)" OFF)
option(WEBFRONT_GZIP_DIFFERENTIAL "Build test-only gzip/zlib differential checks" OFF)
Expand Down Expand Up @@ -55,6 +54,8 @@ find_package(Threads REQUIRED)

add_library(WebFront INTERFACE)
add_library(WebFront::WebFront ALIAS WebFront)
# The public test framework (WebFront::Bdd, webfront_bdd_discover_tests), which WebFront's own tests use.
include(cmake/WebFrontBddTarget.cmake)
if(WEBFRONT_DISTRIBUTION)
target_compile_definitions(WebFront INTERFACE WEBFRONT_DISTRIBUTION=1)
endif()
Expand Down Expand Up @@ -148,24 +149,11 @@ webfront_add_embedded_assets()
# Opt-in consumer test registration; inclusion alone downloads nothing and registers no tests.
include(WebFrontJasmine)

if(WEBFRONT_BUILD_AUTOMATION OR (WEBFRONT_ENABLE_TESTING AND
(WEBFRONT_EMBED_CEF OR WEBFRONT_EMBED_WKWEBVIEW OR WEBFRONT_EMBED_WEBVIEW2 OR WEBFRONT_EMBED_WEBKITGTK)))
webfront_default_embedded_frontend(_automation_default FALLBACK CEF)
webfront_select_frontend(WEBFRONT_AUTOMATION_FRONTEND "${_automation_default}"
"Developer automation frontend" EMBEDDED_ONLY REQUIRE_AVAILABLE)
if(NOT ${WEBFRONT_FRONTEND_${WEBFRONT_AUTOMATION_FRONTEND}_OPTION})
message(FATAL_ERROR "Automation needs an explicitly enabled embedded frontend")
endif()
add_executable(webfront-agent js/developer/tools/WebFrontAgent.cpp)
target_link_libraries(webfront-agent PRIVATE WebFront WebFront_options WebFront_warnings)
if(WIN32)
target_link_libraries(webfront-agent PRIVATE ws2_32 bcrypt advapi32)
endif()
target_compile_definitions(webfront-agent PRIVATE WEBFRONT_AUTOMATION_FRONTEND_TYPE=${WEBFRONT_AUTOMATION_FRONTEND_TYPE})
webfront_setup_frontends_for_target(webfront-agent)
# The webfront-agent launcher is gone (ADR-025): an application that enables automation serves MCP itself.
if(DEFINED WEBFRONT_BUILD_AUTOMATION OR DEFINED WEBFRONT_AUTOMATION_FRONTEND)
message(WARNING "WEBFRONT_BUILD_AUTOMATION and WEBFRONT_AUTOMATION_FRONTEND no longer build anything: webfront-agent was removed. "
"An application that calls webfront::automation::enableAutomation serves MCP itself (docs/AUTOMATION.md).")
endif()
# Public helper for a parent project: checks the launcher target and optionally installs it.
include(WebFrontAgent)
# What an agent configuring a project must learn at once: the development model, and how it runs wf itself.
include(WebFrontAgentGuide)
webfront_announce_agent_support()
Expand Down
Loading
Loading