mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
Automatic update from web-platform-testsPaymentHandler: Fix a crash when creating event object with empty data
The following codes cause crashes in current implementation.
- new CanMakePaymentEvent("canmakepaymentevent", {});
- new PaymentRequestEvent("paymentrequestevent", {});
This patch fixes the problem and fixes/adds WPT tests.
Bug: none
Change-Id: I95375f1148d69a17075d393990e3726ad2bf1cf3
Reviewed-on: https://chromium-review.googlesource.com/1070957
Commit-Queue: Jinho Bang <[email protected]>
Reviewed-by: Ganggui Tang <[email protected]>
Cr-Commit-Position: refs/heads/master@{#563903}
--
wpt-commits: 1dc612f2ed6a6bec861a90ad9bfa9a4336165dcd
wpt-pr: 11146
8 lines
183 B
JavaScript
8 lines
183 B
JavaScript
importScripts('/resources/testharness.js');
|
|
|
|
test(() => {
|
|
assert_false('CanMakePaymentEvent' in self);
|
|
}, 'CanMakePaymentEvent constructor must not be exposed in worker');
|
|
|
|
done();
|