WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
193148
Web Inspector: Add a Setting Toggle for Source Maps
https://bugs.webkit.org/show_bug.cgi?id=193148
Summary
Web Inspector: Add a Setting Toggle for Source Maps
Joseph Pecoraro
Reported
2019-01-04 11:04:09 PST
Add a Setting Toggle for Source Maps
Attachments
[PATCH] Proposed Fix
(4.58 KB, patch)
2019-01-04 11:06 PST
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2019-01-04 11:06:38 PST
Created
attachment 358338
[details]
[PATCH] Proposed Fix
Devin Rousso
Comment 2
2019-01-04 11:43:12 PST
Comment on
attachment 358338
[details]
[PATCH] Proposed Fix r=me, should we add a `console.assert(WI.settings.sourceMapsEnabled.value)` inside `WI.SourceMap` somewhere, for sanity's sake? Do we want to do anything for the case where the user disables source maps after having already downloaded and shown them (e.g. in Resources)?
Simon Fraser (smfr)
Comment 3
2019-01-04 12:01:20 PST
If I'm a naive user debugging JS stuff on a web site, how do I know that I need to enable or disable source maps?
Joseph Pecoraro
Comment 4
2019-01-04 12:07:09 PST
(In reply to Devin Rousso from
comment #2
)
> Comment on
attachment 358338
[details]
> [PATCH] Proposed Fix > > r=me, should we add a `console.assert(WI.settings.sourceMapsEnabled.value)` > inside `WI.SourceMap` somewhere, for sanity's sake? Do we want to do > anything for the case where the user disables source maps after having > already downloaded and shown them (e.g. in Resources)?
We should eventually do something where when the user toggles source maps it goes and hides / shows source maps stuff, but for now a reload is sufficient. (In reply to Simon Fraser (smfr) from
comment #3
)
> If I'm a naive user debugging JS stuff on a web site, how do I know that I > need to enable or disable source maps?
JavaScript developers should be familiar with the concept of source maps. If they are debugging their own content they should know, if they are debugging random content then its just something unfamiliar they would have to come across. The Web Inspector UI indicates SourceMaps uniquely in a few ways, which may help them recognize it is different.
Joseph Pecoraro
Comment 5
2019-01-04 13:01:11 PST
> (In reply to Simon Fraser (smfr) from
comment #3
) > > If I'm a naive user debugging JS stuff on a web site, how do I know that I > > need to enable or disable source maps? > > JavaScript developers should be familiar with the concept of source maps. If > they are debugging their own content they should know, if they are debugging > random content then its just something unfamiliar they would have to come > across. The Web Inspector UI indicates SourceMaps uniquely in a few ways, > which may help them recognize it is different.
In other words, learning about Source Maps is not much different than learning about some JS / CSS features you aren't familiar with.
WebKit Commit Bot
Comment 6
2019-01-04 13:27:41 PST
Comment on
attachment 358338
[details]
[PATCH] Proposed Fix Clearing flags on attachment: 358338 Committed
r239635
: <
https://trac.webkit.org/changeset/239635
>
WebKit Commit Bot
Comment 7
2019-01-04 13:27:43 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8
2019-01-04 13:28:53 PST
<
rdar://problem/47055858
>
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