nsTextStore::InterfaceTextAtSelection() is an interface method but it's called internally. And it's too big for a method. We should separate it.
Created attachment 660713 [details] [diff] [review] Patch This patch depends on the patch for bug 789703.
backed out due to found a mistake. (InsertTextAtSelection() doesn't return S_OK at the end of it) https://hg.mozilla.org/integration/mozilla-inbound/rev/9a42f760fcf3
relanded with the fix (return S_OK; at the end of InsertTextAtSelection()): https://hg.mozilla.org/integration/mozilla-inbound/rev/440f587c464a
https://hg.mozilla.org/mozilla-central/rev/440f587c464a Our merge script recognizes backouts, so you don't need to put a [leave open] on in that situation. In fact, doing so made it more confusing for me as to whether this needed resolving or not!