WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
161456
Web Inspector: Resources with unsaved changes should have a dimmed icon
https://bugs.webkit.org/show_bug.cgi?id=161456
Summary
Web Inspector: Resources with unsaved changes should have a dimmed icon
Nikita Vasilyev
Reported
2016-08-31 13:59:41 PDT
Created
attachment 287539
[details]
[Image] Proposed change Chrome DevTools do it in their Sources tab. I think we should do the same for our Resources and Debugger tabs, and also for the Styles sidebar.
Attachments
[Image] Proposed change
(69.08 KB, image/png)
2016-08-31 13:59 PDT
,
Nikita Vasilyev
no flags
Details
Xcode Darkens
(31.17 KB, image/png)
2016-10-19 14:34 PDT
,
Timothy Hatcher
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2016-08-31 14:00:13 PDT
<
rdar://problem/28102546
>
Devin Rousso
Comment 2
2016-08-31 14:35:06 PDT
+1, but there is a slight issue with this in that the current definition of InspectorFrontendHost::save does not actually return whether the save was completed or not. If we don't care about that (or if it's not possible), then I imagine this just being the following: 1. Add another member variable to SourceCode called lastSavedRevision 2. Add getter for isModified that checks if lastSavedRevision !== currentRevision 3. Change the displayName getter to add "*" if isModified is true
Joseph Pecoraro
Comment 3
2016-08-31 15:04:42 PDT
(In reply to
comment #2
)
> +1, but there is a slight issue with this in that the current definition of > InspectorFrontendHost::save does not actually return whether the save was > completed or not.
I think it actually should call through to: InspectorFrontendAPI.savedURL Which is currently unimplemented: InspectorFrontendAPI = { ... savedURL: function(url) { // Not used yet. }, ... } The frontend host (the person who injected InspectorFrontendHost) communicates with the inspector page by calling InspectorFrontendAPI methods. So the contract for InspectorFrontendHost.save will eventually response with a InspectorFrontendAPI.savedURL. It is not a perfect API by any means, and totally changeable.
Timothy Hatcher
Comment 4
2016-10-19 10:16:20 PDT
I wouldn't use an asterisks. On Mac the convention is to have a dimmed icon.
Devin Rousso
Comment 5
2016-10-19 14:22:12 PDT
(In reply to
comment #4
)
> I wouldn't use an asterisks. On Mac the convention is to have a dimmed icon.
How would a dimmed icon work for the styles panel? Currently, the icon is dimmed if the user "disables" the rule (which comments all the properties). Would we not want to bother with that and instead implement something akin to <
https://webkit.org/b/161965
>.
Timothy Hatcher
Comment 6
2016-10-19 14:33:48 PDT
(In reply to
comment #5
)
> (In reply to
comment #4
) > > I wouldn't use an asterisks. On Mac the convention is to have a dimmed icon. > > How would a dimmed icon work for the styles panel? Currently, the icon is > dimmed if the user "disables" the rule (which comments all the properties). > Would we not want to bother with that and instead implement something akin > to <
https://webkit.org/b/161965
>.
I should have said darken, not dim.
Timothy Hatcher
Comment 7
2016-10-19 14:34:06 PDT
Created
attachment 292111
[details]
Xcode Darkens
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug