Add a warning when the overlay open promise does not resolve

Bug: Issue 10774
Change-Id: I18d945495204a0fb7fd53f6231223193572520c6
This commit is contained in:
Ben Rohlfs
2020-01-20 10:43:26 +01:00
parent b07d40a32e
commit efe3c04eac

View File

@@ -104,6 +104,12 @@
fn.call(this);
} else if (iters++ < AWAIT_MAX_ITERS) {
step.call(this);
} else {
// TODO(crbug.com/gerrit/10774): Once this is confirmed as the root
// cause of the bug, fix it by either making sure to resolve the fn
// function or find a better way to listen on the overlay being
// shown.
console.warn('gr-overlay _awaitOpen failed to resolve');
}
}, AWAIT_STEP);
};