Release Vulpes OS Preview 26 with Gecko 161.0 and Tundra 0.2.0

This commit is contained in:
OverSu 2026-12-01 22:22:00 +01:00
commit e241a42d2f

View file

@ -115,17 +115,26 @@ window.addEventListener('load', async () => {
// their existing phone dimensions unless the launcher requests fullscreen.
{
const screen = document.getElementById('screen');
const homeButton = document.getElementById('home');
const homeBar = document.getElementById('home-bar');
if (!keypadHost && Services.env.get('VULPES_TUNDRA') !== '1') {
// A sleeping Gaia screen is inert. Handle wake in the desktop window.
const wake = () => {
if (screen.inert) Runtime.broadcast('screen-on', {}, 'system');
};
window.addEventListener('activate', wake);
window.addEventListener('pointerdown', wake, true);
window.addEventListener('keydown', wake, true);
}
const resize = () => {
const landscape = window.innerWidth > window.innerHeight;
const overlay = keypadHost || document.documentElement.hasAttribute('home-active');
const overlay = keypadHost || document.documentElement.matches('[boot-splash], [recents], [power-splash], [home-active], [lock-surface]');
const width = Math.max(1, window.innerWidth - (landscape && !overlay ? 44 : 0));
const height = Math.max(1, window.innerHeight - (!landscape && !overlay ? 44 : 0));
screen.style.width = width + 'px';
screen.style.height = height + 'px';
browser.style.width = width + 'px';
browser.style.height = height + 'px';
homeButton.style.width = landscape ? '44px' : window.innerWidth + 'px';
homeBar.style.width = landscape ? '44px' : window.innerWidth + 'px';
// Flush the embedder's layout before notifying the remote document.
// On Wayland its initial viewport can otherwise remain 0x0 until an
// unrelated chrome layout query, leaving Gaia and video unpainted.
@ -134,7 +143,15 @@ window.addEventListener('load', async () => {
};
window.addEventListener('resize', resize);
window.setHomeSurface = (home) => {
window.setHomeSurface = (home, powerSplash, trayOverHome, recents, dark, appId, lockscreen, bootSplash) => {
document.documentElement.removeAttribute('awaiting-gaia');
document.documentElement.toggleAttribute('boot-splash', bootSplash);
document.documentElement.toggleAttribute('recents', recents);
document.documentElement.toggleAttribute('dark-surface', dark);
document.documentElement.toggleAttribute('lock-surface', lockscreen);
document.documentElement.dataset.navApp = lockscreen || recents || home ? '' : appId;
document.documentElement.toggleAttribute('tray-over-home', home && trayOverHome);
document.documentElement.toggleAttribute('power-splash', powerSplash);
document.documentElement.toggleAttribute('home-active', home);
resize();
};
@ -196,10 +213,11 @@ window.addEventListener('load', async () => {
held = false;
home.title = 'Accueil · maintenir pour les applications ouvertes (Ctrl+Espace)';
home.addEventListener('pointerdown', (event) => {
if (event.button !== 0) return;
if (event.button !== 0 || !Runtime.power.screenEnabled) return;
held = false;
home.setPointerCapture(event.pointerId);
holdTimer = setTimeout(() => {
if (!Runtime.power.screenEnabled) return;
held = true;
Views.hideAll();
Runtime.broadcast('holdhome', {}, 'system');
@ -210,7 +228,7 @@ window.addEventListener('load', async () => {
home.addEventListener('pointerup', cancel);
home.addEventListener('pointercancel', cancel);
home.addEventListener('click', () => {
if (!held) {Views.hideAll();Runtime.broadcast('home', {}, 'system');}
if (!held && Runtime.power.screenEnabled) {Views.hideAll();Runtime.broadcast('home', {}, 'system');}
held = false;
});
window.addEventListener('keydown', (event) => {