Bug 238225 - Web Inspector: Pressing Cmd-Z when editing CSS property restores browser tab
Summary: Web Inspector: Pressing Cmd-Z when editing CSS property restores browser tab
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-22 14:34 PDT by Nikita Vasilyev
Modified: 2022-05-03 14:16 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)