ericfs

Results comments of ericfs

Name was changed to "willLikelyUnload" as there is a small chance the unload won't happen.

Including it in the documentLoaded message would be good

Thanks for the report. As this seems specific to Google search. I'll file an internal issue for it.

I'm also not able to reproduce when using a viewer.

Thanks for taking this. It looks like only scrollTop is sent and not scrollHeight. Is it possible to get the height too?

scrollHeight would be helpful, if it's available, particularly to know when the scroll reaches the bottom, but I think we can manage without it.

I think it would be preferable, but I think I can work with whatever you can provide. Ideally a Viewer would know when the page is scrolled to the bottom,...

We have 2-way communication [sendMessage()](https://github.com/ampproject/amphtml/blob/master/src/service/viewer-impl.js#L940) can return a Promise which will contain the response from the viewer.

From the Viewer side, either a 1 step or 2 step protocol is fine. The handlers will be simple in either case. The one step approach just means there's one...