Rename legacy extended attributes in webidls

https://github.com/whatwg/webidl/pull/870
This commit is contained in:
sagudev 2023-02-19 14:05:45 +01:00
parent 2acdeabaf5
commit 55dac83d9a
51 changed files with 83 additions and 83 deletions

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/ANGLE_instanced_arrays/
*/
[NoInterfaceObject, Exposed=Window]
[LegacyNoInterfaceObject, Exposed=Window]
interface ANGLEInstancedArrays {
const GLenum VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE;
undefined drawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount);

View file

@ -17,8 +17,8 @@ interface CSSStyleDeclaration {
DOMString getPropertyValue(DOMString property);
DOMString getPropertyPriority(DOMString property);
[CEReactions, Throws]
undefined setProperty(DOMString property, [TreatNullAs=EmptyString] DOMString value,
optional [TreatNullAs=EmptyString] DOMString priority = "");
undefined setProperty(DOMString property, [LegacyNullToEmptyString] DOMString value,
optional [LegacyNullToEmptyString] DOMString priority = "");
[CEReactions, Throws]
DOMString removeProperty(DOMString property);
// readonly attribute CSSRule? parentRule;

View file

@ -93,7 +93,7 @@ interface mixin CanvasFillStrokeStyles {
[Throws]
CanvasGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1);
[Throws]
CanvasPattern? createPattern(CanvasImageSource image, [TreatNullAs=EmptyString] DOMString repetition);
CanvasPattern? createPattern(CanvasImageSource image, [LegacyNullToEmptyString] DOMString repetition);
};
[Exposed=(PaintWorklet, Window, Worker)]

View file

