How Browser-Based Web Proxies Work

How browser-based web proxies use service workers and URL rewriting, how they differ from traditional proxies, and where they break.