Repository navigation
Description
Hi! I've ported wick-renderer to Windows (x64): CEF 144.0.18 through the C API, built with MSVC, speaking the same stdin/stdout protocol (v3-cf-aware). It's at https://github.com/ObnubiladO/wick-renderer-windows, under MIT. This repository has no LICENSE file (the README and Cargo.toml say MIT), so I credited "the Wick authors". Tell me if you'd like a specific copyright line.
What Wick needs to use it
patches/wick-windows.patch in that repo (99 lines added, 20 removed, against a867821):
- look for
wick-renderer.exe(today it looks forwick-renderer); - fall back to
USERPROFILEwhenHOMEis unset, which it always is on Windows (otherwise state lands in\tmp\.wickon the current drive); - start the renderer with
CREATE_NO_WINDOW, and pass--proxyon to it asWICK_PROXY.
I'm happy to open a PR with that, and with the renderer sources under rust/cef/, if you'd like it upstream.
One thing a PR would not fix: build.rs has no Windows branch for the cronet feature, so on Windows the first-stage engine is the reqwest fallback, and only the renderer is real Chrome.
Found along the way
1. STEALTH_JS does not run, on any platform. In section 14 of stealth.h ("iframe.contentWindow consistency"), the lines // No override needed… and // CEF multi-process… are JavaScript comments inside the string literal. The C literals are joined without newlines, so the first // comments out the remaining 3,036 characters of the script and it fails to parse: SyntaxError: Unexpected end of input. I checked by joining the literals the way the compiler does and parsing the result with V8. The copy in helper.m fails the same way. Deleting those two lines makes it parse.
The rest I saw on the first Windows build, which, like renderer_linux.c and renderer.m, had no download, dialog, popup or permission handlers, on the same CEF version. I have not run the macOS or Linux renderers, so read these as "probably applies":
2. Downloads are saved without asking. There is no download handler, so a page that serves an attachment, or starts a download from script, gets the file written to the user's Downloads folder.
3. Pages can put dialogs on the desktop. On Windows: window.print() opened the system Print dialog and blocked the render while it was open; an HTTP 401 opened Chrome's "Sign in" window; navigator.credentials.get(), which needs no click, opened the system passkey dialog. On a headless Linux box there is presumably nothing to show; on a Mac desktop I'd expect the equivalents.
4. The challenge click gives the page a user gesture. After it, window.open() succeeds, since there is no on_before_popup. Separately, window.close() ends the render with nothing.
5. Reusing one browser is visible to pages. Every page after the first reads window.outerWidth and outerHeight as 0 for its first few tens of milliseconds (10–50 ms here), until the size arrives from the browser process. Section 11 of stealth.h would cover that once the script runs again. The previous page also stays open, with its timers and requests, until the next request arrives.
6. Chromium's own traffic. With no switches against it, Chromium made a network-time query, an AI-mode eligibility request to google.com, a preconnect to the default search engine and a Cloud Messaging check-in. It also listened on UDP 5353 for Cast devices for about a minute after each start, which is what a firewall prompt first showed me.
7. WebRTC goes around a configured proxy. A page could make the renderer send STUN packets straight to an address of its choosing, with --proxy-server set. The preference webrtc.ip_handling_policy = disable_non_proxied_udp stops it.
How the Windows build handles each of these is in its README ("What a page can and cannot do" and "Differences from Wick's macOS and Linux renderers"). I can split any of this into separate issues if that's easier.
Thanks for Wick!
Activity