<?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>217931</bug_id>
          
          <creation_ts>2020-10-19 16:45:10 -0700</creation_ts>
          <short_desc>wpt/**/moving-between-documents/before-prepare-*/move-back-* tests are flaky</short_desc>
          <delta_ts>2020-12-08 13:58:07 -0800</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>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=217908</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=214685</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=214734</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=215278</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=215283</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=215706</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=215783</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=218650</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=218651</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>219655</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hector Lopez">hector_i_lopez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>dpino</cc>
    
    <cc>gsnedders</cc>
    
    <cc>rackler</cc>
    
    <cc>rniwa</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>tsavell</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1699518</commentid>
    <comment_count>0</comment_count>
    <who name="Hector Lopez">hector_i_lopez</who>
    <bug_when>2020-10-19 16:45:10 -0700</bug_when>
    <thetext>imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-empty-src-module.html

Test is a flaky failure according to history on macOS Debug. First occurrence of failure is at r265019.

History:

https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fhtml%2Fsemantics%2Fscripting-1%2Fthe-script-element%2Fmoving-between-documents%2Fbefore-prepare-createHTMLDocument-success-empty-src-module.html&amp;style=debug&amp;platform=mac&amp;limit=50000

Diff:
--- /Volumes/Data/slave/catalina-debug-tests-wk2/build/layout-test-results/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-empty-src-module-expected.txt
+++ /Volumes/Data/slave/catalina-debug-tests-wk2/build/layout-test-results/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/moving-between-documents/before-prepare-createHTMLDocument-success-empty-src-module-actual.txt
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: ReferenceError: Can&apos;t find variable: scriptOnError
 
 
 PASS Sanity check around top-level Window</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1699519</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-10-19 16:45:35 -0700</bug_when>
    <thetext>&lt;rdar://problem/70462057&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1699522</commentid>
    <comment_count>2</comment_count>
    <who name="Hector Lopez">hector_i_lopez</who>
    <bug_when>2020-10-19 16:49:35 -0700</bug_when>
    <thetext>Test expectation while investigated:

https://trac.webkit.org/changeset/268698/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700480</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-10-21 17:18:06 -0700</bug_when>
    <thetext>We are no up to 8 bugs for flaky tests in this one directory, failing with similar messages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700482</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-10-21 17:21:54 -0700</bug_when>
    <thetext>scriptOnError is referenced in moving-between-documents-iframe.py. Maybe moving-between-documents-helper.js isn&apos;t always loaded?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700509</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-10-21 18:57:57 -0700</bug_when>
    <thetext>I only see 200 OK responses for moving-between-documents-helper.js in WPT server log, https://build.webkit.org/results/Apple-Mojave-Debug-WK2-Tests/r268804%20(12688)/wptwk_process_log.out.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700518</commentid>
    <comment_count>6</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-10-21 19:07:15 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #5)
&gt; I only see 200 OK responses for moving-between-documents-helper.js in WPT
&gt; server log,
&gt; https://build.webkit.org/results/Apple-Mojave-Debug-WK2-Tests/
&gt; r268804%20(12688)/wptwk_process_log.out.txt

Well, if the error happens before that helper JS is loaded, we&apos;d still fail to find the function, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700679</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-10-22 09:27:24 -0700</bug_when>
    <thetext>Maybe? I hope that you found the link useful as a tiny piece of additional information.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1711482</commentid>
    <comment_count>8</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2020-12-02 15:11:04 -0800</bug_when>
    <thetext>The identical failures of the various tests in this directory seems to happen on most platforms on debug but not release. They&apos;re all timing === &quot;before-prepare&quot; || timing === &quot;move-back&quot; cases in moving-between-documents-iframe.js too.

I&apos;m suspicious of the `time.sleep(1)` (i.e., 1s) calls in html/semantics/scripting-1/the-script-element/moving-between-documents/resources/moving-between-documents-iframe.py; I suspect in debug we&apos;re just _that slow_ such that the server wins the race and the script runs before window.scriptOnError is assigned.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1711559</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-12-02 18:47:55 -0800</bug_when>
    <thetext>*** Bug 219464 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1712898</commentid>
    <comment_count>10</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2020-12-08 13:43:28 -0800</bug_when>
    <thetext>*** Bug 214685 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1712900</commentid>
    <comment_count>11</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2020-12-08 13:43:38 -0800</bug_when>
    <thetext>*** Bug 214734 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1712902</commentid>
    <comment_count>12</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2020-12-08 13:43:45 -0800</bug_when>
    <thetext>*** Bug 215278 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1712904</commentid>
    <comment_count>13</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2020-12-08 13:43:51 -0800</bug_when>
    <thetext>*** Bug 215283 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1712906</commentid>
    <comment_count>14</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2020-12-08 13:43:57 -0800</bug_when>
    <thetext>*** Bug 215706 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1712908</commentid>
    <comment_count>15</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2020-12-08 13:44:02 -0800</bug_when>
    <thetext>*** Bug 215783 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1712910</commentid>
    <comment_count>16</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2020-12-08 13:44:08 -0800</bug_when>
    <thetext>*** Bug 218650 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1712912</commentid>
    <comment_count>17</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2020-12-08 13:44:13 -0800</bug_when>
    <thetext>*** Bug 218651 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1712914</commentid>
    <comment_count>18</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2020-12-08 13:44:19 -0800</bug_when>
    <thetext>*** Bug 217908 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1712921</commentid>
    <comment_count>19</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2020-12-08 13:58:07 -0800</bug_when>
    <thetext>filed https://github.com/web-platform-tests/wpt/issues/26808 upstream for this flakiness</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>