Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Import change from Bug 1501791
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed Jan 3, 2019
1 parent c6c7490 commit 8289709
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/addon/browser_screenshots_ui_check.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ function promisePageActionViewChildrenVisible(panelViewNode) {
info("promisePageActionViewChildrenVisible waiting for a child node to be visible");
const dwu = window.windowUtils;
return BrowserTestUtils.waitForCondition(() => {
const bodyNode = panelViewNode.firstChild;
for (const childNode of bodyNode.childNodes) {
const bodyNode = panelViewNode.firstElementChild;
for (const childNode of bodyNode.children) {
const bounds = dwu.getBoundsWithoutFlushing(childNode);
if (bounds.width > 0 && bounds.height > 0) {
return true;
Expand Down

0 comments on commit 8289709

Please sign in to comment.