-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch for ed/idl/anonymous-iframe.idl
Use `partial` in monkey-patched interface definitions
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
From e9b4e4187345a13bd745fa500747d1c4acefc1fc Mon Sep 17 00:00:00 2001 | ||
From: Francois Daoust <[email protected]> | ||
Date: Fri, 1 Dec 2023 15:17:11 +0100 | ||
Subject: [PATCH] Use `partial` in monkey-patched interface definitions | ||
|
||
See https://github.com/WICG/anonymous-iframe/pull/21 | ||
--- | ||
ed/idl/anonymous-iframe.idl | 10 ++-------- | ||
1 file changed, 2 insertions(+), 8 deletions(-) | ||
|
||
diff --git a/ed/idl/anonymous-iframe.idl b/ed/idl/anonymous-iframe.idl | ||
index 594e91574..98cd5a41d 100644 | ||
--- a/ed/idl/anonymous-iframe.idl | ||
+++ b/ed/idl/anonymous-iframe.idl | ||
@@ -3,19 +3,13 @@ | ||
// (https://github.com/w3c/webref) | ||
// Source: Iframe credentialless (https://wicg.github.io/anonymous-iframe/) | ||
|
||
-[Exposed=Window] | ||
-interface HTMLIFrameElement : HTMLElement { | ||
+partial interface HTMLIFrameElement { | ||
// [...] | ||
attribute boolean credentialless; | ||
// [...] | ||
}; | ||
|
||
-[ | ||
- Global=Window, | ||
- Exposed=Window, | ||
- LegacyUnenumerableNamedProperties | ||
-] | ||
-interface Window : EventTarget { | ||
+partial interface Window { | ||
// ... | ||
readonly attribute boolean credentialless; | ||
// ... | ||
-- | ||
2.42.0.windows.2 | ||
|