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
|
@ -1838,13 +1838,16 @@ class V8RendererTest : public ClientApp::RenderDelegate {
|
|||
|
||||
// Call DevToolsLoaded() when DevTools window completed loading.
|
||||
std::string jsCode = "(function(){"
|
||||
" var oldLoadCompleted = InspectorFrontendAPI.loadCompleted;"
|
||||
" InspectorFrontendAPI.loadCompleted = function(){"
|
||||
" oldLoadCompleted.call(InspectorFrontendAPI);"
|
||||
" console.log('InspectorFrontendAPI.loadCompleted event fired');"
|
||||
" window.DevToolsLoaded();"
|
||||
" };"
|
||||
"})();";
|
||||
" var oldLoadCompleted = InspectorFrontendAPI.loadCompleted;"
|
||||
" if (InspectorFrontendAPI._isLoaded) {"
|
||||
" window.DevToolsLoaded();"
|
||||
" } else {"
|
||||
" InspectorFrontendAPI.loadCompleted = function(){"
|
||||
" oldLoadCompleted.call(InspectorFrontendAPI);"
|
||||
" window.DevToolsLoaded();"
|
||||
" };"
|
||||
" }"
|
||||
"})();";
|
||||
|
||||
CefRefPtr<CefV8Value> retval;
|
||||
CefRefPtr<CefV8Exception> exception;
|
||||
|
|
Loading…
Reference in New Issue