2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2013-02-27 19:38:32 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://www.whatwg.org/specs/web-apps/current-work/#the-iframe-element
|
|
|
|
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
|
2018-10-01 09:09:44 +03:00
|
|
|
* https://wicg.github.io/feature-policy/#policy
|
|
|
|
*
|
2013-02-27 19:38:32 +04:00
|
|
|
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
|
|
|
|
* Opera Software ASA. You are granted a license to use, reproduce
|
|
|
|
* and create derivative works of this document.
|
|
|
|
*/
|
|
|
|
|
2019-10-17 18:38:39 +03:00
|
|
|
[Exposed=Window]
|
2013-02-27 19:38:32 +04:00
|
|
|
interface HTMLIFrameElement : HTMLElement {
|
2019-10-17 18:38:39 +03:00
|
|
|
[HTMLConstructor] constructor();
|
|
|
|
|
2017-12-21 01:43:18 +03:00
|
|
|
[CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows, Pure]
|
2013-02-27 19:38:32 +04:00
|
|
|
attribute DOMString src;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-06-29 07:13:23 +04:00
|
|
|
attribute DOMString srcdoc;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-27 19:38:32 +04:00
|
|
|
attribute DOMString name;
|
2016-02-12 01:50:42 +03:00
|
|
|
[PutForwards=value] readonly attribute DOMTokenList sandbox;
|
2013-02-27 19:38:32 +04:00
|
|
|
// attribute boolean seamless;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-27 19:38:32 +04:00
|
|
|
attribute boolean allowFullscreen;
|
2017-07-21 05:27:42 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
|
|
|
attribute boolean allowPaymentRequest;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-27 19:38:32 +04:00
|
|
|
attribute DOMString width;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-27 19:38:32 +04:00
|
|
|
attribute DOMString height;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2015-12-01 03:13:03 +03:00
|
|
|
attribute DOMString referrerPolicy;
|
2018-12-18 23:06:19 +03:00
|
|
|
[NeedsSubjectPrincipal]
|
2013-02-27 19:38:32 +04:00
|
|
|
readonly attribute Document? contentDocument;
|
|
|
|
readonly attribute WindowProxy? contentWindow;
|
|
|
|
};
|
|
|
|
|
|
|
|
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
|
|
|
|
partial interface HTMLIFrameElement {
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-27 19:38:32 +04:00
|
|
|
attribute DOMString align;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-27 19:38:32 +04:00
|
|
|
attribute DOMString scrolling;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-27 19:38:32 +04:00
|
|
|
attribute DOMString frameBorder;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-27 19:38:32 +04:00
|
|
|
attribute DOMString longDesc;
|
|
|
|
|
2019-03-02 07:22:05 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
|
|
|
attribute [TreatNullAs=EmptyString] DOMString marginHeight;
|
|
|
|
[CEReactions, SetterThrows, Pure]
|
|
|
|
attribute [TreatNullAs=EmptyString] DOMString marginWidth;
|
2013-02-27 19:38:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
partial interface HTMLIFrameElement {
|
2013-06-12 08:56:26 +04:00
|
|
|
// GetSVGDocument
|
2016-10-03 11:34:14 +03:00
|
|
|
[NeedsSubjectPrincipal]
|
2013-02-27 19:38:32 +04:00
|
|
|
Document? getSVGDocument();
|
|
|
|
};
|
|
|
|
|
2019-09-24 18:22:26 +03:00
|
|
|
HTMLIFrameElement includes MozFrameLoaderOwner;
|
2018-10-01 09:09:44 +03:00
|
|
|
|
2019-07-08 03:10:56 +03:00
|
|
|
// https://w3c.github.io/webappsec-feature-policy/#idl-index
|
2018-10-01 09:09:44 +03:00
|
|
|
partial interface HTMLIFrameElement {
|
2018-11-15 01:58:52 +03:00
|
|
|
[SameObject, Pref="dom.security.featurePolicy.webidl.enabled"]
|
2019-07-08 03:10:56 +03:00
|
|
|
readonly attribute FeaturePolicy featurePolicy;
|
2018-10-01 09:09:44 +03:00
|
|
|
|
|
|
|
[CEReactions, SetterThrows, Pure, Pref="dom.security.featurePolicy.enabled"]
|
|
|
|
attribute DOMString allow;
|
|
|
|
};
|