diff --git a/content-security-policy/sandbox/meta-element.sub.html b/content-security-policy/sandbox/meta-element.sub.html
index cd8da8f14c4ad7..716d50496580ae 100644
--- a/content-security-policy/sandbox/meta-element.sub.html
+++ b/content-security-policy/sandbox/meta-element.sub.html
@@ -10,7 +10,7 @@
// https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-http-equiv-content-security-policy
// `sandbox` directives must be ignored when delivered via ``.
test(() => {
- assert_equals(location.origin, "{{location[scheme]}}://{{location[host]}}");
+ assert_equals(window.origin, "{{location[scheme]}}://{{location[host]}}");
}, "Document shouldn't be sandboxed by ");
// Note: sandbox directive for workers are not yet specified.