script: Fix loading of about:srcdoc documents (#41959)

Align with the spec and implement part of its lazy loading
steps. Most tests use non-srcdoc lazy loading URLs, so most
tests will not pass until the other parts are implemented
as well.

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
Tim van der Lippe
2026-02-25 20:57:41 +01:00
committed by GitHub
parent 4098f6a883
commit 756af3bf37
5 changed files with 225 additions and 46 deletions

View File

@@ -7,26 +7,19 @@
interface HTMLIFrameElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions]
attribute USVString src;
[CEReactions, SetterThrows]
attribute (TrustedHTML or DOMString) srcdoc;
[CEReactions]
attribute DOMString name;
[SameObject, PutForwards=value]
readonly attribute DOMTokenList sandbox;
// [CEReactions]
// attribute boolean seamless;
[CEReactions]
attribute boolean allowFullscreen;
[CEReactions] attribute USVString src;
[CEReactions, SetterThrows] attribute (TrustedHTML or DOMString) srcdoc;
[CEReactions] attribute DOMString name;
[SameObject, PutForwards=value] readonly attribute DOMTokenList sandbox;
// [CEReactions, Reflect] attribute DOMString allow;
[CEReactions] attribute boolean allowFullscreen;
[CEReactions] attribute DOMString width;
[CEReactions]
attribute DOMString referrerPolicy;
[CEReactions] attribute DOMString height;
[CEReactions] attribute DOMString referrerPolicy;
[CEReactions] attribute DOMString loading;
readonly attribute Document? contentDocument;
readonly attribute WindowProxy? contentWindow;
// Document? getSVGDocument();
// also has obsolete members
};