S054: site pass shots and pairs, autoplay allowed (WIP)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-14 15:04:12 -06:00
commit 9aa2ab9214
51 changed files with 166 additions and 3 deletions

View file

@ -12,8 +12,8 @@ Supersedes the Servo-era site work of S041 for the engine part.
- D-030, D-031, D-035; `tests/smoke/heavy-web.txt`, `site-doctor.txt` headers; `docs/engine/webkit-spike.md` Unproven list.
## Steps
- [ ] Site list: YouTube (home, watch, search, Shorts), Reddit, Discord web, GitHub, Wikipedia, DuckDuckGo, Google search + sign-in page, a news site, Twitch, a maps site; size 1280x800.
- [ ] Hidden Nacre shots (`heavy-web.txt`, `site-doctor.txt` extended) + Chromium pane shots at the same width; Read each pair; list differences in `docs/engine/site-pass-webkit.md`.
- [x] Site list: YouTube (home, watch, search, Shorts), Reddit, Discord web, GitHub, Wikipedia, DuckDuckGo, Google search + sign-in page, a news site, Twitch, a maps site; size 1280x800.
- [x] Hidden Nacre shots (`heavy-web.txt`, `site-doctor.txt` extended) + Chromium pane shots at the same width; Read each pair; list differences in `docs/engine/site-pass-webkit.md`.
- [ ] Fix Nacre-side causes (UA, scripts, chrome overlap, input); WebKit engine differences listed, not patched.
- [ ] Interaction checks per site: video plays/seeks/full screen, sign-in form typing, infinite scroll, context menu, pop-up sign-in windows.
- [ ] GPU path (D-035 unproven): if the user is awake and asks, a `SMOKE_VISIBLE=1` run of the watch page with stats (60 fps video under the overlay, dmabuf path); else write it as open in PROGRESS.
@ -28,3 +28,8 @@ Supersedes the Servo-era site work of S041 for the engine part.
## Handoff (→ PROGRESS.md)
Open differences ranked by daily impact.
## Resume (WIP)
Boxes 1–2 done: `tests/smoke/site-pass.txt`, `docs/engine/site-pass-webkit.md` (pairs table), shots in
`docs/engine/site-pass/`. Box 3 started: autoplay fix in `src/engine/host.rs` (built, site-pass green). Next: other
Nacre-side causes, then the interaction checks (box 4).

View file

