Steps to reproduce:
1. Close Web Inspector
2. Go to http://www.bbc.co.uk/ for instance
3. Select a word
4. Right-click a selection and select Inspect Element
Inspector window appears with body element selected, not the element selection was in.
NB! It works properly on the 2nd try.
It might be related to another report: https://bugs.webkit.org/show_bug.cgi?id=22511
This seems to be a regression related to Pavel's change to select the previous selected node on reload.
I see the Inspector select and reveal the "Inspect Element" node breifly then it jumps to the previous selected node. In the reporters case it was <body>. But I was reproducing this with a random element on the BBC's page.
Note: I was closing the Inspector each time. Making it happen every time.
The reporter kept the Inspector open, that is why it worked the second time.
Created attachment 46238 [details]
[PATCH] Proposed fix
Committing to http://svn.webkit.org/repository/webkit/trunk ...