<?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>171739</bug_id>
          
          <creation_ts>2017-05-05 11:16:20 -0700</creation_ts>
          <short_desc>LayoutTest js/Promise-types.html is a flaky failure (Unhandled Promise Rejection messages)</short_desc>
          <delta_ts>2017-05-19 15:26:31 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Ryan Haddad">ryanhaddad</assigned_to>
          <cc>ap</cc>
    
    <cc>commit-queue</cc>
    
    <cc>fpizlo</cc>
    
    <cc>jlewis3</cc>
    
    <cc>joepeck</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1305216</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-05-05 11:16:20 -0700</bug_when>
    <thetext>LayoutTest js/Promise-types.html is a flaky failure

https://build.webkit.org/results/Apple%20Sierra%20Debug%20WK2%20(Tests)/r216244%20(831)/results.html

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=js%2FPromise-types.html

--- /Volumes/Data/slave/sierra-debug-tests-wk2/build/layout-test-results/js/Promise-types-expected.txt
+++ /Volumes/Data/slave/sierra-debug-tests-wk2/build/layout-test-results/js/Promise-types-actual.txt
@@ -1,3 +1,5 @@
+CONSOLE MESSAGE: Unhandled Promise Rejection: 1
+CONSOLE MESSAGE: Unhandled Promise Rejection: 1
 Promises - Test basic types / exceptions.
 
 On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1305218</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-05-05 11:17:01 -0700</bug_when>
    <thetext>I&apos;m guessing this test needs the same treatment applied to the tests in https://bugs.webkit.org/show_bug.cgi?id=171445</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1309848</commentid>
    <comment_count>2</comment_count>
    <who name="Matt Lewis">jlewis3</who>
    <bug_when>2017-05-17 15:02:40 -0700</bug_when>
    <thetext>reproduced locally on Sierra debug with:

