* SUMMARY "Log Value" of a value inside of an array, does not log the innermost value. * STEPS TO REPRODUCE 1. js> myObject = { array: [1, {name:"Joe", age:123}] }; dir(myObject) 2. Expand all the way to the inner object 3. Right click "name" and choose "Log Value" => Expected "Joe", but got the containing object {name: "Joe", age: 123}
<rdar://problem/20558139>
This happens because the GeneralTreeElement event handlers are "useCapture" and thus capture top down. Removing capture mode things work as expected.
Reusing this to improve context menus in the console in general.
Created attachment 250898 [details] [PATCH] Proposed Fix
Comment on attachment 250898 [details] [PATCH] Proposed Fix r=me Any intuition for why this used to be a capturing handler?
(In reply to comment #5) > Comment on attachment 250898 [details] > [PATCH] Proposed Fix > > r=me > > Any intuition for why this used to be a capturing handler? Joe asked me about it before posting this and I had no clue. Likely legacy and a mistake.
http://trac.webkit.org/changeset/182909