Merge revision 913 changes:
- Fix inspector hook in V8Test.OnUncaughtExceptionDevTools (issue #736). git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1271@914 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
a3771028ce
commit
a2f8d7ae90
|
@ -1839,11 +1839,14 @@ class V8RendererTest : public ClientApp::RenderDelegate {
|
|||
// Call DevToolsLoaded() when DevTools window completed loading.
|
||||
std::string jsCode = "(function(){"
|
||||
" var oldLoadCompleted = InspectorFrontendAPI.loadCompleted;"
|
||||
" if (InspectorFrontendAPI._isLoaded) {"
|
||||
" window.DevToolsLoaded();"
|
||||
" } else {"
|
||||
" InspectorFrontendAPI.loadCompleted = function(){"
|
||||
" oldLoadCompleted.call(InspectorFrontendAPI);"
|
||||
" console.log('InspectorFrontendAPI.loadCompleted event fired');"
|
||||
" window.DevToolsLoaded();"
|
||||
" };"
|
||||
" }"
|
||||
"})();";
|
||||
|
||||
CefRefPtr<CefV8Value> retval;
|
||||
|
|
Loading…
Reference in New Issue