1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
Freenet shell smoke-test fixture
<!--
This page is published as a Freenet website contract and loaded inside the
shell's sandboxed iframe by the Playwright smoke tests
(crates/core/tests/playwright/tests/shell.spec.ts).
It deliberately does NOT include the shell bridge, the WebSocket shim, or the
navigation interceptor: the freenet node injects those into the served HTML
(see crates/core/src/server/path_handlers.rs::sandbox_content_body). The
point of the test is to exercise that injected code against a real browser,
so the fixture only provides the DOM the injected code acts on.
Stable element ids are the test contract — keep them in sync with
shell.spec.ts.
-->
Freenet shell fixture
<!--
Cross-origin link. The navigation interceptor must intercept clicks on this
(left, middle, and shift) and forward them to the shell as an `open_url`
postMessage rather than letting the sandboxed iframe open a null-origin
popup (freenet/freenet-core#3852, #3854). example.com is a reserved
documentation domain (RFC 2606) that is never actually navigated to in the
tests — the click is intercepted before any network request.
-->
External cross-origin link
<!--
Same-origin, in-contract link. The interceptor must turn this into a
`navigate` postMessage so the shell performs an in-place iframe hop instead
of a full reload. The href is relative so it resolves under this contract's
web prefix regardless of the contract key.
-->
In-contract page 2
<!--
Download link. The interceptor must NOT intercept links carrying a
`download` attribute; `handleAnchorClick` early-returns on `download`
(path_handlers.rs:2013), so no open_url / navigate postMessage is sent and
the link keeps its native (download) behaviour.
The href is SAME-ORIGIN (a data URL would be skipped earlier by the
javascript:/data: protocol check at path_handlers.rs:2011, which would NOT
isolate the `download` guard). Without the `download` attribute this exact
same-origin link would be intercepted as a `navigate` (see #same-origin-link);
the `download` attribute is what makes the early-return fire instead, so the
absence of a `navigate` postMessage on click is attributable to the
`download` guard specifically. The test reads `#download-link` directly and
does not rely on what the browser does natively after the early-return.
-->
Download
<!-- Result sink the Playwright tests read via page.evaluate. -->
pending