[Webkit-unassigned] [Bug 271484] New: Web Inspector: Undoing and redoing style rule addition is flaky

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 22 12:34:53 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=271484

            Bug ID: 271484
           Summary: Web Inspector: Undoing and redoing style rule addition
                    is flaky
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: qianlangchen at apple.com
                CC: inspector-bugzilla-changes at group.apple.com

Created attachment 470518

  --> https://bugs.webkit.org/attachment.cgi?id=470518&action=review

Video demo: Undo and redo are flaky

The inspector's style details panel normally supports undoing and redoing style edits, triggered via keyboard shortcuts Command+Z for undo and Command+Shift+Z for redo.

It also supports inserting a new style rule, accessed via the "plus" button on the bottom-left of the style details panel.

However, after inserting a style rule, it takes more than one presses of Command+Z to perform an undo of the rule creation, and it can't redo the rule creation at all (pressing Command+Shift+Z does nothing).

---

To reproduce:
   1. Go to https://google.com
   2. Open inspector and and inspect the <body> element
   3. Click the "plus" button on the bottom-left of the style details panel
   4. Click on an empty space to un-focus the selector input (leaving the default selector text "body")
   5. Press Command+Z and notice it may take multiple presses to undo the rule creation
   6. Press Command+Shift+Z to try to redo and notice it won't redo

See attached video demo.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240322/9c415dda/attachment.htm>


More information about the webkit-unassigned mailing list