Fix 25359 - Use [Unforgeable] and [NewObject] annotations in D3E
authorTravis Leithead
Mon, 28 Apr 2014 16:00:51 -0700
changeset 603 81dcf597c71b
parent 601 6dcf2b67dfd3
child 604 e1ca24f8ffa3
Fix 25359 - Use [Unforgeable] and [NewObject] annotations in D3E

Adds these annotations (as well as [Exposed]) to bring our IDLs up to latest
WebIDL syntax.
html/DOM3-Events.html
--- a/html/DOM3-Events.html	Mon Apr 28 15:34:27 2014 -0700
+++ b/html/DOM3-Events.html	Mon Apr 28 16:00:51 2014 -0700
@@ -1070,7 +1070,7 @@
 				<dt>boolean cancelable = false</dt><dd></dd>
 			</dl>
 
-			<dl class="idl" title="[Constructor(DOMString typeArg, optional EventInit eventInitDict] interface Event">
+			<dl class="idl" title="[Constructor(DOMString typeArg, optional EventInit eventInitDict), Exposed=Window,Worker] interface Event">
 				<dt>// PhaseType</dt>
 
 				<dt>const unsigned short NONE = 0</dt>
@@ -1324,7 +1324,7 @@
 						the internal default-prevented state of the event.</p>
 				</dd>
 
-				<dt>readonly attribute boolean isTrusted</dt>
+				<dt>[Unforgeable] readonly attribute boolean isTrusted</dt>
 				<dd>
 					<p class="intro-dom">Introduced in DOM Level 3</p>
 
@@ -1361,7 +1361,7 @@
 				<dt>any detail = null</dt><dd></dd>
 			</dl>
 
-			<dl class="idl" title="[Constructor(DOMString typeArg, optional CustomEventInit customEventInitDict] interface CustomEvent : Event">
+			<dl class="idl" title="[Constructor(DOMString typeArg, optional CustomEventInit customEventInitDict), Exposed=Window,Worker] interface CustomEvent : Event">
 				<dt>readonly attribute any detail</dt>
 				<dd>
 					<p>Specifies some detail information about the <a href="#interface-Event"><code>Event</code></a>.
@@ -1401,7 +1401,7 @@
 				in this way by adding the prefix <em><code>on-</code></em> to the event type name. Dispatching events to these listeners is expected to behave consistently with the
 				event registration and propagation defined in this specification, with the same interfaces, properties, and methods.</p>
 
-			<dl class="idl" title="interface EventTarget">
+			<dl class="idl" title="[Exposed=Window,Worker] interface EventTarget">
 				<dt>// Modified in DOM Level 3</dt>
 
 				<dt>void addEventListener()</dt>
@@ -1572,7 +1572,7 @@
 
 			<!-- NOTE: This is preserved as a [NoInterfaceObject] definition (rather than a partial interface Document { ..} because SVG also needs to implement this interface on their SVGSVGElement interface -->
 			<dl class="idl" title="[NoInterfaceObject] interface DocumentEvent">
-				<dt>Event createEvent()</dt>
+				<dt>[NewObject] Event createEvent()</dt>
 				<dd>
 					<p class="intro-dom">Modified in DOM Level 3</p>