RESOLVED FIXED 189249
[Payment Request] PaymentResponse should have an onpayerdetailchange event handler
https://bugs.webkit.org/show_bug.cgi?id=189249
Summary [Payment Request] PaymentResponse should have an onpayerdetailchange event ha...
Andy Estes
Reported 2018-09-03 13:55:02 PDT
[Payment Request] PaymentResponse should have an onpayerdetailchange event handler
Attachments
Patch (7.81 KB, patch)
2018-09-03 13:57 PDT, Andy Estes
no flags
Patch (7.99 KB, patch)
2018-09-04 11:37 PDT, Andy Estes
no flags
Andy Estes
Comment 1 2018-09-03 13:57:08 PDT Comment hidden (obsolete)
Alex Christensen
Comment 2 2018-09-04 11:06:02 PDT
Comment on attachment 348790 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=348790&action=review > Source/WebCore/Modules/paymentrequest/PaymentResponse.cpp:57 > + return static_cast<ActiveDOMObject&>(m_request.get()).scriptExecutionContext(); You shouldn't need the static cast here. Just m_request->scriptExecutionContext() ought to work.
Andy Estes
Comment 3 2018-09-04 11:10:09 PDT
Comment on attachment 348790 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=348790&action=review >> Source/WebCore/Modules/paymentrequest/PaymentResponse.cpp:57 >> + return static_cast<ActiveDOMObject&>(m_request.get()).scriptExecutionContext(); > > You shouldn't need the static cast here. Just m_request->scriptExecutionContext() ought to work. Unfortunately not, because PaymentRequest overrides scriptExecutionContext() as a private member function. I guess I could change that to be public, or make PaymentResponse be a ContextDestructionObserver. I'll think about how I want to improve this. Thanks for reviewing!
WebKit Commit Bot
Comment 4 2018-09-04 11:22:07 PDT Comment hidden (obsolete)
Andy Estes
Comment 5 2018-09-04 11:37:06 PDT
WebKit Commit Bot
Comment 6 2018-09-04 12:14:30 PDT
Comment on attachment 348833 [details] Patch Clearing flags on attachment: 348833 Committed r235625: <https://trac.webkit.org/changeset/235625>
WebKit Commit Bot
Comment 7 2018-09-04 12:14:32 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8 2018-09-04 12:15:21 PDT
Note You need to log in before you can comment on or make changes to this bug.