11cb0ef41Sopenharmony_ci<!DOCTYPE html> 21cb0ef41Sopenharmony_ci<meta charset="utf-8"> 31cb0ef41Sopenharmony_ci<title>Blob URL serialization (specifically the origin) in multi-global situations</title> 41cb0ef41Sopenharmony_ci<link rel="help" href="https://w3c.github.io/FileAPI/#unicodeBlobURL"> 51cb0ef41Sopenharmony_ci<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me"> 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ci<script src="/resources/testharness.js"></script> 81cb0ef41Sopenharmony_ci<script src="/resources/testharnessreport.js"></script> 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_ci<!-- this page is the entry global --> 111cb0ef41Sopenharmony_ci 121cb0ef41Sopenharmony_ci<iframe src="//{{domains[www]}}:{{location[port]}}/FileAPI/support/incumbent.sub.html"></iframe> 131cb0ef41Sopenharmony_ci 141cb0ef41Sopenharmony_ci<script> 151cb0ef41Sopenharmony_ci"use strict"; 161cb0ef41Sopenharmony_cisetup({ single_test: true }); 171cb0ef41Sopenharmony_cidocument.domain = "{{host}}"; 181cb0ef41Sopenharmony_ci 191cb0ef41Sopenharmony_ciwindow.onload = () => { 201cb0ef41Sopenharmony_ci const url = frames[0].createBlobURL(); 211cb0ef41Sopenharmony_ci const desired = "blob:{{location[scheme]}}://www1"; 221cb0ef41Sopenharmony_ci assert_equals(url.substring(0, desired.length), desired, 231cb0ef41Sopenharmony_ci "Origin should contain www1, from the current settings object"); 241cb0ef41Sopenharmony_ci done(); 251cb0ef41Sopenharmony_ci}; 261cb0ef41Sopenharmony_ci</script> 27