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
4 changed files with 1305 additions and 331 deletions

View file

@ -300,6 +300,10 @@
this.handleError(evt);
break;
case '_iconchange':
this.setSiteIcon();
break;
case '_locationchange':
this.hidePinDialogCard();
this.handleLocationChange();
@ -730,6 +734,7 @@
this.app.element.addEventListener('mozbrowsermetachange', this);
this.app.element.addEventListener('mozbrowserscrollareachanged', this);
this.app.element.addEventListener('_locationchange', this);
this.app.element.addEventListener('_iconchange', this);
this.app.element.addEventListener('_namechanged', this);
this.app.element.addEventListener('_securitychange', this);
this.app.element.addEventListener('_loading', this);
@ -789,6 +794,7 @@
this.app.element.removeEventListener('mozbrowsererror', this);
this.app.element.removeEventListener('mozbrowsermetachange', this);
this.app.element.removeEventListener('_locationchange', this);
this.app.element.removeEventListener('_iconchange', this);
this.app.element.removeEventListener('_namechanged', this);
this.app.element.removeEventListener('_loading', this);
this.app.element.removeEventListener('_loaded', this);
@ -1276,8 +1282,19 @@
return;
}
const generation = this.iconGeneration = (this.iconGeneration || 0) + 1;
const favicon = Object.keys(this.app.favicons || {}).find(href => {
try { return new URL(href).origin === new URL(this.app.config.url).origin; }
catch (_) { return false; }
});
if (favicon) {
this.siteIcon.style.backgroundImage = 'url(' + JSON.stringify(favicon) + ')';
this._currentIconUrl = favicon;
return;
}
this.app.getSiteIconUrl(ICON_SIZE)
.then(iconObject => {
if (generation !== this.iconGeneration) return;
// We compare the original icon URL, otherwise there is a flickering
// effect because a different object url is created each time.
if (this._currentIconUrl !== iconObject.originalUrl) {
@ -1286,6 +1303,7 @@
}
})
.catch((err) => {
if (generation !== this.iconGeneration) return;
this.siteIcon.style.backgroundImage = '';
this.app.debug('setSiteIcon, error from getSiteIcon: %s', err);
});

View file

@ -31,12 +31,10 @@
break;
case 'connected':
if (!this.manager.wifiManager.connectionInformation) {
return;
}
var level = Math.min(Math.floor(
this.manager.wifiManager
.connectionInformation.relSignalStrength / 20), 4);
var info = this.manager.wifiManager.connectionInformation;
var strength = info && info.relSignalStrength;
var level = Number.isFinite(strength) ?
Math.max(0, Math.min(4, Math.floor(strength / 20))) : 0;
this.show();
if (icon.dataset.connecting) {
delete icon.dataset.connecting;
@ -54,7 +52,7 @@
WifiIcon.prototype.view = function view() {
return `<div id="statusbar-wifi"
class="sb-icon sb-icon-wifi"
data-level="4" hidden
data-level="0" hidden
role="listitem">
</div>`;
};

View file

@ -117,9 +117,9 @@
var isManuallyRegular = activeApp && activeApp.url &&
activeApp.url.includes('private=0');
if (activeApp && (activeApp.isBrowser() || activeApp.isSearch())) {
activeApp.isPrivate = activeApp.hasOwnProperty('isPrivate') ?
activeApp.isPrivate :
(Browser.privateByDefault && !isManuallyRegular);
activeApp.isPrivate = activeApp.isPrivateBrowser() ||
(activeApp.hasOwnProperty('isPrivate') ? activeApp.isPrivate :
(Browser.privateByDefault && !isManuallyRegular));
activeApp.navigate(url);
return;
}

View file

@ -205,7 +205,8 @@
break;
case 'holdhome':
if (!this.locked) {
// The window manager also handles unlocks initiated outside this panel.
if (!(Service.query('locked') ?? this.locked)) {
return;
}