Bug 159027

Summary: Web Inspector: Editing source links is inconsistent
Product: WebKit Reporter: Chris Chiera <chris>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bburg, inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Showing casing the html and styles boxes in the web inspector. none

Description Chris Chiera 2016-06-22 11:00:46 PDT
In Chrome/Chromium (all versions), when in Web Inspector HTML box clicking on a src="" url lets you edit the text and by default selects all the text. The same functionality occurs when editing a src"" int he style box.

In Webkit/Safari (all versions), when in the Web Inspection HTML box clicking on a src="" url opens the file in the resource center. Clicking on a src="" in the style side box lets you edit the text but does not select the all the text. 

Clicking on a source link in the html box or style box of safari should both have a consistent result such as allowing you to edit or opening in the resource center. I believe Chrome's decisions of allowing to edit (and selecting the text by default) makes the most sense, and the context menu then should have an option for opening the resource in the resource center like Chrome. But the most important part is that it's consistent.
Comment 1 Radar WebKit Bug Importer 2016-06-22 11:01:18 PDT
<rdar://problem/26947447>
Comment 2 BJ Burg 2016-06-22 13:53:52 PDT
It is unclear what UI and views you are referring to. Please include some screenshots.
Comment 3 Chris Chiera 2016-06-22 14:09:56 PDT
Created attachment 281868 [details]
Showing casing the html and styles boxes in the web inspector.
Comment 4 Chris Chiera 2016-06-22 14:10:56 PDT
Sure thing! So when you open web inspector in Chrome, Chromnium, Safari, Webkit or Safari Preview by default there are two boxes, one on the left for html and one on the right for styles.

I've included a screenshot with arrows pointing to both. Let me know if I can clarify further.