fune/browser/components/tabunloader/content/aboutUnloads.html
Toshihito Kikuchi 8c3951ba97 Bug 1725257 - Part 3. Implement about:unloads. r=NeilDeakin,fluent-reviewers,flod
The page contains
- a table to show the tabs and their attributes that `TabUnloader` considers
- a button to trigger `TabUnloader.unloadLeastRecentlyUsedTab()`

to visualize the behavior of `TabUnloader` and manually trigger it.

Differential Revision: https://phabricator.services.mozilla.com/D123988
2021-09-07 00:46:59 +00:00

60 lines
2.1 KiB
HTML

<!-- 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>
<html>
<head>
<title data-l10n-id="about-unloads-page-title"></title>
<meta http-equiv="Content-Security-Policy"
content="default-src chrome:; object-src 'none'"/>
<link rel="stylesheet"
href="chrome://global/skin/in-content/info-pages.css"/>
<link rel="stylesheet"
href="chrome://browser/content/tabunloader/aboutUnloads.css"/>
<link rel="localization" href="browser/aboutUnloads.ftl"/>
<link rel="localization" href="branding/brand.ftl"/>
<script src="chrome://browser/content/tabunloader/aboutUnloads.js">
</script>
</head>
<body>
<h1 data-l10n-id="about-unloads-page-title"></h1>
<p data-l10n-id="about-unloads-intro-1"></p>
<p data-l10n-id="about-unloads-intro-2"></p>
<div class="control-panel">
<div><span id="label-last-updated"></span></div>
<button id="button-unload"
data-l10n-id="about-unloads-button-unload"></button>
</div>
<table class="tab-table">
<thead>
<tr>
<th data-l10n-id="about-unloads-column-priority"/>
<th data-l10n-id="about-unloads-column-host"/>
<th data-l10n-id="about-unloads-column-last-accessed"/>
<th data-l10n-id="about-unloads-column-weight"/>
<th data-l10n-id="about-unloads-column-sortweight"/>
<th data-l10n-id="about-unloads-column-memory"/>
<th data-l10n-id="about-unloads-column-processes"/>
</tr>
</thead>
<tbody>
<tr id="no-unloadable-tab-message">
<td data-l10n-id="about-unloads-no-unloadable-tab"
colspan="8" ></td>
</tr>
</tbody>
</table>
<template name="tab-table-row">
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</template>
</body>
</html>