Release Vulpes OS Preview 26 with Gecko 161.0 and Tundra 0.2.0
This commit is contained in:
parent
3a1fba4efe
commit
e241a42d2f
1 changed files with 1305 additions and 331 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue