mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
28 lines
701 B
HTML
28 lines
701 B
HTML
<!DOCTYPE html>
|
|
<script>
|
|
try {
|
|
const availableProps = [
|
|
"locationbar",
|
|
"menubar",
|
|
"personalbar",
|
|
"scrollbars",
|
|
"statusbar",
|
|
"toolbar",
|
|
];
|
|
|
|
let results = [];
|
|
|
|
for (const propName of availableProps) {
|
|
const windowProp = window[propName];
|
|
results.push(
|
|
`${propName} is BarProp: ${windowProp instanceof BarProp} visible: ${
|
|
windowProp.visible
|
|
}`
|
|
);
|
|
}
|
|
|
|
window.opener.postMessage(results.join("\n"), "*");
|
|
} catch (e) {
|
|
window.opener.postMessage(`ERROR: ${e}`, "*");
|
|
}
|
|
</script>
|