Bug 1720643 be consistent about using origin to separate subtest descriptions r=johannh DONTBUILD

The sandbox attribute recognizes a specific set of tokens.
https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-sandbox

Differential Revision: https://phabricator.services.mozilla.com/D120063
This commit is contained in:
Karl Tomlinson 2021-07-29 04:25:18 +00:00
Родитель f8d0c16d80
Коммит 3fb24d1106
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -59,8 +59,8 @@ runTest(async () => {
const src = origin + path;
is(await iframeGum({ src, sandbox: "allow-scripts" }),
"NotAllowedError", "gUM fails in sandboxed iframe " + origin);
is(await iframeGum({ src, sandbox: "allow-scripts allow-same-origin " + origin }),
"success", "gUM works in regular iframe");
is(await iframeGum({ src, sandbox: "allow-scripts allow-same-origin" }),
"success", "gUM works in regular iframe" + origin);
}
// Test gUM in sandboxed vs regular srcdoc iframe