Bug 238225

Summary: Web Inspector: Pressing Cmd-Z when editing CSS property restores browser tab
Product: WebKit Reporter: Nikita Vasilyev <nvasilyev>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

Description Nikita Vasilyev 2022-03-22 14:34:15 PDT
Steps:
1. Open a tab with apple.com
2. Close it
3. Open another tab with webkit.org
4. Inspect <body>
5. Add "font-size: 12px" CSS property
6. Press Cmd-Z several times

Expected:
"font-size: 12px" is removed

Actual:
"font-size: 12px" is removed, then Safari restores webkit.org tab.

Notes:
Perhaps adding event.preventDefault() to keydown/keypress/input event can fix this.
Comment 1 Radar WebKit Bug Importer 2022-03-22 14:34:53 PDT
<rdar://problem/90659656>
Comment 2 Nikita Vasilyev 2022-04-22 02:08:03 PDT Comment hidden (obsolete)