Then you gotta make sure it's properly sandboxed and resistant to the many various malicious attacks users and websites alike can launch...
I've often heard it said browsers are operating systems. In this day and age especially I don't think that's even much of an exaggeration.