<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>25359</bug_id>
          
          <creation_ts>2014-04-15 22:55:53 +0000</creation_ts>
          <short_desc>Use [Unforgeable] and [NewObject] annotations in D3E</short_desc>
          <delta_ts>2014-04-28 23:06:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - DOM3 Events</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gary Kacmarcik">garykac</reporter>
          <assigned_to name="Travis Leithead [MSFT]">travil</assigned_to>
          <cc>annevk</cc>
    
    <cc>mike</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103914</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Kacmarcik">garykac</who>
    <bug_when>2014-04-15 22:55:53 +0000</bug_when>
    <thetext>(originally from 25295)

https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#idl-def-Event
IDL for isTrusted has the form: readonly attribute boolean isTrusted;

http://dom.spec.whatwg.org/#interface-event
In new DOM we have additional extended attribute: [Unforgeable] readonly attribute boolean isTrusted;

It&apos;s important and should be add.

Similar situation (but less meaning):

interface DocumentEvent {
    Event createEvent (DOMString eventInterface);
};

change to:

interface DocumentEvent {
    [NewObject] Event createEvent (DOMString eventInterface);
};</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103925</commentid>
    <comment_count>1</comment_count>
    <who name="Gary Kacmarcik">garykac</who>
    <bug_when>2014-04-16 00:24:02 +0000</bug_when>
    <thetext>We need to compare D3E with D4 and make sure that the IDLs match for all attributes and methods that are common.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103928</commentid>
    <comment_count>2</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2014-04-16 00:42:21 +0000</bug_when>
    <thetext>The only other difference I see is the use of the [Exposed] attribute:

[Exposed=Window,Worker] to the Event, CustomEvent, and EventTarget interfaces

But, since Exposed is only defined in WebIDL second edition, I think we&apos;re OK not using it at the moment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103965</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-04-16 15:00:17 +0000</bug_when>
    <thetext>That sounds ridiculous and will cause confusion. Can we please just stop the pretense that DOM in general has not evolved past Level 3?

Doing DOM Level 3 Events &quot;quickly&quot; never happened. Let&apos;s instead aim for doing it correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103981</commentid>
    <comment_count>4</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2014-04-16 17:24:22 +0000</bug_when>
    <thetext>Well, if we agree with Anne&apos;s comments, then [Exposed] is for altering the default &quot;exposure&quot; of the interface outside of the &quot;primary global interface&quot; (http://heycam.github.io/webidl/#Exposed). The default as I understand it, is the Window object (vs. a worker object).

So besides just harmonizing with what&apos;s in DOM4, we&apos;d need to review all of our interfaces to see which ones we define that might need exposure to Web workers. If they do need to be exposed, then we don&apos;t need to add the [Exposed] extended attribute, since the default will suffice.

Here&apos;s the list and my default recommendations:

* UIEvent - default exposure
* FocusEvent - default exposure
* MouseEvent - default exposure
* WheelEvent - default exposure
* InputEvent - default exposure
* KeyboardEvent - default exposure
* CompositionEvent - default exposure
* MutationEvent (legacy) - default exposure

So, in summary, if this list is acceptable, then Exposed is only needed for the events which are already defined to be exposed to workers in Dom4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104002</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-04-16 19:35:35 +0000</bug_when>
    <thetext>If you acknowledge the DOM is further ahead than Level 3, there&apos;s no need to duplicate its contents in DOM Level 3 Events. That is what is confusing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104615</commentid>
    <comment_count>6</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2014-04-28 23:06:17 +0000</bug_when>
    <thetext>I&apos;ve not committed these IDL changes to the latest editor&apos;s draft.

https://dvcs.w3.org/hg/dom3events/rev/81dcf597c71b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>