-
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
Make sentinel optional for iframe-helper #7307
Comments
That entire file got a little out of hand. 😳 |
Another place that could use this |
Would have caught this bug: https://github.com/ampproject/amphtml/blob/master/src/iframe-helper.js#L249-L250 |
Must be a rare race-condition (well, at least of ads as I assume they normally don't cache) otherwise #2942 would have been noticed again. |
This issue hasn't been updated in awhile. @jridgewell Do you have any updates? |
1 similar comment
This issue hasn't been updated in awhile. @jridgewell Do you have any updates? |
eh, not really needed. |
Currently
listenFor
iniframe-helper
is too tied to asentinel
which makes it unusable for listening topostMessages
that are not AMP-specific ( e.g. messages from YouTube iframes ).It would be nice if
sentinel
becomes optional so code can be reused for listening to arbitrary messages. It may make sense to useorigin
instead in cases wheresentinel
does not make sense.The text was updated successfully, but these errors were encountered: