LibWeb: Add an Internals.headless attribute

This returns true if the browser is running in headless mode.
This commit is contained in:
Tim Ledbetter 2024-12-09 21:53:31 +00:00 committed by Tim Flynn
commit a44b18236c
Notes: github-actions[bot] 2024-12-10 18:32:51 +00:00
5 changed files with 17 additions and 0 deletions

View file

@ -42,4 +42,6 @@ interface Internals {
DOMString getComputedRole(Element element);
DOMString getComputedLabel(Element element);
unsigned short getEchoServerPort();
readonly attribute boolean headless;
};