From 61b11a9345fcd71eefac56c73dfb4ac7913d96c7 Mon Sep 17 00:00:00 2001 From: Joseph P Medley Date: Fri, 22 Mar 2024 19:12:32 -0700 Subject: [PATCH] Updates 22/03/24. --- idl/core/animation/animation.idl | 1 + idl/core/css/css_value_keywords.json5 | 5 +- idl/core/dom/shadow_root.idl | 2 +- idl/core/frame/pending_beacon.idl | 53 ------------ .../permissions_policy_features.json5 | 1 - .../view_transition_options.idl | 2 +- idl/modules/ad_auction/auction_ad_config.idl | 3 + .../model_execution/model_generic_session.idl | 4 +- idl/modules/model_execution/model_manager.idl | 4 +- .../service_worker/router_condition.idl | 6 ++ idl/platform/runtime_enabled_features.json5 | 81 +++++++------------ 11 files changed, 51 insertions(+), 111 deletions(-) delete mode 100644 idl/core/frame/pending_beacon.idl diff --git a/idl/core/animation/animation.idl b/idl/core/animation/animation.idl index bd549df..37fd8a2 100644 --- a/idl/core/animation/animation.idl +++ b/idl/core/animation/animation.idl @@ -43,6 +43,7 @@ enum ReplaceState { "active", "removed", "persisted" }; attribute AnimationTimeline? timeline; [Measure, RaisesException=Setter] attribute CSSNumberish? startTime; [Measure, RaisesException=Setter] attribute CSSNumberish? currentTime; + [RuntimeEnabled=AnimationProgressAPI, Measure] readonly attribute double? progress; [Measure, RaisesException=Setter] attribute double playbackRate; [RuntimeEnabled=ScrollTimeline, Measure, RaisesException=Setter] attribute (TimelineRangeOffset or DOMString) rangeStart; [RuntimeEnabled=ScrollTimeline, Measure, RaisesException=Setter] attribute (TimelineRangeOffset or DOMString) rangeEnd; diff --git a/idl/core/css/css_value_keywords.json5 b/idl/core/css/css_value_keywords.json5 index d6b0e9c..29f81d2 100644 --- a/idl/core/css/css_value_keywords.json5 +++ b/idl/core/css/css_value_keywords.json5 @@ -1865,6 +1865,9 @@ // fill / stroke "context-fill", - "context-stroke" + "context-stroke", + + // media-progress() + "media-progress", ], } diff --git a/idl/core/dom/shadow_root.idl b/idl/core/dom/shadow_root.idl index 4479c5d..b78f12f 100644 --- a/idl/core/dom/shadow_root.idl +++ b/idl/core/dom/shadow_root.idl @@ -49,7 +49,7 @@ interface ShadowRoot : DocumentFragment { [Affects=Nothing, MeasureAs=ElementGetHTML, RaisesException, RuntimeEnabled=ElementGetHTML] HTMLString getHTML(optional GetHTMLOptions options = {}); // The serializable attribute controls whether the shadow root will be - // serialized by getHTML({includeShadowRoots:true}). + // serialized by getHTML({serializableShadowRoots:true}). [RuntimeEnabled=ElementGetHTML] attribute boolean serializable; // The clonable attribute controls whether the shadow root will be diff --git a/idl/core/frame/pending_beacon.idl b/idl/core/frame/pending_beacon.idl deleted file mode 100644 index 936a38a..0000000 --- a/idl/core/frame/pending_beacon.idl +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2022 The Chromium Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// https://github.com/WICG/pending-beacon/blob/main/README.md - -enum BeaconMethod { "POST", "GET" }; - -dictionary PendingBeaconOptions { - long backgroundTimeout = -1; - long timeout = -1; -}; - -// Interface for the PendingBeacon API. -[ - RuntimeEnabled = PendingBeaconAPI, - Exposed = Window, - SecureContext -] interface PendingBeacon { - [Measure] readonly attribute USVString url; - [Measure] readonly attribute BeaconMethod method; - [Measure] attribute long backgroundTimeout; - [Measure] attribute long timeout; - [Measure] readonly attribute boolean pending; - - [Measure] void deactivate(); - [Measure] void sendNow(); -}; - -// Interface for the PendingGetBeacon API. -[ - RuntimeEnabled = PendingBeaconAPI, - Exposed = Window, - SecureContext -] interface PendingGetBeacon : PendingBeacon { - [Measure, RaisesException, CallWith = ExecutionContext] constructor( - USVString? url, optional PendingBeaconOptions options); - - [Measure, RaisesException] void setURL(USVString? url); -}; - -// Interface for the PendingPostBeacon API. -[ - RuntimeEnabled = PendingBeaconAPI, - Exposed = Window, - SecureContext -] interface PendingPostBeacon : PendingBeacon { - [Measure, RaisesException, CallWith = ExecutionContext] constructor( - USVString? url, optional PendingBeaconOptions options); - - [Measure, RaisesException] void setData( - (ReadableStream or XMLHttpRequestBodyInit) data); -}; diff --git a/idl/core/permissions_policy/permissions_policy_features.json5 b/idl/core/permissions_policy/permissions_policy_features.json5 index 8d8b748..427c10c 100644 --- a/idl/core/permissions_policy/permissions_policy_features.json5 +++ b/idl/core/permissions_policy/permissions_policy_features.json5 @@ -340,7 +340,6 @@ { name: "PublicKeyCredentialsCreate", permissions_policy_name: "publickey-credentials-create", - depends_on: ["WebAuthAllowCreateInCrossOriginFrame"], }, { name: "PublicKeyCredentialsGet", diff --git a/idl/core/view_transition/view_transition_options.idl b/idl/core/view_transition/view_transition_options.idl index 561a0ba..59cdb19 100644 --- a/idl/core/view_transition/view_transition_options.idl +++ b/idl/core/view_transition/view_transition_options.idl @@ -3,5 +3,5 @@ // found in the LICENSE file. dictionary ViewTransitionOptions { ViewTransitionCallback? update = null; - sequence? type = null; + sequence? types = null; }; diff --git a/idl/modules/ad_auction/auction_ad_config.idl b/idl/modules/ad_auction/auction_ad_config.idl index 6e08219..7c3d26f 100644 --- a/idl/modules/ad_auction/auction_ad_config.idl +++ b/idl/modules/ad_auction/auction_ad_config.idl @@ -63,6 +63,9 @@ dictionary AuctionAdConfig { Promise> perBuyerTimeouts; Promise> perBuyerCumulativeTimeouts; + [RuntimeEnabled=FledgeReportingTimeout] + unsigned long long reportingTimeout; + USVString sellerCurrency; Promise> perBuyerCurrencies; diff --git a/idl/modules/model_execution/model_generic_session.idl b/idl/modules/model_execution/model_generic_session.idl index e33b4a8..ba077a9 100644 --- a/idl/modules/model_execution/model_generic_session.idl +++ b/idl/modules/model_execution/model_generic_session.idl @@ -7,6 +7,6 @@ Exposed=Window ] interface ModelGenericSession { - [CallWith=ScriptState, RaisesException] Promise execute(DOMString input); - [CallWith=ScriptState, RaisesException] ReadableStream executeStreaming(DOMString input); + [Measure, CallWith=ScriptState, RaisesException] Promise execute(DOMString input); + [Measure, CallWith=ScriptState, RaisesException] ReadableStream executeStreaming(DOMString input); }; diff --git a/idl/modules/model_execution/model_manager.idl b/idl/modules/model_execution/model_manager.idl index 8fb8da5..03e8f2f 100644 --- a/idl/modules/model_execution/model_manager.idl +++ b/idl/modules/model_execution/model_manager.idl @@ -9,8 +9,8 @@ enum GenericModelAvailability { "readily", "after-download", "no" }; Exposed=Window ] interface ModelManager { - [CallWith=ScriptState, RaisesException] Promise canCreateGenericSession(); - [CallWith=ScriptState, RaisesException] Promise createGenericSession( + [Measure, CallWith=ScriptState, RaisesException] Promise canCreateGenericSession(); + [Measure, CallWith=ScriptState, RaisesException] Promise createGenericSession( optional ModelGenericSessionOptions options = {} ); }; diff --git a/idl/modules/service_worker/router_condition.idl b/idl/modules/service_worker/router_condition.idl index 633ce1b..6b6dc0b 100644 --- a/idl/modules/service_worker/router_condition.idl +++ b/idl/modules/service_worker/router_condition.idl @@ -23,4 +23,10 @@ dictionary RouterCondition { // `ImplementedAs` is necessary to avoid conflicts with C++ keyword `or`. // Chrome WebIDL compiler emits error without the leading underscore. [ImplementedAs=orConditions] sequence _or; + + // Experimental. + // For the `not` condition. + // `ImplementedAs` is necessary to avoid conflicts with C++ keyword `not`. + // Chrome WebIDL compiler emits error without the leading underscore. + [ImplementedAs=notCondition] RouterCondition _not; }; diff --git a/idl/platform/runtime_enabled_features.json5 b/idl/platform/runtime_enabled_features.json5 index 1ba1c0e..28a3aa1 100644 --- a/idl/platform/runtime_enabled_features.json5 +++ b/idl/platform/runtime_enabled_features.json5 @@ -268,6 +268,13 @@ implied_by: ["Fledge", "Parakeet"], public: true, }, + // Adjust the end of the next paragraph if the end position for the + // paragraph is updated while moving the paragraph. See + // https://crbug.com/329121649 + { + name: "AdjustEndOfNextParagraphIfMovedParagraphIsUpdated", + status: "stable", + }, { name: "AdTagging", public: true, @@ -300,6 +307,10 @@ base_feature: "none", public: true, }, + { + name: "AnimationProgressAPI", + status: "test", + }, { name: "AnimationWorklet", }, @@ -444,12 +455,6 @@ "default": "test", }, }, - { - // Shipping in M122. Flag should be removed after M122 has been - // shipping to stable for a few weeks. - name: "BdiElementDirInheritance", - status: "stable", - }, { // There are two different code changes guarded by this feature. Both // are about triggering a beforeunload cancel dialog and need adoption @@ -496,10 +501,6 @@ name: "BlockingFocusWithoutUserActivation", status: "experimental", }, - { - name: "BlockRubyWrappingInlineRuby", - status: "stable", - }, // crbug.com/1147998: Mouse and Pointer boundary event dispatch (i.e. dispatch // of enter, leave, over, out events) tracks DOM node removal to fix event // pairing on ancestor nodes. @@ -714,10 +715,6 @@ { name: "CorsRFC1918", }, - { - name: "CounterStyleChangeShouleCollectInlines", - status: "stable", - }, { // Controls whether form elements may delay editor creation until layout. // This is a kill switch. See https://crbug.com/325613706 for details. @@ -1060,6 +1057,11 @@ name: "CSSSignRelatedFunctions", status: "experimental", }, + { + // A separate feature for testing compatibility, related to the work on + // https://chromestatus.com/feature/5196713071738880 + name: "CSSSizingKeywordAnimation", + }, { // https://drafts.csswg.org/css-scroll-snap-2/#snap-events name: "CSSSnapChangedEvent", @@ -1460,6 +1462,7 @@ // When enabled, this allows users of DOMParser to do: // (new DOMParser()).parseFromString(...,{includeShadowRoots:true}). // This is being deprecated and removed: crbug.com/329330085. + // The fieldtrial_testing_config currently disables this feature for tests. { name: "DOMParserIncludeShadowRoots", status: "stable", @@ -1469,7 +1472,7 @@ // of any issues. { name: "DOMParserUsesHTMLFastPathParser", - status: "stable" + status: "test" }, { name: "DOMPartsAPI", @@ -1787,11 +1790,15 @@ name: "FledgeClearOriginJoinedAdInterestGroups", status: "stable", }, + { + name: "FledgeCreateAuctionNonceSynchronousResolution", + status: "stable", + }, { name: "FledgeCustomMaxAuctionAdComponents", }, { - // Enables using a 'deprecatedRenderURLReplacements' field within the a + // Enables using a 'deprecatedRenderURLReplacements' field within the // Protected Audience ad auction config. name: "FledgeDeprecatedRenderURLReplacements" }, @@ -1814,6 +1821,11 @@ name: "FledgeNegativeTargeting", status: "stable", }, + { + // Enables using a 'reportingTimeout' field within the Protected Audience + // ad auction config. + name: "FledgeReportingTimeout", + }, { name: "FledgeTrustedBiddingSignalsSlotSize", status: "stable", @@ -1836,10 +1848,6 @@ base_feature: "none", origin_trial_feature_name: "Focusgroup", }, - { - name: "FocusStyleInvalidationOnPageActivation", - status: "stable", - }, { name: "FontAccess", status: {"Android": "", "default": "stable"}, @@ -2464,11 +2472,11 @@ name: "MouseDragFromIframeOnCancelledMouseDown", status: "stable", }, - // crbug.com/346473: Allow mouse-drag text selection even when mousemove + // crbug.com/40078978: Allow mouse-drag text selection even when mousemove // event is cancelled. { name: "MouseDragOnCancelledMouseMove", - status: "experimental", + status: "stable", }, // crbug.com/1446498: This feature is being used for the deprecation of // Mutation Events. @@ -2897,14 +2905,6 @@ name: "PaymentRequestMerchantValidationEvent", status: "experimental", }, - { - name: "PendingBeaconAPI", - origin_trial_feature_name: "PendingBeaconAPI", - origin_trial_allows_third_party: true, - public: true, - status: "experimental", - base_feature: "none", - }, { name: "PercentBasedScrolling", base_feature: "none", @@ -3282,11 +3282,6 @@ name: "RtNoFirstLetterFirstLine", status: "stable", }, - { - // crbug.com/1493273 - name: "RubyInlinify", - status: "stable", - }, { // crbug.com/324111880 name: "RubyLineBreakable", @@ -3391,11 +3386,6 @@ base_feature: "none", public: true, }, - { - name: "SecurePaymentConfirmationExtensions", - public: true, - status: "stable", - }, { name: "SecurePaymentConfirmationOptOut", origin_trial_feature_name: "SecurePaymentConfirmationOptOut", @@ -4043,6 +4033,7 @@ { // https://chromestatus.com/feature/5089552511533056 name: "ViewTransitionTypes", + status: "experimental", }, { name: "VisibilityCollapseColumn", @@ -4150,16 +4141,6 @@ name: "WebAuth", status: "stable", }, - // Allow creation of WebAuth credentials in cross-origin contexts (as long - // as the 'publickey-credentials-create' permissions policy is set). - { - name: "WebAuthAllowCreateInCrossOriginFrame", - status: "stable", - // This feature is controlled from the Blink side, unless there is a - // Finch override of it for a kill-switch. - base_feature_status: "enabled", - copied_from_base_feature_if: "overridden", - }, // When enabled adds the authenticator attachment used for registration and // authentication to the public key credential response. {