-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure that all extensions are processed #2639
Conversation
Ready for review: /cc @erwinmombay @jridgewell @mkhatib @sriramkrish85 |
@@ -64,6 +65,7 @@ export function waitForExtensions(win) { | |||
*/ | |||
export function includedExtensions(win) { | |||
const document = win.document; | |||
dev.assert(document.body); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems very useful. The good thing about dev.assert
is that one can have many of them without guilt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed for now.
LGTM with some comments. |
* @param {function()} callback | ||
*/ | ||
export function waitForChild(parent, checkFunc, callback) { | ||
if (checkFunc()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pass in parent to checkFunc
to follow all other predicate
type signatures. not useful in this case since you have a ref to parent
but could see it being useful in other scenarios. (might also be useful to pass it into callback)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
LGTM per @cramforce requests |
Ensure that all extensions are processed
Downintegrate into canary? |
In canary now. |
Is this fix live? We believe we've seen #2630 again today. |
@quarterto Yes, it's live. And our monitoring shows no errors of this kind again. If you do think it's happening - let me know and I'll do more research in case there might be something else. |
Fixes #2630.