RESOLVED FIXED Bug 162115
Web Inspector: Color picker in Style sidebar stops working after 1st color change
https://bugs.webkit.org/show_bug.cgi?id=162115
Summary Web Inspector: Color picker in Style sidebar stops working after 1st color ch...
Joseph Pecoraro
Reported 2016-09-17 00:32:55 PDT
Summary: Color picker in Style sidebar stops working after 1st color change Steps to Reproduce: 1. Inspect an element with a color property 2. Click color swatch to bring up the editor 3. Change color once => CSS updates, page updates 4. Change color again => Nothing happens. Notes: - Sequence of events seems to be: => InlineSwatch ValueChanged => codeMirror.replaceRange(...) => codeMirror content changed => update backend (inform of style changes) => domnodestyles update PropertiesChanged => CSSStyleDeclarationTextEditor _propertiesChanged => clear markers + create new inline swatches When new inline swatches are created the UI cannot recover. The popover is orphaned. It sends events but the CSSStyleDeclarationTextEditor has nothing to update, and the original inline swatch's elements have been removed and replaced so the updates have no visible changes. Simple solution may be to just not recreate markers when actively editing.
Attachments
[PATCH] Proposed Fix (8.75 KB, patch)
2016-09-17 00:46 PDT, Joseph Pecoraro
no flags
Radar WebKit Bug Importer
Comment 1 2016-09-17 00:33:28 PDT
Joseph Pecoraro
Comment 2 2016-09-17 00:46:24 PDT
Created attachment 289163 [details] [PATCH] Proposed Fix
Blaze Burg
Comment 3 2016-09-19 04:09:37 PDT
Comment on attachment 289163 [details] [PATCH] Proposed Fix r=me Man, we need UI tests.
WebKit Commit Bot
Comment 4 2016-09-19 04:31:49 PDT
Comment on attachment 289163 [details] [PATCH] Proposed Fix Clearing flags on attachment: 289163 Committed r206092: <http://trac.webkit.org/changeset/206092>
WebKit Commit Bot
Comment 5 2016-09-19 04:31:53 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.