Bug 243269
Summary: | [Apple Pay] add a `features` that allows for direct detection of Apple Pay features (similar to the more general `version`) | ||
---|---|---|---|
Product: | WebKit | Reporter: | Devin Rousso <hi> |
Component: | New Bugs | Assignee: | Devin Rousso <hi> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | hi, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Devin Rousso
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
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Devin Rousso
<rdar://problem/97529973>
Devin Rousso
Pull request: https://github.com/WebKit/WebKit/pull/2793
EWS
Committed 253276@main (0f50dd00e346): <https://commits.webkit.org/253276@main>
Reviewed commits have been landed. Closing PR #2793 and removing active labels.