Refactor Notification::permission to follow the same code path as Permissions::query
Pull request: https://github.com/WebKit/WebKit/pull/2982
*** Bug 243501 has been marked as a duplicate of this bug. ***
<rdar://problem/98458251>