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
2 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();
@ -733,6 +737,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);
@ -792,6 +797,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);
@ -1279,8 +1285,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) {
@ -1289,6 +1306,7 @@
}
})
.catch((err) => {
if (generation !== this.iconGeneration) return;
// Installed apps have a manifest icon even when the Places cache has
// no favicon. Keep the original chrome slot and select a crisp source.
const icons = this.app.manifest && this.app.manifest.icons;

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>`;
};