From c9991a9d1c29ea2dd4328317f75aeb144923747e Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Wed, 15 Jan 2025 15:00:09 +0900 Subject: [PATCH 1/2] Fix url and src in NotRestoredReasons url was previously listed as a DOMString, but it should be a USVString. This change is not observable since it always contained a serialized URL anyway. src was previously listed as containing the literal value of the src="" content attribute. However, the intended behavior was to contain the parsed-then-serialized value of the src IDL attribute, i.e., the result after content/IDL attribute reflection. Fix the spec to reflect that, which allows also changing it to USVString. Finally, also account for the fact that sometimes content attributes can be missing, in which case these properties need to return the empty string. (Not null, which is reserved for the top level or non-iframe child cases.) Closes #10895. --- source | 41 +++++++++++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/source b/source index 5ac4faf7eb7..844c33a2917 100644 --- a/source +++ b/source @@ -96948,10 +96948,10 @@ interface NotRestoredReasonDetails { [Exposed=Window] interface NotRestoredReasons { - readonly attribute DOMString? src; + readonly attribute USVString? src; readonly attribute DOMString? id; readonly attribute DOMString? name; - readonly attribute DOMString? url; + readonly attribute USVString? url; readonly attribute FrozenArray<NotRestoredReasonDetails>? reasons; readonly attribute FrozenArray<NotRestoredReasons>? children; [Default] object toJSON(); @@ -97395,7 +97395,8 @@ interface NotRestoredReasons { the following items: