There are two functions for obtaining the permission state of the Notifications API. We need to provide support for both to ensure compatibility with web standards. This patch ensures that they follow the same code path since having two different paths is unnecessary and hurts maintainability.
*** This bug has been marked as a duplicate of bug 243502 ***