Porting Chrome add-on -> Firefox: page permissions not granted by default?

How would that work for the issue mentioned in the bug? (Where to put the notification)

Also, usually permission API is only ever able to be called in a user input event. Would doing a call to the background check work? I didn’t try but I’m sure it would (or should) fail, otherwise extension could request permissions without user input this way.