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

Changeset 154681 in webkit


Ignore:
Timestamp:
Aug 27, 2013, 7:13:31 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Column Breakpoint not working, may be off by 1
​https://bugs.webkit.org/show_bug.cgi?id=120334

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2013-08-27
Reviewed by David Kilzer.

Source/WebCore:

JavaScriptCore changed to 1-based column numbers at some point. We
need to update the ScriptDebugger assumption that they were 0-based.

Test: inspector-protocol/debugger/column-breakpoint.html

  • bindings/js/ScriptDebugServer.cpp:

(WebCore::ScriptDebugServer::createCallFrame):
(WebCore::ScriptDebugServer::updateCallFrameAndPauseIfNeeded):

LayoutTests:

Write a protocol test for setting a breakpoint at a line:column.

  • inspector-protocol/debugger/column-breakpoint-expected.txt: Added.
  • inspector-protocol/debugger/column-breakpoint.html: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r154680 r154681  
     12013-08-27  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Column Breakpoint not working, may be off by 1
     4        https://bugs.webkit.org/show_bug.cgi?id=120334
     5
     6        Reviewed by David Kilzer.
     7
     8        Write a protocol test for setting a breakpoint at a line:column.
     9
     10        * inspector-protocol/debugger/column-breakpoint-expected.txt: Added.
     11        * inspector-protocol/debugger/column-breakpoint.html: Added.
     12
    1132013-08-27  Krzysztof Czech  <k.czech@samsung.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r154679 r154681  
     12013-08-27  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Column Breakpoint not working, may be off by 1
     4        https://bugs.webkit.org/show_bug.cgi?id=120334
     5
     6        Reviewed by David Kilzer.
     7
     8        JavaScriptCore changed to 1-based column numbers at some point. We
     9        need to update the ScriptDebugger assumption that they were 0-based.
     10
     11        Test: inspector-protocol/debugger/column-breakpoint.html
     12
     13        * bindings/js/ScriptDebugServer.cpp:
     14        (WebCore::ScriptDebugServer::createCallFrame):
     15        (WebCore::ScriptDebugServer::updateCallFrameAndPauseIfNeeded):
     16
    1172013-08-27  Antti Koivisto  <antti@apple.com>
    218
  • trunk/Source/WebCore/bindings/js/ScriptDebugServer.cpp

    r154038 r154681  
    391391void ScriptDebugServer::createCallFrame(const DebuggerCallFrame& debuggerCallFrame, intptr_t sourceID, int lineNumber, int columnNumber)
    392392{
    393     TextPosition textPosition(OrdinalNumber::fromOneBasedInt(lineNumber), OrdinalNumber::fromZeroBasedInt(columnNumber));
     393    TextPosition textPosition(OrdinalNumber::fromOneBasedInt(lineNumber), OrdinalNumber::fromOneBasedInt(columnNumber));
    394394    m_currentCallFrame = JavaScriptCallFrame::create(debuggerCallFrame, m_currentCallFrame, sourceID, textPosition);
    395395    if (m_lastExecutedSourceId != sourceID) {
    … …  
    405405        return;
    406406
    407     TextPosition textPosition(OrdinalNumber::fromOneBasedInt(lineNumber), OrdinalNumber::fromZeroBasedInt(columnNumber));
     407    TextPosition textPosition(OrdinalNumber::fromOneBasedInt(lineNumber), OrdinalNumber::fromOneBasedInt(columnNumber));
    408408    m_currentCallFrame->update(debuggerCallFrame, sourceID, textPosition);
    409409    pauseIfNeeded(debuggerCallFrame.dynamicGlobalObject());
Note: See TracChangeset for help on using the changeset viewer.