Bug 244311 - Debugger seemingly inspecting wrong scope? (sourcemap?)
Summary: Debugger seemingly inspecting wrong scope? (sourcemap?)
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-08-24 15:36 PDT by Sam Sneddon [:gsnedders]
Modified: 2022-08-25 10:44 PDT (History)
2 users (show)

See Also:


Attachments
screenshot of inspector (688.10 KB, image/png)
2022-08-24 15:36 PDT, Sam Sneddon [:gsnedders]
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Sneddon [:gsnedders] 2022-08-24 15:36:31 PDT
Created attachment 461846 [details]
screenshot of inspector

On https://expedia.com, find the `container.style.setProperty('--menu-offset-translate-x', offset + "px");`, add a breakpoint there, then click to open the date picker. Note the scope of the debugger does not match the code displayed, and trying to evaluate what seem like sensible variable names leads to them not being found.

I wonder if this is caused by a source map and it's merely showing me the minified variable names in the scope?
Comment 1 Radar WebKit Bug Importer 2022-08-25 10:44:28 PDT
<rdar://problem/99145471>