Source code

Revision control

Copy as Markdown

Other Tools

<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this file,
- You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<meta charset="utf-8">
<head>
<script>
window.onerror = (message, source, lineno) => {
dump(`TEST-UNEXPECTED-FAIL | getInfo | ${source}, line ${lineno}: ${message}\n`);
};
</script>
<script type="text/javascript" src="/talos-powers/content/TalosPowersContent.js"></script>
<title>shutdown script</title>
</head>
<script type="text/javascript">
addEventListener("load", async () => {
await TalosPowers.loadPromise;
var devicePixelRatio = window.devicePixelRatio;
dump(`__metrics\n\tScreen width/height: ${screen.width}/${screen.height}`);
if (devicePixelRatio != 1) {
dump(` (scaled from ${screen.width * devicePixelRatio}/${screen.height * devicePixelRatio})`);
}
dump(`\n\tcolorDepth: ${screen.colorDepth}\n`);
dump(`\tBrowser inner width/height: ${window.innerWidth}/${window.innerHeight}\n`);
// JMAHER: this is temporarily commented out because this hangs the fennec browser
// dump(`\tBrowser outer width/height: ${window.outerWidth}/${window.outerHeight}`);
dump("\n__metrics\n");
TalosPowersParent.exec("dumpAboutSupport");
TalosPowersContent.goQuitApplication(true /* waitForStartupFinished */);
});
</script>
<body></body>
</html>