I want to make the code less confusing to make porting to WK2 easier.
Created attachment 87405 [details] proposed patch
Comment on attachment 87405 [details] proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=87405&action=review > Source/WebKit/mac/WebView/WebHTMLView.mm:5446 > + // Avoid an infinite loop that would occur if executing a command saved it back. I don’t understand the phrase “saved it back”. > Source/WebKit/mac/WebView/WebHTMLView.mm:5453 > + if (commands[i].commandName == "insertText:") I’d be happier if we didn’t have multiple copies of the insertText: selector string, and instead used a constant.
Committed <http://trac.webkit.org/changeset/82320>.