Add a warning when the overlay open promise does not resolve
Bug: Issue 10774 Change-Id: I18d945495204a0fb7fd53f6231223193572520c6
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user