Created attachment 610020 [details] [diff] [review]
Stop using enablePrivilege, add an API to SpecialPowers to set a property to a value and use it to set xhr.channel.notificationsCallback.
Comment on attachment 610020 [details] [diff] [review]
r=me. I'm impressed there was no eval involved in the impl! ;)
Are you able to use |SpecialPowers.wrap(req).channel.notificationCallbacks = foo| instead?
I'll file a new bug to try the SpecialPowers.wrap method.