diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/interfaces/fenced-frame.idl | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/interfaces/fenced-frame.idl')
-rw-r--r-- | testing/web-platform/tests/interfaces/fenced-frame.idl | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/testing/web-platform/tests/interfaces/fenced-frame.idl b/testing/web-platform/tests/interfaces/fenced-frame.idl new file mode 100644 index 0000000000..2107655aa9 --- /dev/null +++ b/testing/web-platform/tests/interfaces/fenced-frame.idl @@ -0,0 +1,78 @@ +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Fenced Frame (https://wicg.github.io/fenced-frame/) + +[Exposed=Window] +interface HTMLFencedFrameElement : HTMLElement { + [HTMLConstructor] constructor(); + + [CEReactions] attribute FencedFrameConfig? config; + [CEReactions] attribute DOMString width; + [CEReactions] attribute DOMString height; + [CEReactions] attribute DOMString allow; +}; + +enum OpaqueProperty {"opaque"}; + +typedef (unsigned long or OpaqueProperty) FencedFrameConfigSize; +typedef USVString FencedFrameConfigURL; + +[Exposed=Window, Serializable] +interface FencedFrameConfig { + readonly attribute FencedFrameConfigSize? containerWidth; + readonly attribute FencedFrameConfigSize? containerHeight; + readonly attribute FencedFrameConfigSize? contentWidth; + readonly attribute FencedFrameConfigSize? contentHeight; + + undefined setSharedStorageContext(DOMString contextString); +}; + +typedef (USVString or FencedFrameConfig) UrnOrConfig; + +partial interface Navigator { + Promise<undefined> deprecatedReplaceInURN( + UrnOrConfig urnOrConfig, record<USVString, USVString> replacements); +}; + +enum FenceReportingDestination { + "buyer", + "seller", + "component-seller", + "direct-seller", + "shared-storage-select-url", +}; + +dictionary FenceEvent { + // This dictionary has two mutually exclusive modes that aren’t represented as + // distinct IDL types due to distinguishability issues: + // + // When reporting to a preregistered destination (specified by enum), the following + // properties are used: + DOMString eventType; + DOMString eventData; + sequence<FenceReportingDestination> destination; + + // When setting event data to be used later in an automatic beacon, the + // following properties are used: + boolean once = false; + boolean crossOriginExposed = false; + + // When reporting to a custom destination URL (with substitution of macros defined by + // the Protected Audience buyer), the following property is used: + USVString destinationURL; +}; + +typedef (FenceEvent or DOMString) ReportEventType; + +[Exposed=Window] +interface Fence { + undefined reportEvent(optional ReportEventType event = {}); + undefined setReportEventDataForAutomaticBeacons(optional FenceEvent event = {}); + sequence<FencedFrameConfig> getNestedConfigs(); +}; + +partial interface Window { + // Collection of fenced frame APIs + readonly attribute Fence? fence; +}; |