@ -11,7 +11,7 @@
[Exposed=Window, Abstract]
interface CharacterData : Node {
[Pure] attribute [TreatNullAs=EmptyString] DOMString data;
[Pure] attribute [LegacyNullToEmptyString] DOMString data;
[Pure] readonly attribute unsigned long length;
[Pure, Throws]
DOMString substringData(unsigned long offset, unsigned long count);

View file

@ -17,7 +17,7 @@ interface DOMImplementation {
DOMString systemId);
[NewObject, Throws]
XMLDocument createDocument(DOMString? namespace,
[TreatNullAs=EmptyString] DOMString qualifiedName,
[LegacyNullToEmptyString] DOMString qualifiedName,
optional DocumentType? doctype = null);
[NewObject]
Document createHTMLDocument(optional DOMString title);

View file

@ -3,7 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#the-domstringmap-interface
[Exposed=Window, OverrideBuiltins]
[Exposed=Window, LegacyOverrideBuiltIns]
interface DOMStringMap {
getter DOMString (DOMString name);
[CEReactions, Throws]

View file

@ -14,7 +14,7 @@
// way to enforce security policy.
// https://html.spec.whatwg.org/multipage/#location
[Exposed=(Window,DissimilarOriginWindow), Unforgeable, NoInterfaceObject]
[Exposed=(Window,DissimilarOriginWindow), LegacyUnforgeable, LegacyNoInterfaceObject]
interface DissimilarOriginLocation {
[Throws] attribute USVString href;
[Throws] undefined assign(USVString url);

View file

@ -13,15 +13,15 @@
// way to enforce security policy.
// https://html.spec.whatwg.org/multipage/#window
[Global, Exposed=(Window,DissimilarOriginWindow), NoInterfaceObject]
[Global, Exposed=(Window,DissimilarOriginWindow), LegacyNoInterfaceObject]
interface DissimilarOriginWindow : GlobalScope {
[Unforgeable] readonly attribute WindowProxy window;
[LegacyUnforgeable] readonly attribute WindowProxy window;
[BinaryName="Self_", Replaceable] readonly attribute WindowProxy self;
[Unforgeable] readonly attribute WindowProxy? parent;
[Unforgeable] readonly attribute WindowProxy? top;
[LegacyUnforgeable] readonly attribute WindowProxy? parent;
[LegacyUnforgeable] readonly attribute WindowProxy? top;
[Replaceable] readonly attribute WindowProxy frames;
[Replaceable] readonly attribute unsigned long length;
[Unforgeable] readonly attribute DissimilarOriginLocation location;
[LegacyUnforgeable] readonly attribute DissimilarOriginLocation location;
undefined close();
readonly attribute boolean closed;

View file

@ -84,10 +84,10 @@ dictionary ElementCreationOptions {
};
// https://html.spec.whatwg.org/multipage/#the-document-object
// [OverrideBuiltins]
// [LegacyOverrideBuiltIns]
partial /*sealed*/ interface Document {
// resource metadata management
[PutForwards=href, Unforgeable]
[PutForwards=href, LegacyUnforgeable]
readonly attribute Location? location;
[SetterThrows] attribute DOMString domain;
readonly attribute DOMString referrer;
@ -146,7 +146,7 @@ partial /*sealed*/ interface Document {
// DOMString queryCommandValue(DOMString commandId);
// special event handler IDL attributes that only apply to Document objects
[LenientThis] attribute EventHandler onreadystatechange;
[LegacyLenientThis] attribute EventHandler onreadystatechange;
// also has obsolete members
};
@ -156,22 +156,22 @@ Document includes DocumentAndElementEventHandlers;
// https://html.spec.whatwg.org/multipage/#Document-partial
partial interface Document {
[CEReactions]
attribute [TreatNullAs=EmptyString] DOMString fgColor;
attribute [LegacyNullToEmptyString] DOMString fgColor;
// https://github.com/servo/servo/issues/8715
// [CEReactions, TreatNullAs=EmptyString]
// [CEReactions, LegacyNullToEmptyString]
// attribute DOMString linkColor;
// https://github.com/servo/servo/issues/8716
// [CEReactions, TreatNullAs=EmptyString]
// [CEReactions, LegacyNullToEmptyString]
// attribute DOMString vlinkColor;
// https://github.com/servo/servo/issues/8717
// [CEReactions, TreatNullAs=EmptyString]
// [CEReactions, LegacyNullToEmptyString]
// attribute DOMString alinkColor;
[CEReactions]
attribute [TreatNullAs=EmptyString] DOMString bgColor;
attribute [LegacyNullToEmptyString] DOMString bgColor;
[SameObject]
readonly attribute HTMLCollection anchors;
@ -189,9 +189,9 @@ partial interface Document {
// https://fullscreen.spec.whatwg.org/#api
partial interface Document {
[LenientSetter] readonly attribute boolean fullscreenEnabled;
[LenientSetter] readonly attribute Element? fullscreenElement;
[LenientSetter] readonly attribute boolean fullscreen; // historical
[LegacyLenientSetter] readonly attribute boolean fullscreenEnabled;
[LegacyLenientSetter] readonly attribute Element? fullscreenElement;
[LegacyLenientSetter] readonly attribute boolean fullscreen; // historical
Promise<undefined> exitFullscreen();

View file

@ -7,7 +7,7 @@
* so that we can hold a traceable owner for those dynamic modules which don't hold a owner.
*/
[NoInterfaceObject, Exposed=Window]
[LegacyNoInterfaceObject, Exposed=Window]
interface DynamicModuleOwner {
readonly attribute Promise<any> promise;
};

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/EXT_blend_minmax/
*/
[NoInterfaceObject, Exposed=Window]
[LegacyNoInterfaceObject, Exposed=Window]
interface EXTBlendMinmax {
const GLenum MIN_EXT = 0x8007;
const GLenum MAX_EXT = 0x8008;

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/EXT_color_buffer_half_float/
*/
[NoInterfaceObject, Exposed=Window]
[LegacyNoInterfaceObject, Exposed=Window]
interface EXTColorBufferHalfFloat {
const GLenum RGBA16F_EXT = 0x881A;
const GLenum RGB16F_EXT = 0x881B;

View file

@ -6,6 +6,6 @@
* https://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/
*/
[NoInterfaceObject, Exposed=Window]
[LegacyNoInterfaceObject, Exposed=Window]
interface EXTFragDepth {
}; // interface EXT_frag_depth

View file

@ -6,6 +6,6 @@
* https://www.khronos.org/registry/webgl/extensions/EXT_shader_texture_lod/
*/
[NoInterfaceObject, Exposed=Window]
[LegacyNoInterfaceObject, Exposed=Window]
interface EXTShaderTextureLod {
};

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotropic/
*/
[NoInterfaceObject, Exposed=Window]
[LegacyNoInterfaceObject, Exposed=Window]
interface EXTTextureFilterAnisotropic {
const GLenum TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
const GLenum MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;

View file

@ -113,9 +113,9 @@ partial interface Element {
// https://w3c.github.io/DOM-Parsing/#extensions-to-the-element-interface
partial interface Element {
[CEReactions, Throws]
attribute [TreatNullAs=EmptyString] DOMString innerHTML;
attribute [LegacyNullToEmptyString] DOMString innerHTML;
[CEReactions, Throws]
attribute [TreatNullAs=EmptyString] DOMString outerHTML;
attribute [LegacyNullToEmptyString] DOMString outerHTML;
};
// https://fullscreen.spec.whatwg.org/#api

View file

@ -34,7 +34,7 @@ interface Event {
[Pure]
readonly attribute boolean defaultPrevented;
[Unforgeable]
[LegacyUnforgeable]
readonly attribute boolean isTrusted;
[Constant]
readonly attribute DOMHighResTimeStamp timeStamp;

View file

@ -10,17 +10,17 @@
* and create derivative works of this document.
*/
[TreatNonObjectAsNull]
[LegacyTreatNonObjectAsNull]
callback EventHandlerNonNull = any (Event event);
typedef EventHandlerNonNull? EventHandler;
[TreatNonObjectAsNull]
[LegacyTreatNonObjectAsNull]
callback OnErrorEventHandlerNonNull = any ((Event or DOMString) event, optional DOMString source,
optional unsigned long lineno, optional unsigned long column,
optional any error);
typedef OnErrorEventHandlerNonNull? OnErrorEventHandler;
[TreatNonObjectAsNull]
[LegacyTreatNonObjectAsNull]
callback OnBeforeUnloadEventHandlerNonNull = DOMString? (Event event);
typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEventHandler;
@ -62,8 +62,8 @@ interface mixin GlobalEventHandlers {
attribute EventHandler onloadedmetadata;
attribute EventHandler onloadstart;
attribute EventHandler onmousedown;
[LenientThis] attribute EventHandler onmouseenter;
[LenientThis] attribute EventHandler onmouseleave;
[LegacyLenientThis] attribute EventHandler onmouseenter;
[LegacyLenientThis] attribute EventHandler onmouseleave;
attribute EventHandler onmousemove;
attribute EventHandler onmouseout;
attribute EventHandler onmouseover;

View file

@ -3,7 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#htmlaudioelement
[Exposed=Window, NamedConstructor=Audio(optional DOMString src)]
[Exposed=Window, LegacyFactoryFunction=Audio(optional DOMString src)]
interface HTMLAudioElement : HTMLMediaElement {
[HTMLConstructor] constructor();
};

View file

@ -13,17 +13,17 @@ HTMLBodyElement includes WindowEventHandlers;
// https://html.spec.whatwg.org/multipage/#HTMLBodyElement-partial
partial interface HTMLBodyElement {
[CEReactions] attribute [TreatNullAs=EmptyString] DOMString text;
[CEReactions] attribute [LegacyNullToEmptyString] DOMString text;
// https://github.com/servo/servo/issues/8715
//[CEReactions, TreatNullAs=EmptyString] attribute DOMString link;
//[CEReactions, LegacyNullToEmptyString] attribute DOMString link;
// https://github.com/servo/servo/issues/8716
//[CEReactions, TreatNullAs=EmptyString] attribute DOMString vLink;
//[CEReactions, LegacyNullToEmptyString] attribute DOMString vLink;
// https://github.com/servo/servo/issues/8717
//[CEReactions, TreatNullAs=EmptyString] attribute DOMString aLink;
//[CEReactions, LegacyNullToEmptyString] attribute DOMString aLink;
[CEReactions] attribute [TreatNullAs=EmptyString] DOMString bgColor;
[CEReactions] attribute [LegacyNullToEmptyString] DOMString bgColor;
[CEReactions] attribute DOMString background;
};

View file

@ -48,7 +48,7 @@ interface HTMLElement : Element {
// attribute boolean spellcheck;
// void forceSpellCheck();
attribute [TreatNullAs=EmptyString] DOMString innerText;
attribute [LegacyNullToEmptyString] DOMString innerText;
// command API
// readonly attribute DOMString? commandType;

View file

@ -8,7 +8,7 @@ interface HTMLFontElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions]
attribute [TreatNullAs=EmptyString] DOMString color;
attribute [LegacyNullToEmptyString] DOMString color;
[CEReactions]
attribute DOMString face;
[CEReactions]

View file

@ -22,8 +22,8 @@ interface HTMLFrameElement : HTMLElement {
// readonly attribute Document? contentDocument;
// readonly attribute WindowProxy? contentWindow;
// [CEReactions, TreatNullAs=EmptyString]
// [CEReactions, LegacyNullToEmptyString]
// attribute DOMString marginHeight;
// [CEReactions, TreatNullAs=EmptyString]
// [CEReactions, LegacyNullToEmptyString]
// attribute DOMString marginWidth;
};

View file

@ -42,8 +42,8 @@ partial interface HTMLIFrameElement {
// [CEReactions]
// attribute DOMString longDesc;
// [CEReactions, TreatNullAs=EmptyString]
// [CEReactions, LegacyNullToEmptyString]
// attribute DOMString marginHeight;
// [CEReactions, TreatNullAs=EmptyString]
// [CEReactions, LegacyNullToEmptyString]
// attribute DOMString marginWidth;
};

View file

@ -3,7 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#htmlimageelement
[Exposed=Window, NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
[Exposed=Window, LegacyFactoryFunction=Image(optional unsigned long width, optional unsigned long height)]
interface HTMLImageElement : HTMLElement {
[HTMLConstructor] constructor();
@ -48,7 +48,7 @@ partial interface HTMLImageElement {
attribute DOMString longDesc;
[CEReactions]
attribute [TreatNullAs=EmptyString] DOMString border;
attribute [LegacyNullToEmptyString] DOMString border;
};
// https://drafts.csswg.org/cssom-view/#extensions-to-the-htmlimageelement-interface

View file

@ -71,7 +71,7 @@ interface HTMLInputElement : HTMLElement {
[CEReactions]
attribute DOMString defaultValue;
[CEReactions, SetterThrows]
attribute [TreatNullAs=EmptyString] DOMString value;
attribute [LegacyNullToEmptyString] DOMString value;
[SetterThrows]
attribute object? valueAsDate;
[SetterThrows]

View file

@ -49,5 +49,5 @@ partial interface HTMLObjectElement {
// attribute DOMString codeBase;
// attribute DOMString codeType;
//[TreatNullAs=EmptyString] attribute DOMString border;
//[LegacyNullToEmptyString] attribute DOMString border;
};

View file

@ -3,7 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#htmloptionelement
[Exposed=Window, NamedConstructor=Option(optional DOMString text = "", optional DOMString value,
[Exposed=Window, LegacyFactoryFunction=Option(optional DOMString text = "", optional DOMString value,
optional boolean defaultSelected = false,
optional boolean selected = false)]
interface HTMLOptionElement : HTMLElement {

View file

@ -43,5 +43,5 @@ partial interface HTMLTableCellElement {
// attribute DOMString vAlign;
[CEReactions]
attribute [TreatNullAs=EmptyString] DOMString bgColor;
attribute [LegacyNullToEmptyString] DOMString bgColor;
};

View file

@ -51,9 +51,9 @@ partial interface HTMLTableElement {
attribute DOMString width;
[CEReactions]
attribute [TreatNullAs=EmptyString] DOMString bgColor;
// [CEReactions, TreatNullAs=EmptyString]
attribute [LegacyNullToEmptyString] DOMString bgColor;
// [CEReactions, LegacyNullToEmptyString]
// attribute DOMString cellPadding;
// [CEReactions, TreatNullAs=EmptyString]
// [CEReactions, LegacyNullToEmptyString]
// attribute DOMString cellSpacing;
};

View file

@ -30,5 +30,5 @@ partial interface HTMLTableRowElement {
// attribute DOMString vAlign;
[CEReactions]
attribute [TreatNullAs=EmptyString] DOMString bgColor;
attribute [LegacyNullToEmptyString] DOMString bgColor;
};

View file

@ -40,7 +40,7 @@ interface HTMLTextAreaElement : HTMLElement {
readonly attribute DOMString type;
[CEReactions]
attribute DOMString defaultValue;
attribute [TreatNullAs=EmptyString] DOMString value;
attribute [LegacyNullToEmptyString] DOMString value;
readonly attribute unsigned long textLength;
readonly attribute boolean willValidate;

View file

@ -3,7 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#location
[Exposed=Window, Unforgeable] interface Location {
[Exposed=Window, LegacyUnforgeable] interface Location {
[Throws, CrossOriginWritable]
stringifier attribute USVString href;
[Throws] readonly attribute USVString origin;

View file

@ -5,7 +5,7 @@
// https://drafts.csswg.org/cssom/#the-medialist-interface
[Exposed=Window]
interface MediaList {
stringifier attribute [TreatNullAs=EmptyString] DOMString mediaText;
stringifier attribute [LegacyNullToEmptyString] DOMString mediaText;
readonly attribute unsigned long length;
getter DOMString? item(unsigned long index);
undefined appendMedium(DOMString medium);

View file

@ -6,6 +6,6 @@
* https://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/
*/
[NoInterfaceObject, Exposed=Window]
[LegacyNoInterfaceObject, Exposed=Window]
interface OESElementIndexUint {
};

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/
*/
[NoInterfaceObject, Exposed=Window]
[LegacyNoInterfaceObject, Exposed=Window]
interface OESStandardDerivatives {
const GLenum FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
};

View file

@ -6,6 +6,6 @@
* https://www.khronos.org/registry/webgl/extensions/OES_texture_float/
*/
[NoInterfaceObject, Exposed=Window]
[LegacyNoInterfaceObject, Exposed=Window]
interface OESTextureFloat {
};

View file

@ -6,6 +6,6 @@
* https://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/
*/
[NoInterfaceObject, Exposed=Window]
[LegacyNoInterfaceObject, Exposed=Window]
interface OESTextureFloatLinear {
};

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/
*/
[NoInterfaceObject, Exposed=Window]
[LegacyNoInterfaceObject, Exposed=Window]
interface OESTextureHalfFloat {
const GLenum HALF_FLOAT_OES = 0x8D61;
};

View file

@ -6,6 +6,6 @@
* https://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linear/
*/
[NoInterfaceObject, Exposed=Window]
[LegacyNoInterfaceObject, Exposed=Window]
interface OESTextureHalfFloatLinear {
};

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
*/
[NoInterfaceObject, Exposed=Window]
[LegacyNoInterfaceObject, Exposed=Window]
interface OESVertexArrayObject {
const unsigned long VERTEX_ARRAY_BINDING_OES = 0x85B5;

View file

@ -10,7 +10,7 @@ callback PromiseJobCallback = undefined();
[TreatNonCallableAsNull]
callback AnyCallback = any (any value);
[NoInterfaceObject, Exposed=(Window,Worker)]
[LegacyNoInterfaceObject, Exposed=(Window,Worker)]
// Need to escape "Promise" so it's treated as an identifier.
interface _Promise {
};

View file

@ -7,7 +7,7 @@
// Hack to allow us to have JS owning and properly tracing/CCing/etc a
// PromiseNativeHandler.
[NoInterfaceObject,
[LegacyNoInterfaceObject,
Exposed=(Window,Worker)]
interface PromiseNativeHandler {
};

View file

@ -5,7 +5,7 @@
// This interface is entirely internal to Servo, and should not be accessible to
// web pages.
[NoInterfaceObject, Exposed=(Window,Worker)]
[LegacyNoInterfaceObject, Exposed=(Window,Worker)]
// Need to escape "ReadableStream" so it's treated as an identifier.
interface _ReadableStream {
};

View file

@ -6,5 +6,5 @@
// web pages.
[Exposed=(Window,Worker),
NoInterfaceObject]
LegacyNoInterfaceObject]
interface ServoParser {};

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/WEBGL_color_buffer_float/
*/
[NoInterfaceObject, Exposed=Window]
[LegacyNoInterfaceObject, Exposed=Window]
interface WEBGLColorBufferFloat {
const GLenum RGBA32F_EXT = 0x8814;
const GLenum FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT = 0x8211;

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_etc1/
*/
[NoInterfaceObject, Exposed=Window]
[LegacyNoInterfaceObject, Exposed=Window]
interface WEBGLCompressedTextureETC1 {
/* Compressed Texture Format */
const GLenum COMPRESSED_RGB_ETC1_WEBGL = 0x8D64;

View file

@ -6,7 +6,7 @@
* https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3tc/
*/
[NoInterfaceObject, Exposed=Window]
[LegacyNoInterfaceObject, Exposed=Window]
interface WEBGLCompressedTextureS3TC {
/* Compressed Texture Formats */
const GLenum COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;

View file

@ -6,6 +6,6 @@
* https://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
*/
[NoInterfaceObject, Exposed=Window]
[LegacyNoInterfaceObject, Exposed=Window]
interface WebGLVertexArrayObjectOES: WebGLObject {
};

View file

@ -6,13 +6,13 @@
[Global=Window, Exposed=Window /*, LegacyUnenumerableNamedProperties */]
/*sealed*/ interface Window : GlobalScope {
// the current browsing context
[Unforgeable, CrossOriginReadable] readonly attribute WindowProxy window;
[LegacyUnforgeable, CrossOriginReadable] readonly attribute WindowProxy window;
[BinaryName="Self_", Replaceable, CrossOriginReadable] readonly attribute WindowProxy self;
[Unforgeable] readonly attribute Document document;
[LegacyUnforgeable] readonly attribute Document document;
attribute DOMString name;
[PutForwards=href, Unforgeable, CrossOriginReadable, CrossOriginWritable]
[PutForwards=href, LegacyUnforgeable, CrossOriginReadable, CrossOriginWritable]
readonly attribute Location location;
readonly attribute History history;
[Pref="dom.customelements.enabled"]
@ -35,7 +35,7 @@
[Replaceable, CrossOriginReadable] readonly attribute unsigned long length;
// Note that this can return null in the case that the browsing context has been discarded.
// https://github.com/whatwg/html/issues/2115
[Unforgeable, CrossOriginReadable] readonly attribute WindowProxy? top;
[LegacyUnforgeable, CrossOriginReadable] readonly attribute WindowProxy? top;
[CrossOriginReadable] attribute any opener;
// Note that this can return null in the case that the browsing context has been discarded.
// https://github.com/whatwg/html/issues/2115

View file

@ -3,5 +3,5 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#the-windowproxy-exotic-object
[Exposed=(Window,DissimilarOriginWindow), NoInterfaceObject]
[Exposed=(Window,DissimilarOriginWindow), LegacyNoInterfaceObject]
interface WindowProxy {};