Searching in Safari's Web Inspector breaks links in source

Originator:than.tibbetts
Number:rdar://12461082 Date Originated:09-Oct-2012 10:32 AM
Status:Open Resolved:
Product:Safari Product Version:Version 6.0.1 (8536.26.14)
Classification:Serious Bug Reproducible:Yes
 
09-Oct-2012 10:32 AM Nathaniel Tibbetts:
Summary: In Safari's Web Inspector, when searching for an arbitrary string in the source code view, any matches that occur within a link will break that link.

See: http://than.to/MaJG

The full path should be /wp-content/themes/pin/library/js/webtrends.load.js

But since the search matched on 'web', the active part of the URL is only /wp-content/themes/pin/library/js/

Steps to Reproduce:

1) Search for 'something' in source view.
2) Attempt to click on link with 'something' in the url

Expected Results:

Clicking on link with 'something' takes you to the URL specified in the href or src attribute.

Actual Results:

The link is divided on either side of the match of 'something' within the url.

Regression:

Notes:

09-Oct-2012 10:32 AM Nathaniel Tibbetts:
'Screen Shot 2012-10-09 at 10.30.43 AM.png' was successfully uploaded

Comments

Link UI

19-Jun-2013 02:21 PM: The link to file works as expected (and handy that it opens inside the Inspector window itself!)

However, there's still a UI issue after searching within source code.

Expected behavior: the URL should underline as a whole.

Observed behavior: In this example, the URL is split into 3 parts — the beginning of the URL, the string I searched for, and the end of the URL. Each piece underlines on hover independently.

SCREENSHOTS

Condition: I've searched for the string "webtre"

Here's the observed behavior with search highlighting: http://than.to/XiZX In this case I'm currently hovering over the first part of the URL, before the highlighted search string.

And here's the observed behavior without active search highlighting (after hitting the back button to view the aforelinked URL): http://than.to/WppQ

By than.tibbetts at June 19, 2013, 7:55 p.m. (reply...)

Apple suggests its fixed in latest seeds

14-Jun-2013 09:45 AM Apple Developer Bug Reporting Team : We believe this issue has been addressed in the latest Safari Seeds.

These are pre-release versions of Safari for OS X 10.7.x, 10.8.x and Mavericks (10.9).

By than.tibbetts at June 19, 2013, 7:01 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!