DevTools: [hosted mode] avoid exception in devtools_compatibility:addExtensions
The addExtensions command gets sent on front-end relatively early, when the onload event gets triggered. However, in case of hosted mode, the load event happens before actual InspectorFrontendHost initialization, since Runtime.js starts loading and evaling all the dependencies by itself. This patch protects from this race so that there's no annoying exception thrown. BUG=none R=dgozman Review-Url: https://codereview.chromium.org/2744573002 Cr-Commit-Position: refs/heads/master@{#455993}
Showing
Please register or sign in to comment