mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibWeb: Add an Internals.headless attribute
This returns true if the browser is running in headless mode.
This commit is contained in:
Notes:
github-actions[bot]
2024-12-10 18:32:51 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/a44b18236cc Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2858 Reviewed-by: https://github.com/trflynn89
7
Tests/LibWeb/Text/input/Internals/headless.html
Normal file
7
Tests/LibWeb/Text/input/Internals/headless.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
println(`Browser is running headlessly: ${internals.headless}`);
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user