Skip to content
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

Merged
merged 1 commit into from
Mar 19, 2016

Conversation

dvoytenko
Copy link
Contributor

Fixes #2630.

@dvoytenko dvoytenko changed the title Ensure that all extensions are processed [WIP] Ensure that all extensions are processed Mar 18, 2016
@dvoytenko dvoytenko changed the title [WIP] Ensure that all extensions are processed Ensure that all extensions are processed Mar 19, 2016
@dvoytenko
Copy link
Contributor Author

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this needed?

Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed for now.

@cramforce
Copy link
Member

LGTM with some comments.

* @param {function()} callback
*/
export function waitForChild(parent, checkFunc, callback) {
if (checkFunc()) {
Copy link
Member

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@erwinmombay
Copy link
Member

LGTM per @cramforce requests

dvoytenko added a commit that referenced this pull request Mar 19, 2016
Ensure that all extensions are processed
@dvoytenko dvoytenko merged commit 5cdbf40 into ampproject:master Mar 19, 2016
@dvoytenko dvoytenko deleted the head1 branch March 19, 2016 21:35
@cramforce
Copy link
Member

Downintegrate into canary?

@dvoytenko
Copy link
Contributor Author

In canary now.

@apaleslimghost
Copy link

Is this fix live? We believe we've seen #2630 again today.

@dvoytenko
Copy link
Contributor Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants