Title: [292885] trunk/Source/WebCore
Revision
292885
Author
cdu...@apple.com
Date
2022-04-14 12:52:17 -0700 (Thu, 14 Apr 2022)

Log Message

Require an existing AtomString for HTMLDocument's named getter parameter
https://bugs.webkit.org/show_bug.cgi?id=239334

Reviewed by Alexey Shvayka.

Require an existing AtomString for HTMLDocument's named getter parameter. There is no point
in allocating a new AtomString as the AtomString should already exist if there is any element
with this name.

* html/HTMLDocument.idl:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (292884 => 292885)


--- trunk/Source/WebCore/ChangeLog	2022-04-14 19:45:24 UTC (rev 292884)
+++ trunk/Source/WebCore/ChangeLog	2022-04-14 19:52:17 UTC (rev 292885)
@@ -1,3 +1,16 @@
+2022-04-14  Chris Dumez  <cdu...@apple.com>
+
+        Require an existing AtomString for HTMLDocument's named getter parameter
+        https://bugs.webkit.org/show_bug.cgi?id=239334
+
+        Reviewed by Alexey Shvayka.
+
+        Require an existing AtomString for HTMLDocument's named getter parameter. There is no point
+        in allocating a new AtomString as the AtomString should already exist if there is any element
+        with this name.
+
+        * html/HTMLDocument.idl:
+
 2022-04-14  J Pascoe  <j_pas...@apple.com>
 
         [WebAuthn] Clean up WebAuthenticationModern and WebAuthnProcess

Modified: trunk/Source/WebCore/html/HTMLDocument.idl (292884 => 292885)


--- trunk/Source/WebCore/html/HTMLDocument.idl	2022-04-14 19:45:24 UTC (rev 292884)
+++ trunk/Source/WebCore/html/HTMLDocument.idl	2022-04-14 19:52:17 UTC (rev 292885)
@@ -24,5 +24,5 @@
     LegacyOverrideBuiltIns,
     Exposed=Window
 ] interface HTMLDocument : Document {    
-    getter (WindowProxy or Element or HTMLCollection) ([AtomString] DOMString name);
+    getter (WindowProxy or Element or HTMLCollection) ([RequiresExistingAtomString] DOMString name);
 };
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to