blob: a9248225f22839d34c4f2824f5839eaf3b3d6094 [file] [log] [blame]
Testing navigator.sendBeacon() within same origin.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Sending beacon with type: [object String]
PASS navigator.sendBeacon("resources/save-beacon.php?name=same-origin", payload); is true
PASS Beacon sent successfully
PASS Content-Type: text/plain;charset=UTF-8
PASS Origin: http://127.0.0.1:8000
PASS Referer: http://127.0.0.1:8000/blink/sendbeacon/beacon-same-origin.html
PASS Request-Method: POST
PASS Length: 10
PASS Body: SameOrigin
PASS
Sending beacon with type: [object Uint32Array]
PASS navigator.sendBeacon("resources/save-beacon.php?name=same-origin", payload); is true
PASS Beacon sent successfully
PASS Origin: http://127.0.0.1:8000
PASS Referer: http://127.0.0.1:8000/blink/sendbeacon/beacon-same-origin.html
PASS Request-Method: POST
PASS Length: 40
PASS Body: @\0\0\0A\0\0\0B\0\0\0C\0\0\0D\0\0\0E\0\0\0F\0\0\0G\0\0\0H\0\0\0I
PASS
Sending beacon with type: [object Blob]
PASS navigator.sendBeacon("resources/save-beacon.php?name=same-origin", payload); is true
PASS Beacon sent successfully
PASS Content-Type: text/plain;from-beacon=true
PASS Origin: http://127.0.0.1:8000
PASS Referer: http://127.0.0.1:8000/blink/sendbeacon/beacon-same-origin.html
PASS Request-Method: POST
PASS Length: 11
PASS Body: hello world
PASS
Sending beacon with type: [object FormData]
PASS navigator.sendBeacon("resources/save-beacon.php?name=same-origin", payload); is true
PASS Beacon sent successfully
PASS Content-Type: multipart/form-data;
PASS Origin: http://127.0.0.1:8000
PASS Referer: http://127.0.0.1:8000/blink/sendbeacon/beacon-same-origin.html
PASS Request-Method: POST
PASS Length: 9
PASS Body: key=value
PASS
Sending beacon with type: [object URLSearchParams]
PASS navigator.sendBeacon("resources/save-beacon.php?name=same-origin", payload); is true
PASS Beacon sent successfully
PASS Content-Type: application/x-www-form-urlencoded;charset=UTF-8
PASS Origin: http://127.0.0.1:8000
PASS Referer: http://127.0.0.1:8000/blink/sendbeacon/beacon-same-origin.html
PASS Request-Method: POST
PASS Length: 7
PASS Body: YT1iJmM9ZA==
PASS
PASS successfullyParsed is true
TEST COMPLETE