
When quickly reloading DevTools, on-load messages from frontend like Console.enable are dispatched from both page loads, but only the last batch (from the last reload) should be dispatched. Otherwise, backend sees messages with the same id, and frontend receives multiple responses, some of them even before load producing "dispatchMessage is undefined" error. Also, reloading frontend violates an assert in DevToolsHost.cpp because of no proper cleanup in WebDevToolsFrontendImpl. Drive-by: cleaning up WebDevToolsFrontend and DevToolsHost API. BUG=566929 Review URL: https://codereview.chromium.org/1504763004 Cr-Commit-Position: refs/heads/master@{#363726}
Content is the core code needed to render a page using a multi-process sandboxed browser. Developer documentation: http://www.chromium.org/developers/content-module