Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 65e2cb8d03b9c7e47bb37a06871987dae1d3d450
      
https://github.com/WebKit/WebKit/commit/65e2cb8d03b9c7e47bb37a06871987dae1d3d450
  Author: Devin Rousso <[email protected]>
  Date:   2026-10-05 (Mon, 05 Oct 2026)

  Changed paths:
    A 
LayoutTests/inspector/debugger/source-map-inline-script-stepping-expected.txt
    A LayoutTests/inspector/debugger/source-map-inline-script-stepping.html
    A LayoutTests/inspector/model/source-map-inline-script-expected.txt
    A LayoutTests/inspector/model/source-map-inline-script.html
    M Source/WebInspectorUI/UserInterface/Models/SourceCodeLocation.js
    M Source/WebInspectorUI/UserInterface/Models/SourceMapResource.js

  Log Message:
  -----------
  Web Inspector: wrong source code location shown for inline script with source 
map
https://bugs.webkit.org/show_bug.cgi?id=319032

Reviewed by Timothy Hatcher.

Make sure that the offset of the `<script>` in the `.html` is undone when 
creating a location.

* Source/WebInspectorUI/UserInterface/Models/SourceMapResource.js:
(WI.SourceMapResource.prototype.createSourceCodeLocation):
* Source/WebInspectorUI/UserInterface/Models/SourceCodeLocation.js:
(WI.SourceCodeLocation.prototype.resolveMappedLocation):

* LayoutTests/inspector/model/source-map-inline-script.html: Added.
* LayoutTests/inspector/model/source-map-inline-script-expected.txt: Added.
* LayoutTests/inspector/debugger/source-map-inline-script-stepping.html: Added.
* 
LayoutTests/inspector/debugger/source-map-inline-script-stepping-expected.txt: 
Added.

Canonical link: https://commits.webkit.org/322747@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to