Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/canvas/element/manual/draw-element-image/privacy/subframe-cross-origin-background-image-tentative.https.sub.html - WPT Dashboard Interop Dashboard
<!DOCTYPE HTML>
<html>
<head>
<title>drawElementImage in a cross-origin iframe draws that origin's background images</title>
<link rel="author" href="mailto:schenney@chromium.org">
<meta name="assert" value="A canvas in a cross-origin iframe should be able to draw a background image from the same origin, but not the top-level origin.">
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
</head>
<body>
<iframe id=crossOrigin width=100 height=100 src="https://{{hosts[alt][www]}}:{{ports[https][0]}}/html/canvas/element/manual/draw-element-image/privacy/support/subframe-with-canvas-background-png-images.https.sub.html"></iframe>
<script>
fetch_tests_from_window(crossOrigin.contentWindow);
</script>
</body>
</html>