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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>153763</bug_id>
          
          <creation_ts>2016-02-01 13:40:08 -0800</creation_ts>
          <short_desc>[iOS Simulator] fast/dom/event-handler-attributes.html failing</short_desc>
          <delta_ts>2017-10-21 13:56:17 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 9.0</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          
          <blocked>152130</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>darin</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>jeremyj-wk</cc>
    
    <cc>vodrickcarter987</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1161007</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-02-01 13:40:08 -0800</bug_when>
    <thetext>[iOS Simulator] fast/dom/event-handler-attributes.html failing

&lt;https://build.webkit.org/results/Apple%20iOS%209%20Simulator%20Release%20WK2%20(Tests)/r195975%20(2771)/results.html&gt;
&lt;http://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=fast%2Fdom%2Fevent-handler-attributes.html&gt;

--- /Volumes/Data/slave/ios-simulator-9-release-tests-wk2/build/layout-test-results/fast/dom/event-handler-attributes-expected.txt
+++ /Volumes/Data/slave/ios-simulator-9-release-tests-wk2/build/layout-test-results/fast/dom/event-handler-attributes-actual.txt
@@ -148,7 +148,7 @@
 PASS testScriptAttribute(document, &quot;ratechange&quot;) is &quot;document&quot;
 PASS testScriptAttribute(document, &quot;readystatechange&quot;) is &quot;document&quot;
 PASS testScriptAttribute(document, &quot;reset&quot;) is &quot;document&quot;
-PASS testScriptAttribute(document, &quot;resize&quot;) is &quot;document&quot;
+FAIL testScriptAttribute(document, &quot;resize&quot;) should be document. Was window, document.
 PASS testScriptAttribute(document, &quot;scroll&quot;) is &quot;document&quot;
 PASS testScriptAttribute(document, &quot;search&quot;) is &quot;document&quot;
 PASS testScriptAttribute(document, &quot;seeked&quot;) is &quot;document&quot;
@@ -246,7 +246,7 @@
 PASS testElementAttribute(element, &quot;progress&quot;) is &quot;target&quot;
 PASS testElementAttribute(element, &quot;ratechange&quot;) is &quot;target&quot;
 PASS testElementAttribute(element, &quot;reset&quot;) is &quot;target&quot;
-PASS testElementAttribute(element, &quot;resize&quot;) is &quot;target&quot;
+FAIL testElementAttribute(element, &quot;resize&quot;) should be target. Was target, window.
 PASS testElementAttribute(element, &quot;scroll&quot;) is &quot;target&quot;
 PASS testElementAttribute(element, &quot;search&quot;) is &quot;target&quot;
 PASS testElementAttribute(element, &quot;seeked&quot;) is &quot;target&quot;
@@ -339,7 +339,7 @@
 PASS testElementAttribute(inputElement, &quot;progress&quot;) is &quot;target&quot;
 PASS testElementAttribute(inputElement, &quot;ratechange&quot;) is &quot;target&quot;
 PASS testElementAttribute(inputElement, &quot;reset&quot;) is &quot;target&quot;
-PASS testElementAttribute(inputElement, &quot;resize&quot;) is &quot;target&quot;
+FAIL testElementAttribute(inputElement, &quot;resize&quot;) should be target. Was target, window.
 PASS testElementAttribute(inputElement, &quot;scroll&quot;) is &quot;target&quot;
 PASS testElementAttribute(inputElement, &quot;search&quot;) is &quot;target&quot;
 PASS testElementAttribute(inputElement, &quot;seeked&quot;) is &quot;target&quot;
@@ -432,7 +432,7 @@
 PASS testElementAttribute(audioElement, &quot;progress&quot;) is &quot;target&quot;
 PASS testElementAttribute(audioElement, &quot;ratechange&quot;) is &quot;target&quot;
 PASS testElementAttribute(audioElement, &quot;reset&quot;) is &quot;target&quot;
-PASS testElementAttribute(audioElement, &quot;resize&quot;) is &quot;target&quot;
+FAIL testElementAttribute(audioElement, &quot;resize&quot;) should be target. Was target, window.
 PASS testElementAttribute(audioElement, &quot;scroll&quot;) is &quot;target&quot;
 PASS testElementAttribute(audioElement, &quot;search&quot;) is &quot;target&quot;
 PASS testElementAttribute(audioElement, &quot;seeked&quot;) is &quot;target&quot;
@@ -525,7 +525,7 @@
 PASS testElementAttribute(videoElement, &quot;progress&quot;) is &quot;target&quot;
 PASS testElementAttribute(videoElement, &quot;ratechange&quot;) is &quot;target&quot;
 PASS testElementAttribute(videoElement, &quot;reset&quot;) is &quot;target&quot;
