WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
241432
execCommand('undo') allows to restore closed tabs from HTML
https://bugs.webkit.org/show_bug.cgi?id=241432
Summary
execCommand('undo') allows to restore closed tabs from HTML
Ahmad Saleem
Reported
2022-06-08 13:20:39 PDT
Hi Team, I hope you are doing great. Based on below attached JS Fiddle, I am able to reopen closed tabs (CMD+SHIFT+T) behavior via HTML. JSFiddle -
https://jsfiddle.net/tg3njfmu/1/show/
HTML - <button onclick="document.execCommand('undo', false, null);">undo</button> NOTE - Tab Reopening does not work in "Private Mode". Expected Results - It should not reopen "closed tabs" like other browsers. Actual Results - In non-private window, it reopens "closed tabs". I noticed that Google Chrome team changed it deeming possible security risks in following commit -
https://chromium.googlesource.com/chromium/src/+/512508f0d652a006407ce66aafcd339b296a5276
Appreciate if you can look into this. Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-06-15 13:21:22 PDT
<
rdar://problem/95233426
>
Ryosuke Niwa
Comment 2
2022-06-23 22:14:55 PDT
This is a pretty well known old bug. Fixing it basically means we'll be decoupling WebKit's undo stack from application's NSUndoManager so there are some interesting implications.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug