After r261018, there’s no need to go from Document -> Frame -> Editor if we are already sure that the Frame exists; we can simplify this to just Document -> Editor.
Created attachment 399055 [details] Patch
Comment on attachment 399055 [details] Patch r=me
Comment on attachment 399055 [details] Patch Thanks for the review!
Committed r261500: <https://trac.webkit.org/changeset/261500> All reviewed patches have been landed. Closing bug and clearing flags on attachment 399055 [details].