Bug 985796 - Port the permission settings API to WebIDL; r=bzbarsky