That's not entirely true.
Remembering history is also different from remembering permissions. Firefox should persist those independently from actual URLs in browsing history.
And there's a button in settings where you can disable permission prompts for notifications globally.