fix(payment): initialize native payment update events

This commit is contained in:
ldm0
2026-11-19 00:59:46 +08:00
parent 27f198cb7d
commit b3047b2ea4
3 changed files with 4 additions and 147 deletions
@@ -116,34 +116,10 @@ const CONSTRUCTOR_SPECS_BEFORE_STREAMS: &[ConstructorSpec] = &[
interface: web_api_interfaces::MediaKeyMessageEvent::DESCRIPTOR,
kind: ConstructorKind::MediaKeyMessageEvent,
},
ConstructorSpec {
interface: web_api_interfaces::MediaKeySession::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::MediaKeyStatusMap::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::MediaKeySystemAccess::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::MediaKeys::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::PaymentMethodChangeEvent::DESCRIPTOR,
kind: ConstructorKind::Shell { length: 1 },
},
ConstructorSpec {
interface: web_api_interfaces::PaymentRequest::DESCRIPTOR,
kind: ConstructorKind::Shell { length: 2 },
},
ConstructorSpec {
interface: web_api_interfaces::PaymentRequestUpdateEvent::DESCRIPTOR,
kind: ConstructorKind::Shell { length: 1 },
},
ConstructorSpec {
interface: web_api_interfaces::VideoDecoder::DESCRIPTOR,
kind: ConstructorKind::VideoDecoder,
@@ -196,14 +172,6 @@ const CONSTRUCTOR_SPECS_BEFORE_STREAMS: &[ConstructorSpec] = &[
interface: web_api_interfaces::OverconstrainedError::DESCRIPTOR,
kind: ConstructorKind::OverconstrainedError,
},
ConstructorSpec {
interface: web_api_interfaces::PictureInPictureEvent::DESCRIPTOR,
kind: ConstructorKind::PictureInPictureEvent,
},
ConstructorSpec {
interface: web_api_interfaces::PictureInPictureWindow::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::SourceBuffer::DESCRIPTOR,
kind: ConstructorKind::Illegal,
@@ -342,11 +310,11 @@ const CONSTRUCTOR_SPECS_BEFORE_STREAMS: &[ConstructorSpec] = &[
},
ConstructorSpec {
interface: web_api_interfaces::SpeechSynthesisErrorEvent::DESCRIPTOR,
kind: ConstructorKind::Shell { length: 2 },
kind: ConstructorKind::SpeechSynthesisErrorEvent,
},
ConstructorSpec {
interface: web_api_interfaces::SpeechSynthesisEvent::DESCRIPTOR,
kind: ConstructorKind::Shell { length: 2 },
kind: ConstructorKind::SpeechSynthesisEvent,
},
ConstructorSpec {
interface: web_api_interfaces::WebTransport::DESCRIPTOR,
@@ -980,14 +948,6 @@ const CONSTRUCTOR_SPECS_BEFORE_STREAMS: &[ConstructorSpec] = &[
interface: web_api_interfaces::WebTransportError::DESCRIPTOR,
kind: ConstructorKind::WebTransportError,
},
ConstructorSpec {
interface: web_api_interfaces::WebTransportBidirectionalStream::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::WebTransportDatagramDuplexStream::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::WebSocket::DESCRIPTOR,
kind: ConstructorKind::WebSocket,
@@ -1000,22 +960,6 @@ const CONSTRUCTOR_SPECS_BEFORE_STREAMS: &[ConstructorSpec] = &[
interface: web_api_interfaces::WebSocketStream::DESCRIPTOR,
kind: ConstructorKind::WebSocketStream,
},
ConstructorSpec {
interface: web_api_interfaces::PerformanceServerTiming::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::PerformancePaintTiming::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::PerformanceEventTiming::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::LargestContentfulPaint::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::Performance::DESCRIPTOR,
kind: ConstructorKind::Illegal,
@@ -1032,14 +976,6 @@ const CONSTRUCTOR_SPECS_BEFORE_STREAMS: &[ConstructorSpec] = &[
interface: web_api_interfaces::Animation::DESCRIPTOR,
kind: ConstructorKind::Animation,
},
ConstructorSpec {
interface: web_api_interfaces::CSSAnimation::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::CSSTransition::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::AnimationEffect::DESCRIPTOR,
kind: ConstructorKind::Illegal,
@@ -1104,14 +1040,6 @@ const CONSTRUCTOR_SPECS_BEFORE_STREAMS: &[ConstructorSpec] = &[
interface: web_api_interfaces::NavigatorUAData::DESCRIPTOR,
kind: ConstructorKind::NavigatorUAData,
},
ConstructorSpec {
interface: web_api_interfaces::LockManager::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::Lock::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::StorageManager::DESCRIPTOR,
kind: ConstructorKind::StorageManager,
@@ -1256,14 +1184,6 @@ const CONSTRUCTOR_SPECS_BEFORE_STREAMS: &[ConstructorSpec] = &[
interface: web_api_interfaces::SpeechSynthesisUtterance::DESCRIPTOR,
kind: ConstructorKind::SpeechSynthesisUtterance,
},
ConstructorSpec {
interface: web_api_interfaces::SpeechSynthesisEvent::DESCRIPTOR,
kind: ConstructorKind::SpeechSynthesisEvent,
},
ConstructorSpec {
interface: web_api_interfaces::SpeechSynthesisErrorEvent::DESCRIPTOR,
kind: ConstructorKind::SpeechSynthesisErrorEvent,
},
ConstructorSpec {
interface: web_api_interfaces::SpeechSynthesisVoice::DESCRIPTOR,
kind: ConstructorKind::Illegal,
@@ -1555,10 +1475,6 @@ const CONSTRUCTOR_SPECS_AFTER_STREAMS: &[ConstructorSpec] = &[
interface: web_api_interfaces::ImageData::DESCRIPTOR,
kind: ConstructorKind::ImageData,
},
ConstructorSpec {
interface: web_api_interfaces::ImageBitmapRenderingContext::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::ImageBitmap::DESCRIPTOR,
kind: ConstructorKind::Illegal,
@@ -1591,38 +1507,6 @@ const CONSTRUCTOR_SPECS_AFTER_STREAMS: &[ConstructorSpec] = &[
interface: web_api_interfaces::RTCDataChannel::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::RTCCertificate::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::RTCDTMFSender::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::RTCDtlsTransport::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::RTCIceTransport::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::RTCRtpSender::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::RTCRtpTransceiver::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::RTCSctpTransport::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::RTCStatsReport::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::CanvasGradient::DESCRIPTOR,
kind: ConstructorKind::Illegal,
@@ -1815,10 +1699,6 @@ const CONSTRUCTOR_SPECS_AFTER_STREAMS: &[ConstructorSpec] = &[
interface: web_api_interfaces::XMLSerializer::DESCRIPTOR,
kind: ConstructorKind::XmlSerializer,
},
ConstructorSpec {
interface: web_api_interfaces::ReportBody::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::ResizeObserver::DESCRIPTOR,
kind: ConstructorKind::ResizeObserver,
@@ -1871,18 +1751,6 @@ const CONSTRUCTOR_SPECS_AFTER_STREAMS: &[ConstructorSpec] = &[
interface: web_api_interfaces::MediaQueryList::DESCRIPTOR,
kind: ConstructorKind::MediaQueryList,
},
ConstructorSpec {
interface: web_api_interfaces::SourceBufferList::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::SourceBuffer::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::MediaSourceHandle::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::MediaSource::DESCRIPTOR,
kind: ConstructorKind::MediaSource,
@@ -2039,14 +1907,6 @@ const CONSTRUCTOR_SPECS_AFTER_STREAMS: &[ConstructorSpec] = &[
interface: web_api_interfaces::AnalyserNode::DESCRIPTOR,
kind: ConstructorKind::AnalyserNode,
},
ConstructorSpec {
interface: web_api_interfaces::AudioParamMap::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::AudioListener::DESCRIPTOR,
kind: ConstructorKind::Illegal,
},
ConstructorSpec {
interface: web_api_interfaces::AudioParam::DESCRIPTOR,
kind: ConstructorKind::AudioParam,
+1 -2
View File
@@ -2319,6 +2319,7 @@ mod css_keyframes_receivers;
mod device_events;
mod document_location_materialization;
mod document_svg_root;
mod payment_events;
mod svg_length_native_receivers;
@@ -2477,7 +2478,6 @@ mod location_own_native_receivers;
mod string_timers;
mod svg_animated_number;
mod svg_computed_path_precision;
mod svg_cors_attributes;
mod svg_element_receivers;
mod svg_filter_enumerations;
@@ -2562,7 +2562,6 @@ mod domrect_receiver_consolidation;
mod resize_observer_entries;
mod encoded_video_chunk;
mod payment_events;
mod file_value_receivers;
@@ -1573,9 +1573,9 @@ mod message_port_transfer;
mod modules;
mod offscreen_canvas_blob;
mod offscreen_canvas_transfer;
mod payment_events;
mod strict_script_mime;
mod canvas_fill_rect;
mod geometry_point_transform;
mod network;
mod onerror;
@@ -1588,8 +1588,6 @@ mod trusted_types_reporting;
mod wasm_csp;
mod xhr_failure;
mod payment_events;
mod performance_handler_order;
mod trusted_type_policy_interface;