DescriptionDevTools: [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}
Committed: https://chromium.googlesource.com/chromium/src/+/6a70689503a8565c13b842657227421fab3a2145
Patch Set 1 #
Total comments: 2
Patch Set 2 : address comments #Messages
Total messages: 15 (9 generated)
|