<?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>171445</bug_id>
          
          <creation_ts>2017-04-28 12:55:08 -0700</creation_ts>
          <short_desc>LayoutTests/js/dom/Promise-static-all/race.html are flakey - Unhandled Promise Rejection messages</short_desc>
          <delta_ts>2017-04-28 18:19:55 -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>WebCore JavaScript</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</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="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Joseph Pecoraro">joepeck</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>jlewis3</cc>
    
    <cc>joepeck</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>saam</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1302724</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-04-28 12:55:08 -0700</bug_when>
    <thetext>Summary:
LayoutTests/js/dom/Promise-static-all/race.html are flakey - Unhandled Promise Rejection messages

The layout tests creates two rejected promises p7, and p8 but does nothing with them. They are legitimate unhandled promise rejections.

These promises can get garbage collected during the test run. So the logs depend on whether or not they get GC&apos;d before the RejectionTracker&apos;s task happens.

I&apos;m going to silence the unhandledrejection errors in these tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1302733</commentid>
    <comment_count>1</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-04-28 13:02:42 -0700</bug_when>
    <thetext>&gt; These promises can get garbage collected during the test run.

Hmm, actually I don&apos;t think thats true. They are in window.p7 and window.p8.

Either way, I think disabling the messages is the right thing to do but I&apos;ll look into this a bit more.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1302736</commentid>
    <comment_count>2</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-04-28 13:06:06 -0700</bug_when>
    <thetext>Running the test in the browser I always see the unhandled rejection errors, which is the behavior I would expect. The messages are not important for this test so I&apos;m going to silence them.

There may be some subtle issue here regarding the order of operations between microtasks and tasks, but again not important for this test and not particularly important in general for these optional events.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1302737</commentid>
    <comment_count>3</comment_count>
      <attachid>308585</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-04-28 13:07:14 -0700</bug_when>
    <thetext>Created attachment 308585
[PATCH] Proposed Fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1302738</commentid>
    <comment_count>4</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-04-28 13:07:40 -0700</bug_when>
    <thetext>For reference:
https://build.webkit.org/results/Apple%20iOS%2010%20Simulator%20Release%20WK2%20(Tests)/r215929%20(1023)/results.html

The diffs look like:
--- /Volumes/Data/slave/ios-simulator-10-release-tests-wk2/build/layout-test-results/js/dom/Promise-static-all-expected.txt
+++ /Volumes/Data/slave/ios-simulator-10-release-tests-wk2/build/layout-test-results/js/dom/Promise-static-all-actual.txt
@@ -1,3 +1,5 @@
+CONSOLE MESSAGE: line 1: Unhandled Promise Rejection: p7
+CONSOLE MESSAGE: line 1: Unhandled Promise Rejection: p8
 Test Promise.all
 
 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>1302743</commentid>
    <comment_count>5</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-04-28 13:14:32 -0700</bug_when>
    <thetext>&lt;https://trac.webkit.org/r215938&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1302897</commentid>
    <comment_count>6</comment_count>
    <who name="Matt Lewis">jlewis3</who>
    <bug_when>2017-04-28 17:34:03 -0700</bug_when>
    <thetext>I&apos;m still seeing LayoutTest js/dom/Promise-static-all.html fail as of revision r215953

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

Build Log
https://build.webkit.org/results/Apple%20iOS%2010%20Simulator%20Release%20WK2%20(Tests)/r215953%20(1036)/results.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1302916</commentid>
    <comment_count>7</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-04-28 17:47:33 -0700</bug_when>
    <thetext>Reopening this per Matt&apos;s comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1302929</commentid>
    <comment_count>8</comment_count>
      <attachid>308585</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-04-28 18:14:31 -0700</bug_when>
    <thetext>Comment on attachment 308585
[PATCH] Proposed Fix

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

&gt; LayoutTests/js/dom/Promise-static-all.html:13
&gt; +// window.onunhandledrejection = () =&gt; false;

Oops, this line was commented out by accident.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1302930</commentid>
    <comment_count>9</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2017-04-28 18:19:55 -0700</bug_when>
    <thetext>Fixed in: https://trac.webkit.org/r215966

Thanks for pointing it out!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>308585</attachid>
            <date>2017-04-28 13:07:14 -0700</date>
            <delta_ts>2017-04-28 13:12:43 -0700</delta_ts>
            <desc>[PATCH] Proposed Fix</desc>
            <filename>mute-1.patch</filename>
            <type>text/plain</type>
            <size>1799</size>
            <attacher name="Joseph Pecoraro">joepeck</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0xheW91dFRlc3RzL0NoYW5nZUxvZyBiL0xheW91dFRlc3RzL0NoYW5nZUxv
ZwppbmRleCA0ZDVhYWNlYmE5Ny4uYzU3YzJhNzE2ZjUgMTAwNjQ0Ci0tLSBhL0xheW91dFRlc3Rz
L0NoYW5nZUxvZworKysgYi9MYXlvdXRUZXN0cy9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNyBAQAor
MjAxNy0wNC0yOCAgSm9zZXBoIFBlY29yYXJvICA8cGVjb3Jhcm9AYXBwbGUuY29tPgorCisgICAg
ICAgIExheW91dFRlc3RzL2pzL2RvbS9Qcm9taXNlLXN0YXRpYy1hbGwvcmFjZS5odG1sIGFyZSBm
bGFrZXkgLSBVbmhhbmRsZWQgUHJvbWlzZSBSZWplY3Rpb24gbWVzc2FnZXMKKyAgICAgICAgaHR0
cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE3MTQ0NQorCisgICAgICAgIFJl
dmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICoganMvZG9tL1Byb21pc2Utc3Rh
dGljLWFsbC5odG1sOgorICAgICAgICAqIGpzL2RvbS9Qcm9taXNlLXN0YXRpYy1yYWNlLmh0bWw6
CisgICAgICAgIFNpbGVuY2UgdGhlIGNvbnNvbGUgbWVzc2FnZXMgZm9yIHVuaGFuZGxlZCByZWpl
Y3Rpb25zIGluIHRoaXMgdGVzdC4KKyAgICAgICAgVGhlcmUgYXJlIHVuaGFuZGxlZCByZWplY3Rp
b25z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anMvZG9tL1Byb21pc2Utc3RhdGljLXJhY2UuaHRtbAppbmRleCBkM2I3YTkwZDBjMC4uNWRiNDAz
MTFhMWYgMTAwNjQ0Ci0tLSBhL0xheW91dFRlc3RzL2pzL2RvbS9Qcm9taXNlLXN0YXRpYy1yYWNl
Lmh0bWwKKysrIGIvTGF5b3V0VGVzdHMvanMvZG9tL1Byb21pc2Utc3RhdGljLXJhY2UuaHRtbApA
QCAtOSw2ICs5LDkgQEAKIDxzY3JpcHQ+CiBkZXNjcmlwdGlvbignVGVzdCBQcm9taXNlLnJhY2Un
KTsKIAorLy8gU2lsZW5jZSB1bmhhbmRsZWQgcmVqZWN0aW9uIG1lc3NhZ2VzLgord2luZG93Lm9u
dW5oYW5kbGVkcmVqZWN0aW9uID0gKCkgPT4gZmFsc2U7CisKIHdpbmRvdy5qc1Rlc3RJc0FzeW5j
ID0gdHJ1ZTsKIHJlc3VsdCA9IHVuZGVmaW5lZDsKIAo=
</data>
<flag name="review"
          id="329725"
          type_id="1"
          status="+"
          setter="saam"
    />
          </attachment>
      

    </bug>

</bugzilla>