WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
188954
[Apple Pay] PaymentRequest.show() should reject when an unsupported ApplePayRequest version is specified
https://bugs.webkit.org/show_bug.cgi?id=188954
Summary
[Apple Pay] PaymentRequest.show() should reject when an unsupported ApplePayR...
Andy Estes
Reported
2018-08-26 11:52:50 PDT
[Apple Pay] PaymentRequest.show() should reject when an unsupported ApplePayRequest version is specified
Attachments
Patch
(6.53 KB, patch)
2018-08-26 11:58 PDT
,
Andy Estes
no flags
Details
Formatted Diff
Diff
Patch
(6.66 KB, patch)
2018-08-26 17:55 PDT
,
Andy Estes
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Andy Estes
Comment 1
2018-08-26 11:58:46 PDT
Created
attachment 348098
[details]
Patch
Darin Adler
Comment 2
2018-08-26 13:58:18 PDT
Comment on
attachment 348098
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=348098&action=review
> Source/WebCore/Modules/applepay/ApplePayRequestBase.cpp:55 > + return Exception { InvalidAccessError, makeString("\"", String::number(version), "\" is not a supported version.") };
We should not need the String::number here as long as we include the StringConcatenateNumbers.h header. Doing it with an explicit call to String::number makes slower, larger code so we shouldn’t do it. I realize now you are just moving this code, but consider fixing it while moving it.
Andy Estes
Comment 3
2018-08-26 17:55:12 PDT
Created
attachment 348106
[details]
Patch
WebKit Commit Bot
Comment 4
2018-08-26 18:39:58 PDT
Comment on
attachment 348106
[details]
Patch Clearing flags on attachment: 348106 Committed
r235342
: <
https://trac.webkit.org/changeset/235342
>
WebKit Commit Bot
Comment 5
2018-08-26 18:39:59 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6
2018-08-26 18:40:16 PDT
<
rdar://problem/43739375
>
Darin Adler
Comment 7
2018-08-28 20:38:09 PDT
Comment on
attachment 348106
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=348106&action=review
> Source/WebCore/Modules/applepay/ApplePayRequestBase.cpp:56 > + return Exception { InvalidAccessError, makeString("\"", version, "\" is not a supported version.") };
Missed another opportunity to slightly improve the makeString call. We could use '"' instead of "\"" for the first argument and it’s possibly going to be ever so slightly more efficient.
Andy Estes
Comment 8
2018-08-29 19:27:18 PDT
(In reply to Darin Adler from
comment #7
)
> Missed another opportunity to slightly improve the makeString call. We could > use '"' instead of "\"" for the first argument and it’s possibly going to be > ever so slightly more efficient.
Fixed in
r235494
: <
https://trac.webkit.org/changeset/235494
>.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug