Bug 140864
| Summary: | Web Inspector: Change $1, $2, $3, $4 to be about previous result in the REPL, not DOM nodes | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Timothy Hatcher <timothy> |
| Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
Timothy Hatcher
Lets change these weird things since no one in my unscientific poll (https://twitter.com/xeenon/status/559388400864591872) uses them.
We should assign previous values a number starting with $1 ($0 will still be the current selected DOM node). Anything not null or undefined (or 0?) should get assigned. If the value (strict equal) has a $n referencing it already, don't make a new one and reuse the previous $n. The $n should be shown to the user in the console for quick at-a-glance reference when typing new expressions.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/19592944>
Joseph Pecoraro
Oop, we did this already. Bug 142061.
*** This bug has been marked as a duplicate of bug 142061 ***