The comparison of two engines on one machine lets through a value both read from it. The page oracle's leg now runs on a machine given values the engine must never read, and the dumps are held to what the persona declares: * scripts/ci_poison_host.py: apply, verify and undo per system. Windows: the zone of Lima (tzutil), the ja-JP culture and user language list, the dark scheme (HKCU AppsUseLightTheme and SystemUsesLightTheme), a per-user canary font. Linux: TZ, LANG, GTK_THEME, a user-installed canary font, and a null PulseAudio sink at 96000 Hz with 6 channels as the default. The canary is generated, byte for byte the same every time (no third-party font). Every PowerShell forces the invariant culture first, and the state it keeps is text read before any change. `control` is the negative control: Playwright's own Firefox on the same runner must read the offsets of Lima, the dark scheme, the canary's width and, on Linux, the 96000 Hz sink, or it is a broken control. The dumps' findings are the host's values against what the identity declares (the core's prefs of the seed and the retail reference). * host_gate_page.html: the ab.poison probe (one block between two markers, which the control evaluates too). * scripts/host_gate/ab and ci_host_gate.py: an extra visit of seeds 0 and 63 in a launch of ja-JP and in a context of de-DE and America/Lima: the top window, a cross-site iframe, a srcdoc iframe, a worker, a shared worker, a service worker answering a navigation, an audio worklet, OffscreenCanvas, canvas and WebGL hashes in each, window.open with and without features, the Accept-Language the server saw per kind of request, and a re-read after back/forward. Leaves are under ab. (skipped by the retail comparison like diag., compared by the A/B). Seed 63 is the control of seed 0: it must differ on at least AB_CONTROL_MIN leaves. * the page oracle's test checks that the ab visit read, that the control held, and on a poisoned host that the poison is in force, that stock Firefox read it and that neither engine did.
3 lines
108 B
JavaScript
3 lines
108 B
JavaScript
importScripts('/ab/realm.js' + location.search);
|
|
onmessage = async () => { postMessage(await abRealm()); };
|