Firefox Tomorrow

web api instance method

WindowControlsOverlay: getTitlebarAreaRect() method

View on MDN ↗

Limited availability

The getTitlebarAreaRect() method of the WindowControlsOverlay interface queries the current geometry of the title bar area of the Progressive Web App window.

This only applies to Progressive Web Apps installed on desktop operating systems and which use the Window Controls Overlay API.

Syntax

getTitlebarAreaRect()

Parameters

None.

Return value

A DOMRect that provides the coordinates and size of the title bar area within the app’s content.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.