Browsers are getting marginally better in defending against compromise, especially with the progression of better sandboxing techniques, but some browsers are doing a better job than others.
http://www.tomshardware.com/news/pwn2own-2017-microsoft-edge-hacked,33940.html