Currently some bad things can happen:
1. WebUIMessageHandlers can call JavaScript before the page's script is ready to receive these calls. (Sometimes observers that trigger JavaScript events are registered before the page is actually ready)
2. If the page is reloaded, the handler doesn't (always) know. This can be detected by using RenderViewReused, but isn't always.
Currently developers who write a new WebUIMessageHandler need to be very careful and follow a set of unenforced rules to prevent bad things from happening.
This bug is to add CHECKs and/or function changes to make it harder to write an incorrect handler.
Comment 1 by dbeam@chromium.org
, Apr 12 2016