@ -0,0 +1,57 @@
# Site pass on WebKit vs Chromium (S054)
D-030/D-031: each daily site is shot in Nacre (hidden nested session, software GL, 1280x800) and in the Chromium
reference (the Claude desktop app's browser pane, same width), the pair is read side by side and every visible
difference is listed as fixed or open. Engine differences are listed, not patched.
## Sites (1280x800)
| # | Site | URL |
|---|---|---|
| 1 | YouTube home | https://www.youtube.com/ |
| 2 | YouTube watch | https://www.youtube.com/watch?v=jNQXAC9IVRw |
| 3 | YouTube search | https://www.youtube.com/results?search_query=webkit |
| 4 | YouTube Shorts | https://www.youtube.com/shorts (redirects to a short) |
| 5 | Reddit | https://www.reddit.com/r/rust/ |
| 6 | Discord web | https://discord.com/login |
| 7 | GitHub | https://github.com/WebKit/WebKit |
| 8 | Wikipedia | https://en.wikipedia.org/wiki/Web_browser |
| 9 | DuckDuckGo | https://duckduckgo.com/?q=webkit+browser+engine |
| 10 | Google search | https://www.google.com/search?q=webkit |
| 11 | Google sign-in | https://accounts.google.com/ |
| 12 | News (The Guardian) | https://www.theguardian.com/international |
| 13 | Twitch | https://www.twitch.tv/directory |
| 14 | Maps (OpenStreetMap) | https://www.openstreetmap.org/#map=12/51.5074/-0.1278 |
Nacre shots: `SMOKE_SIZE=1280x800 SMOKE_TIMEOUT=900 tools/smoke.sh tests/smoke/site-pass.txt` (hidden).
Shots: Nacre `docs/engine/site-pass/nacre/<name>.jpg` (+ `<name>.json`, what the page had at the shot; from the
second run, after the autoplay fix); Chromium `docs/engine/site-pass/chromium/<name>.jpg` (browser pane, 1280x800,
shown scaled) or `<name>.png` (`tools/refshot.py`, QtWebEngine/Chromium 130, page area 1264x696, light), where the
pane couldn't (it refuses reddit.com; in the background it stalls on Discord, the Guardian and Twitch). Nacre's
pages were light (no dark preference in the throwaway profile), the pane's dark: colour scheme isn't a difference.
## Pairs
| Site | Nacre | Chromium | Differences (fixed / open / same) |
|---|---|---|---|
| YouTube home | nacre/yt-home.jpg | chromium/yt-home.jpg, chromium/yt-home-ref.png | same: fresh profile gets "Try searching to get started" in both. Nacre's first run shot it at 6 s still as a skeleton; the feed fills by 15–30 s in the hidden session (37 items at 30 s) — slow software painting, not a page fault (see "Hidden runs" below). |
| YouTube watch | nacre/yt-watch.jpg | chromium/yt-watch.jpg | **fixed**: the video stayed paused at 0:00 (WebKit's default autoplay policy allows only muted starts; Chromium and the original Nacre start it with sound) → web views get `AutoplayPolicy::Allow`; `assert currentTime > 0` in site-pass.txt. same: masthead right-hand buttons still skeleton circles a while after load (also in the pane at 8 s). |
| YouTube search | nacre/yt-search.jpg | chromium/yt-search.jpg | same layout (filter chips, Shorts shelf, result rows); the result order and an ad row differ (ads blocked in Nacre, a sponsored row in the pane). |
| YouTube Shorts | nacre/yt-shorts.jpg | chromium/yt-shorts.jpg | **fixed** with autoplay (it plays; 14 s in at the shot). The pane's short sat on its play button (different short; the pane runs in the background). |
| Reddit | nacre/reddit.jpg | chromium/reddit.png | same layout and posts. Nacre gets Google's One Tap card and "Continue with Google" (Google sign-in is offered to WebKit, not to QtWebEngine); Reddit answers both with its JS challenge first (`?js_challenge=1` in Nacre's address). |
| Discord web | nacre/discord.jpg | chromium/discord.png, chromium/discord.jpg | open, not comparable: `discord.com/login` paints nothing in Nacre (white) nor in either Chromium reference (dark, empty `innerText` in both) within 15–18 s. Checked again in the interaction pass. |
| GitHub | nacre/github.jpg | chromium/github.jpg | same. First run shot a black page at 4 s (still painting). |
| Wikipedia | nacre/wikipedia.jpg | chromium/wikipedia.jpg, chromium/wikipedia-ref.png | same, including the blue onboarding dot under the watch star. |
| DuckDuckGo | nacre/ddg.jpg | chromium/ddg.jpg | same (results, side panel, filters). |
| Google search | nacre/google-search.jpg | chromium/google-search.jpg | **open (engine)**: Nacre gets Google's "unusual traffic" page with a reCAPTCHA; the pane gets results from the same address. Not Nacre: the bare WebKitGTK shell (`tools/engine-test/webkit_shell.py`) gets the same page, with WebKit's own, a Safari 26 and a Chrome 142 user agent, and with the bridge off (`NACRE_NO_BRIDGE=1`). Likely the network stack's fingerprint (libsoup/GnuTLS), which Nacre can't change; the captcha itself works (it's there to click). |
| Google sign-in | nacre/google-signin.jpg | chromium/google-signin.jpg | same (Nacre gets Firefox's agent there, `wants_ua_quirk`; Google says "Use a Private Window" instead of "Guest mode", Firefox's wording). |
| News (Guardian) | nacre/news.jpg | chromium/news.png | same layout. Nacre shows "Global Privacy Control Signal Detected; Opt-Out Request Honored" (Nacre sends GPC by default); 22 requests blocked. |
| Twitch | nacre/twitch.jpg | chromium/twitch.png | same layout. Chromium shows the cookie/ads consent bar, Nacre doesn't (GPC / ad blocker's cosmetic rules). |
| Maps (OSM) | nacre/maps.jpg | chromium/maps.png | same. |
All pairs: Chromium shows classic scrollbars, WebKitGTK overlay ones (engine look, same as GNOME Web).
## Hidden runs
The hidden session paints with llvmpipe, and while this pass ran another project's `cargo test` kept the 4 cores
busy (load 8): a new page could take 5–20 s to replace the old one on screen even though its DOM was ready
(requestAnimationFrame under 1/s). A shot at 3–6 s then shows the previous site (first run: the DuckDuckGo shot
showed Wikipedia, Twitch showed the Guardian). That is the test machine, not Nacre: `site-pass.txt` gives every
page 15 s. Real-GPU painting is the visible run (GPU path below).

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View file

@ -0,0 +1 @@
"{\"ua\":\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36\",\"text\":\"\"}"

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 KiB

View file

@ -0,0 +1 @@
"{\"ua\":\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36\",\"text\":\"Skip to main content\\nThe Rust Programming Language\\nSign Up\\nLog In\\nExpand user menu\\nr/rust\\nCreate Post\\nCommunity highlights\\nHey Rustaceans! Got a quest\"}"

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 KiB

View file

@ -0,0 +1 @@
"{\"ua\":\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36\",\"text\":\"Jump to content\\nMain menu\\nSearch\\nDonate\\nCreate account\\nLog in\\nContents hide\\n(Top)\\nFunction\\nHistory\\nFeatures\\nBrowser market\\nToggle Browser market subse\"}"

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Some files were not shown because too many files have changed in this diff Show more