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

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

Issue 150220: DevTools: Set up utility context earlier (prevent from crash). (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 | « webkit/glue/devtools/debugger_agent_impl.cc ('k') | webkit/glue/devtools/tools_agent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/devtools/js/devtools.js
===================================================================
--- webkit/glue/devtools/js/devtools.js (revision 19806)
+++ webkit/glue/devtools/js/devtools.js (working copy)
@@ -110,24 +110,21 @@
/**
* @param {string} url Url frame navigated to.
- * @param {bool} topLevel True iff top level navigation occurred.
* @see tools_agent.h
* @private
*/
-devtools.ToolsAgent.prototype.frameNavigate_ = function(url, topLevel) {
- if (topLevel) {
- this.reset();
- // Do not reset Profiles panel.
- var profiles = null;
- if ('profiles' in WebInspector.panels) {
- profiles = WebInspector.panels['profiles'];
- delete WebInspector.panels['profiles'];
- }
- WebInspector.reset();
- if (profiles != null) {
- WebInspector.panels['profiles'] = profiles;
- }
+devtools.ToolsAgent.prototype.frameNavigate_ = function(url) {
+ this.reset();
+ // Do not reset Profiles panel.
+ var profiles = null;
+ if ('profiles' in WebInspector.panels) {
+ profiles = WebInspector.panels['profiles'];
+ delete WebInspector.panels['profiles'];
}
+ WebInspector.reset();
+ if (profiles != null) {
+ WebInspector.panels['profiles'] = profiles;
+ }
};
« no previous file with comments | « webkit/glue/devtools/debugger_agent_impl.cc ('k') | webkit/glue/devtools/tools_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698