Bug 148678
Summary: | Web Inspector: visual style editor fields should restore previous value when invalid inputs are entered | ||
---|---|---|---|
Product: | WebKit | Reporter: | Blaze Burg <bburg> |
Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Normal | CC: | hi, inspector-bugzilla-changes, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=148580 | ||
Bug Depends on: | |||
Bug Blocks: | 147563 |
Blaze Burg
This is a followup bug to https://bugs.webkit.org/show_bug.cgi?id=148580.
We shouldn't be storing the input state in the DOM, it should be kept in the widget class separately and synced when valid values are committed.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/22518919>
Devin Rousso
(In reply to comment #0)
> We shouldn't be storing the input state in the DOM, it should be kept in the
> widget class separately and synced when valid values are committed.
I agree with you that we should have member variables for the current value, but I am not sure about "restore previous value when invalid inputs are entered". What exactly do you mean by that? Would it be something like "display: foo;"? If so, I don't think we should just revert to the previous value because that would remove any support for other browsers/custom css. Maybe something like a warning saying "this won't work"...
Devin Rousso
The Visual styles sidebar was removed in r236298 <https://webkit.org/b/189807>.