mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Disallow inserting @import rules into a constructed stylesheet
This commit is contained in:
committed by
Andreas Kling
parent
b0f57a2785
commit
811033ec19
Notes:
sideshowbarker
2024-07-17 22:01:16 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/811033ec19 Pull-request: https://github.com/SerenityOS/serenity/pull/23327 Reviewed-by: https://github.com/awesomekling
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
try {
|
||||
const sheet = new CSSStyleSheet();
|
||||
sheet.insertRule(`@import url("style-sheet-with-byte-order-mark.css")`);
|
||||
println("FAIL");
|
||||
} catch (e) {
|
||||
println(`Inserting an @import rule into a constructed stylesheet throws: ${e.name}`);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user