WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
162113
Web Inspector: Scope sidebar shows "Closure" instead of "Local" when paused in anonymous function
https://bugs.webkit.org/show_bug.cgi?id=162113
Summary
Web Inspector: Scope sidebar shows "Closure" instead of "Local" when paused i...
Joseph Pecoraro
Reported
2016-09-16 21:43:44 PDT
Summary: Scope sidebar shows "Closure" instead of "Local" when paused in anonymous function Test: <script> (function f() { let a; var x; debugger; })(); </script> Steps to Reproduce: 1. Inspect test page 2. Reload to trigger pause 3. Show Scope sidebar => Top scope says "Closure Variables" but should say "Local Variables" Notes: - We are comparing the empty string function name against `null` when merging scopes and trying to detect the top as Local
Attachments
[PATCH] Proposed Fix
(11.00 KB, patch)
2016-09-16 21:45 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2016-09-16 21:44:09 PDT
<
rdar://problem/28348954
>
Joseph Pecoraro
Comment 2
2016-09-16 21:45:53 PDT
Created
attachment 289160
[details]
[PATCH] Proposed Fix
Blaze Burg
Comment 3
2016-09-19 03:09:28 PDT
Comment on
attachment 289160
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=289160&action=review
r=me
> LayoutTests/inspector/debugger/paused-scopes.html:101 > + WebInspector.debuggerManager.singleFireEventListener(WebInspector.DebuggerManager.Event.CallFramesDidChange, (event) => {
Could probably use .awaitEvent(...).then here.
WebKit Commit Bot
Comment 4
2016-09-19 12:01:34 PDT
Comment on
attachment 289160
[details]
[PATCH] Proposed Fix Clearing flags on attachment: 289160 Committed
r206105
: <
http://trac.webkit.org/changeset/206105
>
WebKit Commit Bot
Comment 5
2016-09-19 12:01:38 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug