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

Add deprecation notice to 3p iframe f.js #35350

Merged
merged 1 commit into from
Jul 23, 2021

Conversation

powerivq
Copy link
Contributor

As the first step of #35349, we send out deprecation notice to those using f.js

@@ -311,6 +312,11 @@ import {zen} from '#ads/vendors/zen';
import {zergnet} from '#ads/vendors/zergnet';
import {zucks} from '#ads/vendors/zucks';

user().error(
Copy link
Member

Choose a reason for hiding this comment

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

I think this will halt execution, is that what we want?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://github.com/ampproject/amphtml/blob/main/src/log.js#L315 user().error shouldn't throw. user().assert will. But you reminded me that this will trigger log entry, and might overstress AMP logging system. Changing to warn only.

Copy link
Member

Choose a reason for hiding this comment

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

Ah TIL thanks

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

Successfully merging this pull request may close these issues.

3 participants