blob: e4d0520057f3b302a179cee62cafdbb5026b9670 [file]
<!-- webkit-test-runner [ IPCTestingAPIEnabled=true ] -->
<p>This test passes if the NetworkProcess does not crash.</p>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
window.onload = async () => {
if (!window.IPC)
return window.testRunner?.notifyDone();
const { CoreIPC } = await import('./coreipc.js');
const ownOrigin = location.origin + '/';
CoreIPC.Networking.NetworkConnectionToWebProcess.SetRawCookie(0, {
firstParty: { string: ownOrigin },
url: { string: ownOrigin },
cookie: {
name: 'x',
value: 'y',
domain: '127.0.0.1',
path: '/',
partitionKey: '',
created: 0,
expires: {},
httpOnly: false,
secure: false,
session: true,
comment: '',
commentURL: { string: '' },
ports: [],
sameSite: 0,
},
shouldPartitionCookie: 0,
});
setTimeout(() => {
window.testRunner?.notifyDone();
}, 500);
};
</script>