Repository navigation
WebFront 1.2.0
WebFront 1.2 ships with developer environment 1.2.0. The application itself becomes the MCP server that a coding agent drives
(enableAutomation), and it can open a second native window, serve HTTPS and run beside other applications on a free port.
It has breaking changes: WebView2Options becomes ViewOptions, webfront-agent is removed and the CEF profile moves; each
entry below gives its migration.
Breaking
WebView2Optionsis nowViewOptions, shared with WKWebView:userDataFoldermoves afterlaunch, so a positional initialization ofWebView2Optionsstops compiling, and so does a designated one that writes.userDataFolderbefore.contentPolicy,.window,.visibleor.launch(write it last) (#652,docs/FRONTENDS.md).webfront/automation/Enable.hppno longer compiles withWEBFRONT_DISTRIBUTION: gateenableAutomationout of the distribution build, as the guide already advised (#632, ADR-025).webfront-agentis removed with its JSON CLI, MCP on stdio,--serve,--attach,--listand--print-mcp-config, as areWEBFRONT_BUILD_AUTOMATION,WEBFRONT_AUTOMATION_FRONTENDandwebfront_add_agent(): connect the MCP client to the URL the application prints (#632, ADR-025,docs/AUTOMATION.md).AutomationOptions::listenbecomesdirectoryand may stay empty (a private directory named after the session is created),Automation::endpoint()becomesdirectory(), and the JSON-lines attachment channel (ChannelServer,ChannelClient) is gone (#632).- The CEF profile is now
cef_cache/<executable>, notcef_cache: an application starts with an empty profile (localStorage, cookies); to keep the data, move the old contents ofcef_cacheintocef_cache/<executable>once (#617,docs/HOST_INTEGRATION.md).
Added
- Open a second native window with
app.openSecondaryWindow(page, WindowOptions)(WebKitGTK, WKWebView, WebView2; elsewherestd::logic_error, whichapp.canShowSecondaryWindow()predicts): it shares the server, thecppFunctions, thejsFunctionsubscribers and the view proof of the first window;app.requestClose(page)closes it, and closing the first closes the others (#616,docs/FRONTENDS.md). - Write your own scenarios with the public
webfront::bddframework:<webfront/testing/Bdd.hpp>, theWebFront::Bddtarget, the installableWebFrontBddpackage andwebfront_bdd_discover_tests()(prefix, properties, shards) replace the internaltest/unit/Bdd.hppandbdd_discover_tests, and follow WebFront's versions (#647,docs/BDD.md). - Configure a stable MCP port and application-supplied Bearer token, or explicitly disable authentication for trusted development (#637, ADR-026,
docs/AUTOMATION.md). - Connect an MCP client to the application itself:
enableAutomation(app, {.grants = {...}})serves MCP over Streamable HTTP on a loopback port of its own, prints its URL and writes a privatemcp.jsonwith the URL and a session Bearer token, so several applications run side by side with no other program (#632, ADR-025,docs/AUTOMATION.md). - Use a custom network provider with
DeveloperAppWithNetwork. TheBasicDeveloperAppalias selects the existing TCP provider (#631). - Pass the MSVC code analysis on the automation host probe and the discovery directory of
Enable.hpp(C6031, C6244), which stopped the Windows desktop job of a dispatch or pull request at its build (#638). - Serve HTTPS and WSS with the optional header-only TLS 1.3 listener and reload its PEM identity after renewal (#631,
docs/TLS.md). - Start an application with no port setting when
9002is taken: an emptyWebFrontConfig::portfalls back to a free port, a chosen port is never replaced, and CEF and WebKitGTK give each live instance its own profile directory (#617,docs/HOST_INTEGRATION.md). - Start several applications side by side: the default port follows
WEBFRONT_PORT(a number from 0 to 65535,0asks for a free port,9002remains the default), the examples take--port, the server announces the port really bound, and a failed bind names the address, the port and the cause (#617,docs/HOST_INTEGRATION.md).
Fixed
- Check the leftover STA of a WebView2 window only after a page that ran to its end, not after one that closes the window on a load failure: the runtime can keep a COM initialization of its own then, in about one
show()in 500 under load, and the limit is documented with its measurements (#638,docs/PROJECT_STATUS.md). - Refuse every
Sec-Fetch-*request header on the MCP listener, includingSec-Fetch-Dest, in both authenticated and unauthenticated modes (#637).