| <!DOCTYPE html> <!-- webkit-test-runner [ IPCTestingAPIEnabled=true IgnoreInvalidMessageWhenIPCTestingAPIEnabled=false ] --> |
| <title>Test that calling updateQuotaBasedOnSpaceUsageForTesting (which should be blocked behind AllowTestOnlyIPC) kills the calling process if AllowTestOnlyIPC isn't set</title> |
| <script src="../../resources/ipc.js"></script> |
| <script src="../../resources/testharness.js"></script> |
| <script src="../../resources/testharnessreport.js"></script> |
| <body> |
| <script> |
| testRunner.dumpAsText(); |
| |
| if (window.internals && window.IPC) { |
| window.internals.updateQuotaBasedOnSpaceUsage(); |
| |
| asyncFlush('Networking').then(() => { |
| console.log("Should Have Crashed!"); |
| }); |
| } else { |
| testRunner.notifyDone(); |
| } |
| </script> |
| </body> |