Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
-
CI results over the last 21 days
- Manifest: dom/base/test/browser.toml
/* Any copyright is dedicated to the Public Domain.
"use strict";
add_task(async function test_sizeToContent_in_parent_process_tab() {
let width = window.outerWidth;
let height = window.outerHeight;
await BrowserTestUtils.withNewTab(
async browser => {
ok(!browser.isRemoteBrowser, "chrome:// document loads in the parent");
browser.contentWindow.sizeToContent();
await new Promise(r => requestAnimationFrame(() => setTimeout(r, 0)));
is(window.outerWidth, width, "outerWidth unchanged");
is(window.outerHeight, height, "outerHeight unchanged");
}
);
});