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!
<rdar://problem/95233426>
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.