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

Side by Side Diff: Source/core/inspector/InspectorDebuggerAgent.cpp

Issue 458933002: Fix ScriptPreprocessor leak in inspector test case of LayoutTest. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 4 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 unified diff | Download patch
« no previous file with comments | « Source/bindings/core/v8/ScriptDebugServer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 void InspectorDebuggerAgent::disable() 155 void InspectorDebuggerAgent::disable()
156 { 156 {
157 m_state->setObject(DebuggerAgentState::javaScriptBreakpoints, JSONObject::cr eate()); 157 m_state->setObject(DebuggerAgentState::javaScriptBreakpoints, JSONObject::cr eate());
158 m_state->setLong(DebuggerAgentState::pauseOnExceptionsState, ScriptDebugServ er::DontPauseOnExceptions); 158 m_state->setLong(DebuggerAgentState::pauseOnExceptionsState, ScriptDebugServ er::DontPauseOnExceptions);
159 m_state->setString(DebuggerAgentState::skipStackPattern, ""); 159 m_state->setString(DebuggerAgentState::skipStackPattern, "");
160 m_state->setLong(DebuggerAgentState::asyncCallStackDepth, 0); 160 m_state->setLong(DebuggerAgentState::asyncCallStackDepth, 0);
161 m_instrumentingAgents->setInspectorDebuggerAgent(0); 161 m_instrumentingAgents->setInspectorDebuggerAgent(0);
162 162
163 scriptDebugServer().clearBreakpoints(); 163 scriptDebugServer().clearBreakpoints();
164 scriptDebugServer().clearCompiledScripts(); 164 scriptDebugServer().clearCompiledScripts();
165 scriptDebugServer().clearPreprocessor();
165 stopListeningScriptDebugServer(); 166 stopListeningScriptDebugServer();
166 clear(); 167 clear();
167 168
168 if (m_listener) 169 if (m_listener)
169 m_listener->debuggerWasDisabled(); 170 m_listener->debuggerWasDisabled();
170 171
171 m_skipAllPauses = false; 172 m_skipAllPauses = false;
172 } 173 }
173 174
174 bool InspectorDebuggerAgent::enabled() 175 bool InspectorDebuggerAgent::enabled()
(...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1446 1447
1447 void InspectorDebuggerAgent::trace(Visitor* visitor) 1448 void InspectorDebuggerAgent::trace(Visitor* visitor)
1448 { 1449 {
1449 visitor->trace(m_injectedScriptManager); 1450 visitor->trace(m_injectedScriptManager);
1450 visitor->trace(m_listener); 1451 visitor->trace(m_listener);
1451 InspectorBaseAgent::trace(visitor); 1452 InspectorBaseAgent::trace(visitor);
1452 } 1453 }
1453 1454
1454 } // namespace blink 1455 } // namespace blink
1455 1456
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/ScriptDebugServer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698