Avoid calling JavaScript of devtools WebContents too early

It would craete a context that window.location is about:blank
This commit is contained in:
Cheng Zhao 2015-06-05 11:58:27 +08:00
parent 9a9bc5530e
commit 56747e975e
2 changed files with 25 additions and 7 deletions

View file

@ -167,6 +167,7 @@ class InspectableWebContentsImpl :
DevToolsContentsResizingStrategy contents_resizing_strategy_;
gfx::Rect devtools_bounds_;
bool can_dock_;
bool frontend_loaded_;
scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_;