⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 120470 in webkit


Ignore:
Timestamp:
Jun 15, 2012, 9:48:21 AM (14 years ago)
Author:
loislo@chromium.org
Message:

Web Inspector: CRASH when DebuggerAgent.setBreakpoint was called twice for the same location.
https://bugs.webkit.org/show_bug.cgi?id=89225

Reviewed by Pavel Feldman.

  • inspector/InspectorDebuggerAgent.cpp:

(WebCore::InspectorDebuggerAgent::setBreakpoint):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r120469 r120470  
     12012-06-15  Ilya Tikhonovsky  <loislo@chromium.org>
     2
     3        Web Inspector: CRASH when DebuggerAgent.setBreakpoint was called twice for the same location.
     4        https://bugs.webkit.org/show_bug.cgi?id=89225
     5
     6        Reviewed by Pavel Feldman.
     7
     8        * inspector/InspectorDebuggerAgent.cpp:
     9        (WebCore::InspectorDebuggerAgent::setBreakpoint):
     10
    1112012-06-08  Alexander Pavlov  <apavlov@chromium.org>
    212
  • trunk/Source/WebCore/inspector/InspectorDebuggerAgent.cpp

    r114636 r120470  
    274274
    275275    String breakpointId = scriptId + ':' + String::number(lineNumber) + ':' + String::number(columnNumber);
    276     if (m_breakpointIdToDebugServerBreakpointIds.find(breakpointId) != m_breakpointIdToDebugServerBreakpointIds.end())
    277         return;
     276    if (m_breakpointIdToDebugServerBreakpointIds.find(breakpointId) != m_breakpointIdToDebugServerBreakpointIds.end()) {
     277        *errorString = "Breakpoint at specified location already exists.";
     278        return;
     279    }
    278280    ScriptBreakpoint breakpoint(lineNumber, columnNumber, condition);
    279281    actualLocation = resolveBreakpoint(breakpointId, scriptId, breakpoint);
Note: See TracChangeset for help on using the changeset viewer.