1 Testing navigator.sendBeacon() within same origin.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Sending beacon with type: [object String]
7 PASS navigator.sendBeacon("resources/save-beacon.py?name=same-origin", payload); is true
8 PASS Beacon sent successfully
9 PASS Content-Type: text/plain;charset=UTF-8
10 PASS Origin: http://127.0.0.1:8000
11 PASS Referer: http://127.0.0.1:8000/blink/sendbeacon/beacon-same-origin.html
12 PASS Request-Method: POST
16 Sending beacon with type: [object Uint32Array]
17 PASS navigator.sendBeacon("resources/save-beacon.py?name=same-origin", payload); is true
18 PASS Beacon sent successfully
19 PASS Content-Type: application/x-www-form-urlencoded
20 PASS Origin: http://127.0.0.1:8000
21 PASS Referer: http://127.0.0.1:8000/blink/sendbeacon/beacon-same-origin.html
22 PASS Request-Method: POST
24 PASS Body: QAAAAEEAAABCAAAAQwAAAEQAAABFAAAARgAAAEcAAABIAAAASQAAAA==
26 Sending beacon with type: [object Blob]
27 PASS navigator.sendBeacon("resources/save-beacon.py?name=same-origin", payload); is true
28 PASS Beacon sent successfully
29 PASS Content-Type: text/plain;from-beacon=true
30 PASS Origin: http://127.0.0.1:8000
31 PASS Referer: http://127.0.0.1:8000/blink/sendbeacon/beacon-same-origin.html
32 PASS Request-Method: POST
34 PASS Body: hello world
36 Sending beacon with type: [object FormData]
37 PASS navigator.sendBeacon("resources/save-beacon.py?name=same-origin", payload); is true
38 PASS Beacon sent successfully
39 PASS Content-Type: multipart/form-data;
40 PASS Origin: http://127.0.0.1:8000
41 PASS Referer: http://127.0.0.1:8000/blink/sendbeacon/beacon-same-origin.html
42 PASS Request-Method: POST
46 Sending beacon with type: [object URLSearchParams]
47 PASS navigator.sendBeacon("resources/save-beacon.py?name=same-origin", payload); is true
48 PASS Beacon sent successfully
49 PASS Content-Type: application/x-www-form-urlencoded;charset=UTF-8
50 PASS Origin: http://127.0.0.1:8000
51 PASS Referer: http://127.0.0.1:8000/blink/sendbeacon/beacon-same-origin.html
52 PASS Request-Method: POST
54 PASS Body: YT1iJmM9ZA==
56 PASS successfullyParsed is true