The Permissions API is now enabled in Firefox 52. We should come up with a plan to neuter its fingerprinting potential and implement it for Tor Browser 7.0:
Note here I am enabling isolation of permissions both by first party domain and container ID. As Tor Browser doesn't use containers, the change to container behavior should have no effect. But I took this approach (changing both things) because it makes writing a test with Mozilla's existing isolation test framework straightforward. If Mozilla decides to apply first-party isolation to permissions, but not to apply it to containers, then they will need to modify the framework. (Although my recommendation would be to isolate permissions by containers as well.)
r=brade, r=mcs
Kathy and I are far from experts on this aspect of Firefox, but the patches look good and we successfully ran the tests on OSX. We also ran the tests without the other portion of the patch and saw that 2 tests failed due to lack of isolation (as expected).