Bug 243269 - [Apple Pay] add a `features` that allows for direct detection of Apple Pay features (similar to the more general `version`)
Summary: [Apple Pay] add a `features` that allows for direct detection of Apple Pay fe...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-07-27 14:58 PDT by Devin Rousso
Modified: 2022-08-09 16:52 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Rousso 2022-07-27 14:58:48 PDT
we currently offer the `version` as an indirect way for developers to answer the question "does the current device support this feature" since the developer can look up the version that supports that feature <https://developer.apple.com/documentation/apple_pay_on_the_web/apple_pay_on_the_web_version_history>

while there's nothing wrong with this, it's a pretty inflexible (monotonically increasing integer) and not directly clear approach (requires looking at documentation to know what something means)

we can instead have a list of `features` that contains an `enum`, allowing developers to call out desired features by name, allowing for more more options and avoiding having to look at documentation
Comment 1 Devin Rousso 2022-07-27 14:59:02 PDT
<rdar://problem/97529973>
Comment 2 Devin Rousso 2022-07-27 15:07:29 PDT
Pull request: https://github.com/WebKit/WebKit/pull/2793
Comment 3 EWS 2022-08-09 16:52:25 PDT
Committed 253276@main (0f50dd00e346): <https://commits.webkit.org/253276@main>

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