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

@ -46,7 +46,20 @@ export class VulpesChild extends JSWindowActorChild {
const params = Cu.cloneInto(data, {});
params.contextId = native.browsingContext.id;
if (params.operation === 'geometry') {
const rect = native.getBoundingClientRect();
const bounds = native.getBoundingClientRect();
const left = Math.max(0, bounds.left);
let top = Math.max(0, bounds.top);
if (this.document.location.hostname === 'system.localhost') {
const bar = this.document.getElementById('statusbar');
if (bar?.checkVisibility({checkOpacity:true, checkVisibilityCSS:true})) {
const header = bar.getBoundingClientRect();
if (header.top <= top && header.width > 0) top = Math.max(top, header.bottom);
}
}
// Gaia's collapsing toolbar can scroll the iframe above the viewport.
// Hit-test and position the native view within the same visible rectangle.
const rect = {left, top, width: Math.min(win.innerWidth, bounds.right) - left,
height: Math.min(win.innerHeight, bounds.bottom) - top};
const unobscured = frameUnobscured(this.document, native, rect);
params.geometry = {
left: rect.left + win.mozInnerScreenX,