Added new CSS rules don't immediately show in the Changes panel if using the auto-generated selector
Categories
(DevTools :: Inspector: Changes, defect, P1)
Tracking
(firefox67+ verified, firefox68 verified)
People
(Reporter: vlucaci, Assigned: rcaliman)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
453.11 KB,
image/gif
|
Details | |
47 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
|
Details | Review |
Affected versions
- 67.0b8
- 68.0a1(2019-04-04)
Affected platforms
- Windows 10x64
- Ubuntu 16.04
- macOS 10.14
Steps to reproduce
- Launch FF.
- Go to any website (e.g: Wikipedia.com)
- Inspect any element from the page.
- In the second pane, right click and select Add New Rule.
- Click enter or defocus the selector field.
Expected result
- The newly added string is displayed inside the Changes pane.
Actual result
- The newly added string is not displayed inside the Changes pane.
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Introduces tracking for newly created CSS rules in the PageStyleActor.
Adds a boolean flag, isNew
, to the tracked rule in the Changes Redux store. Using this flag, render the new rule's selector in the React component as added (plus sign, green background). Ensure selector changes for thew new rule always overwrite the original selector (fix for Bug 1542288) instead of erroneously showing the original selector as removed.
Removes obsolete documentation for "changeType" from the tracked rule in the Changes Redux store. This was never used.
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
•
|
||
The patch for this bug includes a fix for Bug 1542288. Once this bug lands, we can close the other too.
Pushed by rcaliman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0d0d5b67b2cc Track newly added CSS rules in the Changes panel. r=pbro
Comment 5•5 years ago
|
||
bugherder |
Comment 6•5 years ago
|
||
Tracking as a portential uplift for beta 15, Bogdan could somebody in your team verify this bug in nightly today? Thanks
Assignee | ||
Comment 7•5 years ago
|
||
Comment on attachment 9059528 [details]
Bug 1542213 - Track newly added CSS rules in the Changes panel. r=pbro
Beta/Release Uplift Approval Request
- User impact if declined: In the Changes panel, tracking selectors of newly added CSS rules may confuse users to believe the CSS rule had existed before. This makes developers' lives harder when trying to reconcile the changes in their editor when exporting/copying. This patch fixes the issue and clearly marks new CSS rules in the Changes panel.
Lifting this to beta gives users a more solid experience in the upcoming release of Track Changes M2 reaching Firefox Release soon.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This patch reuses existing infrastructure to track newly added CSS Rules. The changes made aren't expected to negatively impact existing tracking.
- String changes made/needed:
Assignee | ||
Comment 8•5 years ago
•
|
||
Has the fix been verified in Nightly?: Yes
Sorry, I didn't realize this wasn't yet verified in Nightly.
Reporter | ||
Comment 9•5 years ago
|
||
Hello ,
Confirming this issue as verified fixed in 68.0a1 (2019-04-24)(20190424215525) on Windows 10x64, macOS 10.14 and Ubuntu 16.04x64.
Comment 10•5 years ago
|
||
Comment on attachment 9059528 [details]
Bug 1542213 - Track newly added CSS rules in the Changes panel. r=pbro
P1, fix covered by tests and verified on Nightly by QA, uplift approved for 67 beta 15, thanks.
Comment 11•5 years ago
|
||
bugherder uplift |
Assignee | ||
Comment 12•5 years ago
|
||
Thank you all for the uplift support!
Reporter | ||
Comment 13•5 years ago
|
||
Hello,
Confirming this issue as verified fixed on 67.0b15(20190429125729)on Windows 10x64, macOS 10.14 and Ubuntu 16.04
Description
•