-PASS testElementAttribute(videoElement, &quot;resize&quot;) is &quot;target&quot;
+FAIL testElementAttribute(videoElement, &quot;resize&quot;) should be target. Was target, window.
 PASS testElementAttribute(videoElement, &quot;scroll&quot;) is &quot;target&quot;
 PASS testElementAttribute(videoElement, &quot;search&quot;) is &quot;target&quot;
 PASS testElementAttribute(videoElement, &quot;seeked&quot;) is &quot;target&quot;
@@ -816,7 +816,7 @@
 PASS testElementAttribute(rectElement, &quot;progress&quot;) is &quot;target&quot;
 PASS testElementAttribute(rectElement, &quot;ratechange&quot;) is &quot;target&quot;
 PASS testElementAttribute(rectElement, &quot;reset&quot;) is &quot;target&quot;
-PASS testElementAttribute(rectElement, &quot;resize&quot;) is &quot;target&quot;
+FAIL testElementAttribute(rectElement, &quot;resize&quot;) should be target. Was target, window.
 PASS testElementAttribute(rectElement, &quot;scroll&quot;) is &quot;target&quot;
 PASS testElementAttribute(rectElement, &quot;search&quot;) is &quot;target&quot;
 PASS testElementAttribute(rectElement, &quot;seeked&quot;) is &quot;target&quot;
@@ -919,7 +919,7 @@
 FAIL testElementAttribute(nonHTMLElement, &quot;ratechange&quot;) should be none. Was script: target; content: none.
 PASS testElementAttribute(nonHTMLElement, &quot;readystatechange&quot;) is &quot;none&quot;
 FAIL testElementAttribute(nonHTMLElement, &quot;reset&quot;) should be none. Was script: target; content: none.
-FAIL testElementAttribute(nonHTMLElement, &quot;resize&quot;) should be none. Was script: target; content: none.
+FAIL testElementAttribute(nonHTMLElement, &quot;resize&quot;) should be none. Was script: target, window; content: none.
 FAIL testElementAttribute(nonHTMLElement, &quot;scroll&quot;) should be none. Was script: target; content: none.
 FAIL testElementAttribute(nonHTMLElement, &quot;search&quot;) should be none. Was script: target; content: none.
 FAIL testElementAttribute(nonHTMLElement, &quot;seeked&quot;) should be none. Was script: target; content: none.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1161008</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-02-01 13:40:29 -0800</bug_when>
    <thetext>This test has been failing since it was added with &lt;http://trac.webkit.org/changeset/195953&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1161536</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-02-02 21:39:30 -0800</bug_when>
    <thetext>Jeremy, could you please advise if this is expected behavior for iOS?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162227</commentid>
    <comment_count>3</comment_count>
    <who name="Jeremy Jones">jeremyj-wk</who>
    <bug_when>2016-02-04 15:54:15 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Jeremy, could you please advise if this is expected behavior for iOS?

I expect these to behave the same on iOS and MacOS. This test is passing on MacOS, so I expect it to also pass in iOS. 

This is testing the change to dom/GlobalEventHandlers.idl and page/DOMWindow.idl
And they don&apos;t look to be platform specific.

I&apos;ll continue to investigate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162977</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2016-02-08 12:18:13 -0800</bug_when>
    <thetext>When IDL changes cause unexpected test failures, the first thing I try is to force a clean build to make sure everything is regenerated properly.  (That should NOT be required if we had proper dependency tracking, but apparently that&apos;s not fully fixed yet.)

Forced clean build on bot403:  &lt;https://build.webkit.org/builders/Apple%20iOS%209%20Simulator%20Release%20%28Build%29/builds/3272&gt;

Forced clean build on bot402:  &lt;https://build.webkit.org/builders/Apple%20iOS%209%20Simulator%20Release%20%28Build%29/builds/3273&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1163020</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2016-02-08 14:34:46 -0800</bug_when>
    <thetext>This may be caused by:

    // FIXME: Would it be sufficient to special-case this code for &lt;body&gt; and &lt;frameset&gt;?
    //
    // This code was added to address &lt;rdar://problem/5846492&gt; Onorientationchange event not working for document.body.
    // Forward this call to addEventListener() to the window since these are window-only events.
    if (eventType == eventNames().orientationchangeEvent || eventType == eventNames().resizeEvent)
        targetNode-&gt;document().domWindow()-&gt;addEventListener(eventType, WTFMove(listener), useCapture);


in Node.cpp’s tryAddEventListener().

This code is iOS specific and goes and set and event listener for the ‘resize’ event on the Window for some reason.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1163671</commentid>
    <comment_count>6</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-02-10 16:45:25 -0800</bug_when>
    <thetext>Added an ios-specific expectation to keep the test running during investigation in &lt;https://trac.webkit.org/r196405&gt;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>