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

@ -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;