Bug 1682919 - Avoid creating a new DisplayPortMargins object as a side effect of querying the displayport. r=tnikkel
DisplayPortMargins objects are only meant to be created when setting
display port margins, not when querying them, because the object's
constructor records the visual and layout scroll offsets at the time
of construction to use for adjusting the margins to be layout-relative.
Differential Revision:
https://phabricator.services.mozilla.com/D102075
[Window-TrustedTypes.tentative.html]
[factory = window.trustedTypes]
expected: FAIL
[factory construction fails]
expected: FAIL