Bug 148487
| Summary: | JSContext Inspector: Add Resources scope bar to filter anonymous/named scripts | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Blaze Burg <bburg> |
| Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | Normal | CC: | bburg, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
Blaze Burg
There could easily be a barrage of anonymous scripts, might want to filter those out.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/22441559>
Nikita Vasilyev
Could you provide steps to inspect JSContext?
Joseph Pecoraro
(In reply to comment #2)
> Could you provide steps to inspect JSContext?
To inspect a JSContext, create an OS X Application that links JavaScriptCore.framework and creates a JSContext. Remember to add the "com.apple.security.get-task-allow" entitlement so that it can be remotely debugged by Safari.
Joseph Pecoraro
(In reply to comment #0)
> There could easily be a barrage of anonymous scripts, might want to filter
> those out.
I'm not sure I understand the concern. What types of anonymous scripts do you expect will show up in a JSContext?
Currently a JSContext inspector will only show named scripts. For example:
- -[JSContext evaluateScript:withSourceURL]
- JSEvaluateScript(...sourceURL...)
- script with "//# sourceURL=name" directive
All other scripts won't appear by default, and I'm not sure they can be made to show.
Perhaps this bug is behaves correctly?