<?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>25498</bug_id>
          
          <creation_ts>2014-04-29 12:50:02 +0000</creation_ts>
          <short_desc>Why all methods generated trusted event?</short_desc>
          <delta_ts>2014-04-30 05:23:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>CSSOM View</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="Arkadiusz Michalski (Spirit)">crimsteam</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>104676</commentid>
    <comment_count>0</comment_count>
    <who name="Arkadiusz Michalski (Spirit)">crimsteam</who>
    <bug_when>2014-04-29 12:50:02 +0000</bug_when>
    <thetext>Hi, firing trusted event in all method in CSSOM View Module is intentional?

Firstly, at this moment only Firefox and IE support Event.isTrusted, so you should test them. Secondly, at this moment this browser set isTrusted=&quot;true&quot; for this methods, but it looks like a bug in the specification.

All specification (or at least most) defined that when we invoke method from script must be firing synthetic event (isTrusted=&quot;false&quot;), but in CSSOM View Module all method requires a trusted event.

Check definition for:
- Window.scroll()
- Window.scrollTo()
- Window.scrollBy()
- Element.scrollTop (when setting)
- Element.scrollLeft(when setting)
- and probably in more cases (I check only above)

If for some reason must be trusted then OK, but it looks weird.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104724</commentid>
    <comment_count>1</comment_count>
    <who name="Arkadiusz Michalski (Spirit)">crimsteam</who>
    <bug_when>2014-04-29 21:34:14 +0000</bug_when>
    <thetext>It seems that I misunderstood subject, only click() has isTrusted=&quot;false&quot;, other events (even if they are the result of the method call from inside the script) have isTrusted=&quot;true&quot;. 

Hmm, so now we can&apos;t detect that some event are derived from methods inside the script (not user interaction), what looks like a slight limitation for developers:

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25504

In summary, if this bug is not needed please close it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104778</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-04-30 05:23:45 +0000</bug_when>
    <thetext>It seems they are trusted in Gecko (didn&apos;t check IE). In general, events are trusted, except those dispatched with dispatchEvent. Please reopen if this situation changes in bug 25504.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>