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

@ -9,12 +9,9 @@ export const Views = {
uri?.filePath !== '/index.html') {
throw new Error('SCREENSHOT_NOT_AVAILABLE');
}
const image = await context.currentWindowGlobal.drawSnapshot(null, 1, 'white');
const doc = context.top.embedderElement?.ownerDocument;
if (!doc) {
image.close();
throw new Error('SCREENSHOT_NOT_AVAILABLE');
}
if (!doc?.defaultView) throw new Error('SCREENSHOT_NOT_AVAILABLE');
const image = await context.currentWindowGlobal.drawSnapshot(null, doc.defaultView.devicePixelRatio, 'white');
const canvas = doc.createElementNS('http://www.w3.org/1999/xhtml', 'canvas');
canvas.width = image.width;
canvas.height = image.height;
@ -211,6 +208,15 @@ export const Views = {
if (flags & Ci.nsIWebProgressListener.STATE_STOP) {
emit('loadend', { backgroundColor: 'rgb(255, 255, 255)' });
emit('titlechange', browser.contentTitle || browser.currentURI.spec);
const page = browser.browsingContext?.currentWindowGlobal;
if (page && ['https', 'http'].includes(browser.currentURI.scheme)) {
page.getActor('WebInput').sendQuery('Vulpes:PageIcon').then(icon => {
if (!icon || browser.browsingContext?.currentWindowGlobal !== page) return;
const href = new URL(icon.href);
if (href.origin === new URL(browser.currentURI.spec).origin)
emit('iconchange', {href:href.href, sizes:String(icon.sizes || '')});
}).catch(() => {});
}
// Replacing a navigation cancels the previous request normally.
if (!Components.isSuccessCode(status) && status !== Cr.NS_BINDING_ABORTED)
emit('error', { type: 'other', status });