29 lines
470 B
HTML
29 lines
470 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<script>
|
|
|
|
function runTest() {
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
|
|
x.src = "data:video/mp4;base64,AA";
|
|
y.focus();
|
|
window.onfocus = z.oncontextmenu;
|
|
}
|
|
|
|
function eventHandler() {
|
|
x1.innerHTML = "";
|
|
}
|
|
</script>
|
|
|
|
<body onload=runTest()>
|
|
<p>The test passes if no crash.</p>
|
|
<time id="x1">
|
|
<label id="z" oncontextmenu="eventHandler()" ></label>
|
|
<iframe id="y"></iframe>
|
|
<embed id="x"></embed>
|
|
|
|
</body>
|
|
</html>
|