Bug 241934

Summary: Fix PushManager in ephemeral sessions
Product: WebKit Reporter: Ben Nham <nham>
Component: WebKit Misc.Assignee: Ben Nham <nham>
Status: RESOLVED FIXED    
Severity: Normal CC: nham, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Ben Nham 2022-06-23 14:12:25 PDT
PushManager does not behave correctly when invoked in an ephemeral session. For instance, PushManager.permissionState returns the underlying notification permission state for the origin in a persistent session, while PushManager.subscribe fails with an AbortError. This patch makes PushManager in ephemeral sessions behave as if a user had denied permissions to the origin.
Comment 1 Ben Nham 2022-06-23 14:13:35 PDT
rdar://94296914 (PushManager failures in private browsing should match real user behavior)
Comment 2 Ben Nham 2022-06-23 14:55:45 PDT
Pull request: https://github.com/WebKit/WebKit/pull/1744
Comment 3 EWS 2022-06-24 11:22:22 PDT
Committed 251831@main (0570dfb680f5): <https://commits.webkit.org/251831@main>

Reviewed commits have been landed. Closing PR #1744 and removing active labels.