Repository navigation
Bring WebFront 1.3.0 back into develop - #738
Conversation
Release WebFront 0.9.0
Release WebFront 1.0.0
* Diagnose inherited Snap paths in WebKitGTK * Compare raw pointers in CaptureRegistration::reset Comparing std::shared_ptr<CaptureProvider> found std::expected::operator== through ADL and made libc++ (AppleClang) recurse on its constraints. Compare the raw pointers instead. Fixes #606 * Respect environment variable path separators * Show the WebKitGTK window at its first frame, add a window background and cheaper font stacks (#611) * Initialize GStreamer only for applications with media; trace start-up since exec (#611) * Defer WebView2 window presentation until first frame * Fix Windows test discovery and release workflow checks * Detect native CUDA architectures for the host loop * Address review: GStreamer opt-out kept for the session and off by default no more, WKWebView presentation, WebView2 timers, docs, CI pin (#611) * Include NativeFS in the WKWebView lifecycle test (#611) * Let WKWebView's first-layout probe fall back to a timer when animation frames are throttled (#611) * Reveal the WKWebView window when the document has loaded instead of awaiting animation frames (#611) * Give the WKWebView first-load test a delay longer than a cold web content launch (#611) * Scope the GStreamer opt-out to the start of the session and test that unrelated children keep their environment (#611) * Arm the WebView2 presentation delay with the window; state the process-wide window of the GStreamer opt-out (#611) * Stop WKWebView painting its own white behind a transparent page and test the displayed pixels (#611) * Report the pixel read by the WKWebView background test (#611) * Check the WKWebView background through its state, not through unreliable pixel reads (#611) * Give the developer environment's window its dark colour by default to remove the white flash on navigation (#611) * Address review follow-ups: changelog wording, late first-frame milestone, WKWebView test naming (#611) * Make the WKWebView window non-opaque for a translucent background and test the alpha (#611) * Add optional native pseudoterminals (#613) * Harden PTY lifecycle and address review feedback (#613) * Fix hardened PTY build and Windows interrupt probe (#613) * Stabilize desktop CI discovery and DOM coroutine coverage * Accept ConPTY cursor positioning in the browser regression * Move PTY launch off the server and finish lifecycle review * Check PTY shell output independently of ANSI layout * Add the start-up time test, the font stack hint and CEF's background and deferred window (#611) - StartupTime-cold and -warm cases (label startup) run the lifecycle program's startup-time scenario with generous limits. - The development file system prints a hint once for a stylesheet whose font-family lists four or more costly families. - CEF applies WindowOptions::background and shows its window when the first document has loaded or after one second. - Document the critical path and prewarming analysis; update the expected test counts of the frontend selection checks. Refs #611 * Address the review of the start-up test and the font stack hint (#611) - NativeDebugFS reads a stylesheet only when it has not been checked yet and its size, taken before reading, is at most 1 MiB. - The font stack warning says that other engines are not affected this way. - The startup-time scenario closes the window on an empty answer or an exception, so a failure no longer waits for the script's timeout. - Document that the cold start-up case is fully cold on Linux only. Refs #611 * Isolate start-up scratch directories per frontend and key font checks by full path (#611) - The StartupTime cases use a scratch directory named after their frontend, so that CTest running two frontends in parallel no longer deletes each other's profile. - NativeDebugFS remembers the checked stylesheets by their path under the document root, so two roots serving a style.css are each analysed. Refs #611 * Time the whole start, clamp CEF alpha and recheck edited stylesheets (#611) - startup-time measures from the start of the program, so that the frontend's initialization is part of the limit. - CEF accepts only an opaque or fully transparent background alpha: a non-zero alpha is now opaque (as in WebView2) and only a zero alpha stays transparent. Documented and unit-tested. - NativeDebugFS checks a stylesheet again when its size or modification time changes, and still warns once per version. Refs #611 * Fix MSVC build of the font hint, isolate the WebView2 start-up profile (#611) Rename the 'version' stamp that hid webfront::version (C4459 under /WX), name the WebView2 user data folder of the start-up test, resume the font-family scan after the analysed declaration and restore the warning stream with a scope guard. * Format the stylesheet version without relying on the file clock's representation (#611) libc++'s file_time_type counts in a 128-bit integer, for which std::to_string is ambiguous: the version is now the count of nanoseconds. Refs #611 * Require the shown milestone, keep the file clock's own stamp and parse font-family declarations (#611) - The stylesheet stamp holds the file size and last write time as they are, built only after both reads succeeded, so no conversion of the file clock's count can overflow. - startup-time waits 1.5 s after the bridge's answer, and RunStartupTime.cmake fails when the window is not reported as shown or was shown after the limit. - font-family is read whatever its case, and quoted strings (a `content` value) are not declarations; a quoted family containing a semicolon no longer cuts its value. Refs #611 * Register the start-up tests only for frontends that declare STARTUP_TRACE (#611) RunStartupTime.cmake requires the `window shown` milestone that WEBFRONT_STARTUP_TRACE=1 prints, which the frontend contract does not ask for. A frontend added with webfront_register_frontend now opts in with STARTUP_TRACE (WebView2, WKWebView and WebKitGTK do); without it no start-up case is registered and the standard tier cannot fail on a missing trace. Refs #611 * Give the focus back to the developer terminal after a click on the page around it (#608) While the terminal has the window, the page around it (the title and the notice of the bootstrap page, blank areas) is not part of xterm.js. A click there moved the focus to the body: the cursor became a hollow box and the keys went nowhere, until a click inside the terminal. Once the click ends, the terminal takes the focus back, unless the click selected text, landed on a control, or an interface or the floating window owns the window. The regression spec clicks outside the terminal, then types. * Give the focus back only to the terminal that had it when a page holds several (#608) Each mount() added a listener on the whole document, so a click inside the first terminal also fired the second one's, which took the focus a moment later and sent the typed commands to the wrong session. The page now remembers which terminal was focused last: only that one answers a click on the page around the terminals, and a click inside any terminal is left to xterm.js. A listener removes itself once its terminal has left the page. The regression spec mounts a second terminal and clicks in each, then on the page. * Judge the click by where the press started, not by an older selection (#608) terminal.hasSelection() stays true after a selection made earlier, so a later click on a blank area of the page never gave the focus back and the keys still went nowhere. The page now notes where each press starts. The terminal takes the focus back only when the press began outside any terminal and control; a click outside cannot create an xterm.js selection, which is left alone. A selection of the page's own text still keeps the focus where the user put it. The regression spec selects the terminal's text, clicks the page and types. * Find the terminal to refocus from the focus at the press, not from focus events (#608) The last focused terminal was recorded from the textarea's focus event, which a window without the system focus never receives (several browsers on one display): no terminal then answered a click on the page. The press, which comes before the browser moves the focus, now records the terminal that holds it. The regression spec follows the browser's order: the focus moves to the body after the press, and clicks in a terminal leave it. * Leave the focus to the field a label hands it to (#608) A label was not among the elements that take a click, and the focus given back to the terminal after the click came after the browser had moved it to the label's field: the typing went into the terminal. A label now takes the click, and whatever field of the page holds the focus once the click has ended keeps it. The regression spec clicks a label and a page area while a field is focused. * Share the workspace state with every terminal of the page (#608) Only the first terminal mounted with a preview receives the workspace object; the others get null because the preview is already laid out. A second terminal that had the focus therefore ignored the state: with the terminal floating or an interface in the window, a click on the page gave it the focus back and took the keys away from the interface. The workspace now registers itself for its preview frame, and every terminal reads its state from there (it does not refocus while the state is unknown). The regression spec focuses the second terminal, shows an interface, clicks the page and checks that no terminal takes the focus. * Check again, when the focus is given back, that the terminal still answers (#608) The state of the workspace and the last focused terminal were checked at the end of the click, but the focus is given back in a task of its own. A click handler or a navigation that opened the interface in between still got the terminal's focus() call, with the interface now owning the window. The checks are one function, run at the release and again in the deferred task. The regression spec changes the state right after the click ends and checks that the second terminal does not take the focus. * Answer POST on a dynamic route that opts in, with a body bounded by Content-Length (#619) RouteOptions::postBodyLimit makes a route read the body announced by Content-Length, from the bytes received after the headers on, and give it to the handler as RouteRequest::body. Expect: 100-continue gets 100 Continue; a POST without Content-Length, with a Transfer-Encoding, with a malformed or contradictory length or a longer body is refused before the handler runs, and a connection that ends early is closed without an answer. * Name the 202 Accepted and 401 Unauthorized status codes (#619) A route that answers a notification without a body, or refuses missing credentials, gets a status line with its reason phrase. * Answer 100 Continue only to an HTTP/1.1 Expect token, test the interim cases and 401, document the limits (#619) * Accept spaces and equal lists in Content-Length, read a POST body without copies or oversized buffers (#619) * Accept optional whitespace in HTTP request headers (#621) * Test controls before HTTP header values (#621) * Use video without audio for HTTP playback regression (#621) * Bound CSS diagnostic reads and avoid GCC 13 iterator warning (#621) * Test Content-Length without a space after the colon and with tabs, now accepted by the parser (#619) * Read a header line fold as one space and keep the POST body alive while the answer streams (#619) * Keep the changelog entry of the line fold to ASCII, as its format check reads it (#619) * Read Expect as a list of tokens, so 100-continue among several is answered (#619) * Document that Expect lists 100-continue among tokens, without case (#619) * Pin developer environment 1.0.1 (#624) Co-authored-by: webfront-release[bot] <webfront-release[bot]@users.noreply.github.com> * Prepare WebFront 1.1.0 (#625) --------- Co-authored-by: AM-L <[email protected]> Co-authored-by: webfront-release[bot] <354514085+webfront-release[bot]@users.noreply.github.com> Co-authored-by: webfront-release[bot] <webfront-release[bot]@users.noreply.github.com>
The SourceFormat check of the release pull request found WebKitGTK.hpp, WebKitGTKPolicy.hpp, InspectorDistribution.cpp and WebKitGTKPolicyTests.cpp unformatted. The Role and LLM lines of the WebKitGTKPolicy.hpp header exceeded the 160-column limit, which made clang-format merge the header fields; they are shortened so that each field keeps its own line.
Its formatter wrote 1 GiB, one character at a time, through std::format_to_n: 2.5 s in a release build, beyond the 180 s limit of the GCC 13 ARM64 sanitizer job, which ran it for the first time on the release pull request. The size meant no bound of the implementation; four times maxSnapshotBytes, the largest bound, shows the same cut (0.33 s for the whole scenario).
…4 KiB The GCC 13 ARM64 sanitizer job still timed out: that runner is 45 to 85 times slower than a workstation on memory-heavy tests, and the scenario spent most of its time reading a full value of 16 MiB, the default snapshot bound. As the neighbouring scenario already does, the bench sets its own bound; AutomationStateTests checks the default of 16 MiB. Under GCC 13 with ASan and UBSan the scenario drops from 2.3 s to 0.38 s.
DeveloperBrowserIntegration-terminal waited 4 s for the coop script to print
'waiting'; on the second of the three passes of the release pull request's
desktop job, a loaded runner held its worker back longer ('The script did not
start'). Like the other starts of the developer specs (#660, #729), it now has
bootstrapLimitMs.
WfDriverBlockedPage timed out at 120 s on the second pass of the release pull
request's desktop job, although its driver ended in 9 s: the web content
process that the page blocks inherits the driver's stdout and stderr, and
execute_process waited for those pipes until WebKit killed that process
('WebProcess didn't exit as expected', 19 s later in the first pass, never
within the limit in the second). With files, the script waits for the driver
only; the case drops from 21 s to 10 s locally.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Report the 1.3.0 release into
develop: version,[1.3.0]changelog section and comparison links, compatibility table, and the fixes the advanced tier of #737 required (pinned clang-format on four sources, the bounded-formatting watch scenario within the GCC 13 ARM64 sanitizer budget, 60 s for the terminal spec'swf runscript to start, and the wf driver's output read from files so that a blocked web process no longer holds the test).master(0fab9f8,v1.3.0) is a parent of this branch: merge it with a merge commit so that the next release findsmasterin the history ofdevelop.