LibWeb: Delete public constructor of FontFaceSet

The IDL definition in the spec does not have a public constructor, and
our test that relies on it was failing to run in other browsers.
This commit is contained in:
Aliaksandr Kalenik 2024-09-29 23:19:08 +02:00 committed by Andreas Kling
parent ee7b90b789
commit 814fa0682a
Notes: github-actions[bot] 2024-09-30 06:08:57 +00:00
2 changed files with 1 additions and 3 deletions

View file

@ -2,7 +2,7 @@
<script src="../include.js"></script>
<script>
test(() => {
const fontFaceSet = new FontFaceSet([]);
const fontFaceSet = document.fonts;
const fontFace = new FontFace("Hash Sans", 'url(../../../../Ref/assets/HashSans.woff)');
println("-- Empty FontFaceSet --");

View file

@ -17,8 +17,6 @@ enum FontFaceSetLoadStatus { "loading", "loaded" };
// https://drafts.csswg.org/css-font-loading/#fontfaceset
[Exposed=(Window,Worker)]
interface FontFaceSet : EventTarget {
constructor(sequence<FontFace> initialFaces);
setlike<FontFace>;
FontFaceSet add(FontFace font);
boolean delete(FontFace font);