Checkboxes in the rule view get out of sync
Categories
(DevTools :: Inspector: Rules, defect, P2)
Tracking
(firefox-esr68 unaffected, firefox73 wontfix, firefox74 wontfix, firefox75 wontfix, firefox76 verified, firefox77 verified)
People
(Reporter: mtigley, Assigned: ntim)
References
(Depends on 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(2 files)
|
356.71 KB,
video/mp4
|
Details | |
|
47 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details | Review |
STR
- Open Rules view
- Uncheck any declaration and edit its value
- Enable the declaration again to apply.
Expected Results
The declaration should appear to be enabled
Actual Results
The declaration is crossed out.
| Reporter | ||
Comment 1•5 years ago
|
||
Comment 2•5 years ago
|
||
We may have regressed this when we started using <input type="checkbox"> elements (which have their own state) instead of a <div /> styled like a checkbox. When we programmatically change the state after editing a value, we probably don't change the input's checked attribute value.
Comment 3•5 years ago
|
||
Good hunch Florens, I just ran mozregression and it did confirm that this was a regression caused by bug 1491811.
Updated•5 years ago
|
| Assignee | ||
Comment 4•5 years ago
|
||
These places might need to change:
https://searchfox.org/mozilla-central/rev/49ed791eec93335abfe6c2880f84c324e73e47e6/devtools/client/inspector/rules/views/text-property-editor.js#928-934
https://searchfox.org/mozilla-central/rev/49ed791eec93335abfe6c2880f84c324e73e47e6/devtools/client/inspector/rules/views/text-property-editor.js#740-747
to use the JS .checked setter instead of the attribute.
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 6•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 8•5 years ago
|
||
(In reply to Tim Spurway [:tspurway] from comment #7)
:gl - did you want this to land in 76?
I have pushed the changes.
Comment 10•5 years ago
|
||
| bugherder | ||
Updated•5 years ago
|
Comment 11•5 years ago
|
||
The patch landed in nightly and beta is affected.
:ntim, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.
For more information, please visit auto_nag documentation.
| Assignee | ||
Comment 12•5 years ago
|
||
Comment on attachment 9133371 [details]
Bug 1618243 - Use checked property instead of attribute for rules view checkbox.
Beta/Release Uplift Approval Request
- User impact if declined: annoying bug for web developers, see comment 0
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: See comment 0
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Small straightforward patch
- String changes made/needed:
| Assignee | ||
Updated•5 years ago
|
Comment 13•5 years ago
|
||
Comment on attachment 9133371 [details]
Bug 1618243 - Use checked property instead of attribute for rules view checkbox.
Fixes a graphical glitch in rules view. Approved for 76.0b3.
Comment 14•5 years ago
|
||
| bugherder uplift | ||
Comment 15•5 years ago
|
||
I have managed to reproduce this issue using Firefox 75.0a1 (BuildId:20200226213903) on Windows 10 64bit.
This issue is verified fixed using Firefox 77.0a1 (BuildId:20200409131623) and Firefox 76.0b3 (BuildId:20200409223136) on Windows 10 64bit, macOS 10.14 and Ubuntu 18.04 64bit.
Description
•