Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Unified Diff: webkit/glue/devtools/js/debugger_agent.js

Issue 140059: DevTools: Mute aftercompile events until 'scripts' result is ready.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/devtools/js/debugger_agent.js
===================================================================
--- webkit/glue/devtools/js/debugger_agent.js (revision 18900)
+++ webkit/glue/devtools/js/debugger_agent.js (working copy)
@@ -100,7 +100,12 @@
this.requestNumberToBreakpointInfo_ = {};
this.currentCallFrame_ = null;
this.requestSeqToCallback_ = {};
-
+ if (WebInspector.panels &&
+ WebInspector.panels.scripts.element.parentElement) {
+ // Scripts panel has been enabled already.
+ devtools.tools.getDebuggerAgent().initializeScriptsCache();
+ }
+
// Profiler isn't reset because it contains no data that is
// specific for a particular V8 instance. All such data is
// managed by an agent on the Render's side.
@@ -669,6 +674,10 @@
* @param {devtools.DebuggerMessage} msg
*/
devtools.DebuggerAgent.prototype.handleAfterCompileEvent_ = function(msg) {
+ if (!this.scriptsCacheInitialized_) {
+ // Ignore scripts delta if main request has not been issued yet.
+ return;
+ }
var script = msg.getBody().script;
// Ignore scripts from other tabs.
if (!this.isScriptFromInspectedContext_(script, msg)) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698