blob: 68ae879c74c62c5212587a682fff83fe96483f62 [file] [edit]
<!DOCTYPE html> <!-- webkit-test-runner [ IPCTestingAPIEnabled=true IgnoreInvalidMessageWhenIPCTestingAPIEnabled=false AttachmentElementEnabled=false ] -->
<title>Test that calling into attachmentElement specific methods, like RegisterAttachmentIdentifier, is disabled if AttachmentElementEnabled is false</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.IPC) {
IPC.sendMessage(
'UI',
IPC.webPageProxyID,
IPC.messages.WebPageProxy_RegisterAttachmentIdentifier.name,
[
{
type: 'String',
value: 'Some UUID'
}
]
);
asyncFlush('UI').then(() => {
console.log("Should Have Crashed!");
});
} else {
testRunner.notifyDone();
}
</script>
</body>