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 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta charset="utf-8">
window.onerror = (message, source, lineno) => {
dump(`TEST-UNEXPECTED-FAIL | getInfo | ${source}, line ${lineno}: ${message}\n`);
<script type="text/javascript" src="/talos-powers/content/TalosPowersContent.js"></script>
<title>shutdown script</title>
<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}`);
TalosPowersContent.goQuitApplication(true /* waitForStartupFinished */);