Execution of some editing commands could trigger a call to selectedRange that internally calls executeSavedKeypressCommands creating an infinite recursion.
<rdar://problem/9239370>
Created attachment 89281 [details] Patch
Comment on attachment 89281 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=89281&action=review > Source/WebKit2/UIProcess/API/mac/WKView.mm:1183 > + // We could be called again if the execution of one command triggers a call to selectedRange. I would add: "In this case, the state is up to date, and we don't need to execute any more saved commands to return a result"
(In reply to comment #3) > (From update of attachment 89281 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=89281&action=review > > > Source/WebKit2/UIProcess/API/mac/WKView.mm:1183 > > + // We could be called again if the execution of one command triggers a call to selectedRange. > > I would add: "In this case, the state is up to date, and we don't need to execute any more saved commands to return a result" Will do. thank you!
http://trac.webkit.org/changeset/83655