When calling body.setAsync while composing a message in Outlook for Mac where the html contains a table with a horizontal rule in one of the cells, the app will crash.
Typical scenario is getting the body contents, modifying, then putting back. The original message has the offending content which causes the crash.
Expected to not crash but, instead, either handle or return an error.
Crashes when setting such html
Call body.setAsync with the following html content: <table><tr><td><hr></td></tr></table>
Removing the <hr> will not cause a crash, and, an <hr> outside of a table does not cause a crash.
Reproduced in 16.28 - originally found in 16.27 before updating.
This is causing users on the Mac platform to lose trust in using our add-in to augment their messages.
<table><tr><td><hr></td></tr></table>
I have submitted through crash reporter. Not sure how to reference.
Thanks for reporting this @jacobx1! Looping in @macOutlookExtensibility to follow-up.
Hello @jacobx1 , thanks for reporting! we can repro this bug and currently we do not have a workaround for this apart from suggesting you to keep
@AnjanaValsan My current workaround is to strip <hr /> in tables by using the selector table hr. I am only doing this on the Mac client. I decided the formatting loss is better than having the client crash.
I'm looking forward to a fix so I can remove this workaround 馃槃
We have fixed the bug and the fix should be available in latest builds.