requestPermission() should not be exposed to workers. http://lists.w3.org/Archives/Public/public-whatwg-archive/2014Jul/thread.html#msg178