run-webkit-tests js/Promise-types.html -f --iterations=500 --no-retry-failure -g --debug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1309916</commentid>
    <comment_count>3</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-05-17 17:00:27 -0700</bug_when>
    <thetext>(In reply to Ryan Haddad from comment #1)
&gt; I&apos;m guessing this test needs the same treatment applied to the tests in
&gt; https://bugs.webkit.org/show_bug.cgi?id=171445

Correct that would be sufficient.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1310423</commentid>
    <comment_count>4</comment_count>
      <attachid>310600</attachid>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-05-18 20:18:16 -0700</bug_when>
    <thetext>Created attachment 310600
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1310685</commentid>
    <comment_count>5</comment_count>
      <attachid>310600</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-05-19 11:40:32 -0700</bug_when>
    <thetext>Comment on attachment 310600
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1310700</commentid>
    <comment_count>6</comment_count>
      <attachid>310600</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-05-19 12:09:38 -0700</bug_when>
    <thetext>Comment on attachment 310600
Patch

Clearing flags on attachment: 310600

Committed r217140: &lt;http://trac.webkit.org/changeset/217140&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1310701</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-05-19 12:09:39 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1310757</commentid>
    <comment_count>8</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-05-19 13:48:34 -0700</bug_when>
    <thetext>My change managed to break the test when it is run as part of the JSC tests:

jsc-layout-tests.yaml/js/script-tests/Promise-types.js.layout-no-cjit: Exception: ReferenceError: Can&apos;t find variable: window


https://build.webkit.org/builders/Apple%20Sierra%20Release%20JSC%20%28Tests%29/builds/1434</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1310759</commentid>
    <comment_count>9</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-05-19 13:58:34 -0700</bug_when>
    <thetext>(In reply to Ryan Haddad from comment #8)
&gt; My change managed to break the test when it is run as part of the JSC tests:
&gt; 
&gt; jsc-layout-tests.yaml/js/script-tests/Promise-types.js.layout-no-cjit:
&gt; Exception: ReferenceError: Can&apos;t find variable: window
&gt; 
&gt; 
&gt; https://build.webkit.org/builders/
&gt; Apple%20Sierra%20Release%20JSC%20%28Tests%29/builds/1434

Ahh yes, I should have realized.

You could actually just do:

    onunhandledrejection = () =&gt; false;

Without the `window.` portion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1310760</commentid>
    <comment_count>10</comment_count>
      <attachid>310600</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2017-05-19 14:08:01 -0700</bug_when>
    <thetext>Comment on attachment 310600
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=310600&amp;action=review

&gt; LayoutTests/js/script-tests/Promise-types.js:10
&gt; +// Silence unhandled rejection messages.
&gt; +window.onunhandledrejection = () =&gt; false;
&gt; +

This caused the test to always fail in jsc tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1310805</commentid>
    <comment_count>11</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-05-19 15:18:29 -0700</bug_when>
    <thetext>(In reply to Joseph Pecoraro from comment #9)
&gt; (In reply to Ryan Haddad from comment #8)
&gt; &gt; My change managed to break the test when it is run as part of the JSC tests:
&gt; &gt; 
&gt; &gt; jsc-layout-tests.yaml/js/script-tests/Promise-types.js.layout-no-cjit:
&gt; &gt; Exception: ReferenceError: Can&apos;t find variable: window
&gt; &gt; 
&gt; &gt; 
&gt; &gt; https://build.webkit.org/builders/
&gt; &gt; Apple%20Sierra%20Release%20JSC%20%28Tests%29/builds/1434
&gt; 
&gt; Ahh yes, I should have realized.
&gt; 
&gt; You could actually just do:
&gt; 
&gt;     onunhandledrejection = () =&gt; false;
&gt; 
&gt; Without the `window.` portion.

I verified that making this change fixes the test failure when run locally. I will land a follow up fix to correct my error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1310808</commentid>
    <comment_count>12</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-05-19 15:26:31 -0700</bug_when>
    <thetext>Fixed in https://trac.webkit.org/r217155</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>310600</attachid>
            <date>2017-05-18 20:18:16 -0700</date>
            <delta_ts>2017-05-19 12:09:38 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-171739-20170518201815.patch</filename>
            <type>text/plain</type>
            <size>1317</size>
            <attacher name="Ryan Haddad">ryanhaddad</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjE3MDkwCmRpZmYgLS1naXQgYS9MYXlvdXRUZXN0cy9DaGFu
Z2VMb2cgYi9MYXlvdXRUZXN0cy9DaGFuZ2VMb2cKaW5kZXggMTVmZTg0ZDVjZDUzOWQ5YmJkNzIz
YzNmYTg2OGQxZmExNDFjYTcxNi4uMDllZjliOTVkMWM3ODQzNDU3NjdiOTMxZDM3MjllMGM3MWI1
M2ExNiAxMDA2NDQKLS0tIGEvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCisrKyBiL0xheW91dFRlc3Rz
L0NoYW5nZUxvZwpAQCAtMSwzICsxLDE0IEBACisyMDE3LTA1LTE4ICBSeWFuIEhhZGRhZCAgPHJ5
YW5oYWRkYWRAYXBwbGUuY29tPgorCisgICAgICAgIExheW91dFRlc3QganMvUHJvbWlzZS10eXBl
cy5odG1sIGlzIGEgZmxha3kgZmFpbHVyZSAoVW5oYW5kbGVkIFByb21pc2UgUmVqZWN0aW9uIG1l
c3NhZ2VzKQorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9
MTcxNzM5CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAg
U2lsZW5jZSB0aGUgY29uc29sZSBtZXNzYWdlcyBmb3IgdW5oYW5kbGVkIHJlamVjdGlvbnMgaW4g
dGhpcyBMYXlvdXRUZXN0LgorCisgICAgICAgICoganMvc2NyaXB0LXRlc3RzL1Byb21pc2UtdHlw
ZXMuanM6CisKIDIwMTctMDUtMTggIEFuZHkgRXN0ZXMgIDxhZXN0ZXNAYXBwbGUuY29tPgogCiAg
ICAgICAgIFVucmV2aWV3ZWQgZ2FyZGVuaW5nIG9uIEFwcGxlUGF5U2Vzc2lvbi5odG1sIGFmdGVy
IHIyMTcwNzgu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