diff options
| author | y.takahashi <eai@mizle.net> | 2023-11-22 10:19:30 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-22 10:19:30 +0900 |
| commit | c6ed06d783a2d49ca029cdf5284150bbfd3c9976 (patch) | |
| tree | 4f1d39180b30ef199c1d23d4595c546d6adcb5a6 /packages/frontend/test | |
| parent | fix: verifymail.io APIの設定項目が反映されない (#12399) (diff) | |
| download | sharkey-c6ed06d783a2d49ca029cdf5284150bbfd3c9976.tar.gz sharkey-c6ed06d783a2d49ca029cdf5284150bbfd3c9976.tar.bz2 sharkey-c6ed06d783a2d49ca029cdf5284150bbfd3c9976.zip | |
twitter埋め込みのsandbox属性にallow-popups-to-escape-sandboxを追加 (#12400)
Co-authored-by: unarist <m.unarist@gmail.com>
Diffstat (limited to 'packages/frontend/test')
| -rw-r--r-- | packages/frontend/test/url-preview.test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/test/url-preview.test.ts b/packages/frontend/test/url-preview.test.ts index 811f07d9c7..f760de9274 100644 --- a/packages/frontend/test/url-preview.test.ts +++ b/packages/frontend/test/url-preview.test.ts @@ -150,7 +150,7 @@ describe('MkUrlPreview', () => { }); assert.exists(iframe, 'iframe should exist'); assert.strictEqual(iframe?.getAttribute('allow'), 'fullscreen;web-share'); - assert.strictEqual(iframe?.getAttribute('sandbox'), 'allow-popups allow-scripts allow-same-origin'); + assert.strictEqual(iframe?.getAttribute('sandbox'), 'allow-popups allow-popups-to-escape-sandbox allow-scripts allow-same-origin'); }); test('Loading a post in iframe', async () => { @@ -159,6 +159,6 @@ describe('MkUrlPreview', () => { }); assert.exists(iframe, 'iframe should exist'); assert.strictEqual(iframe?.getAttribute('allow'), 'fullscreen;web-share'); - assert.strictEqual(iframe?.getAttribute('sandbox'), 'allow-popups allow-scripts allow-same-origin'); + assert.strictEqual(iframe?.getAttribute('sandbox'), 'allow-popups allow-popups-to-escape-sandbox allow-scripts allow-same-origin'); }); }); |