Bug 267480
| Summary: | PKPaymentMethod fails strict mode decoding when using private label cards | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Abrar Rahman Protyasha <a_protyasha> |
| Component: | WebKit Misc. | Assignee: | Abrar Rahman Protyasha <a_protyasha> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | achristensen, a_protyasha, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Abrar Rahman Protyasha
When using private label cards (such as the TJX card) with Apple Pay on the web, PKPaymentMethod fails strict mode decoding with this error message:
```
NSKU decode failed for object of classes <private>: value for key 'paymentPass' was of unexpected class 'PKPaymentPass' (0x1de85df38) [/System/Library/PrivateFrameworks/PassKitCore.framework].
Allowed classes are:
{(
"'PKSecureElementPass' (0x1de864310) [/System/Library/PrivateFrameworks/PassKitCore.framework]"
)}
```
We should probably fall back to secure mode for the "WebKit running on macOS down-level" configs that will never see the upstream PassKit fix for this bug.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Abrar Rahman Protyasha
rdar://120005200
Abrar Rahman Protyasha
Pull request: https://github.com/WebKit/WebKit/pull/22755
EWS
Committed 273108@main (96136876b937): <https://commits.webkit.org/273108@main>
Reviewed commits have been landed. Closing PR #22755 and removing active labels.