<?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>203965</bug_id>
          
          <creation_ts>2019-11-07 09:53:12 -0800</creation_ts>
          <short_desc>Web Inspector: http/tests/inspector/target/target-events-for-provisional-page.html is flaky when running with other tests</short_desc>
          <delta_ts>2019-11-07 16:02:32 -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>Web Inspector</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>203981</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yury Semikhatsky">yurys</reporter>
          <assigned_to name="Yury Semikhatsky">yurys</assigned_to>
          <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>hi</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1588261</commentid>
    <comment_count>0</comment_count>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2019-11-07 09:53:12 -0800</bug_when>
    <thetext>http/tests/inspector/target/target-events-for-provisional-page.html

added in https://trac.webkit.org/changeset/251494/webkit

is a flakey failure when running with other tests.

Probable cause:

Some side effect of previous tests that disable PSON.

Flakiness Dashboard:

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=http%2Ftests%2Finspector%2Ftarget%2Ftarget-events-for-provisional-page.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1588267</commentid>
    <comment_count>1</comment_count>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2019-11-07 09:58:45 -0800</bug_when>
    <thetext>The test reliably fails when running after  http/tests/dom/new-window-can-target-opener.html.

Tools/Scripts/run-webkit-tests --no-show-results --no-retry-failures --child-processes=1 http/tests/dom/new-window-can-target-opener.html http/tests/inspector/target/target-events-for-provisional-page.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1588294</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-11-07 10:50:18 -0800</bug_when>
    <thetext>&lt;rdar://problem/56988642&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1588414</commentid>
    <comment_count>3</comment_count>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2019-11-07 14:36:46 -0800</bug_when>
    <thetext>The problem is that new-window-can-target-opener-win.html opened in a child window calls open() on its opener window, i.e. the test page itself (new-window-can-target-opener.html). It in turn triggers Page::setOpenedByDOMWithOpener() on the parent page. The next test will reuse the same instance of PlatformWebView and consequently the same Page in the WebProcess. Since instance of the page is the same it still has Page::openedByDOMWithOpener() == true. Because of that[1] cross-origin navigation in the next test page will reuse same process. I don&apos;t know if this is intentional behavior.

I&apos;m going to add 
&lt;!-- webkit-test-runner [ enableProcessSwapOnWindowOpen=true ] --&gt;
as a temporary workaround for the flaky inspector test but we should probably never reuse a page which was openedByDOM.

[1] https://trac.webkit.org/browser/webkit/trunk/Source/WebKit/UIProcess/WebProcessPool.cpp?rev=252014#L2139

[2] https://trac.webkit.org/browser/webkit/trunk/LayoutTests/http/tests/dom/resources/new-window-can-target-opener-win.html#L19</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1588421</commentid>
    <comment_count>4</comment_count>
      <attachid>383075</attachid>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2019-11-07 14:48:29 -0800</bug_when>
    <thetext>Created attachment 383075
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1588428</commentid>
    <comment_count>5</comment_count>
      <attachid>383075</attachid>
    <who name="Devin Rousso">hi</who>
    <bug_when>2019-11-07 15:04:47 -0800</bug_when>
    <thetext>Comment on attachment 383075
Patch

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

rs=me

&gt; LayoutTests/ChangeLog:11
&gt; +        that may run before (the test may reuse Page instance from the previous test on which
&gt; +        Page::openedByDOMWithOpener==true).

This seems like a bug.  Can you file a separate bug to fix this please?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1588455</commentid>
    <comment_count>6</comment_count>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2019-11-07 15:39:40 -0800</bug_when>
    <thetext>Filed https://bugs.webkit.org/show_bug.cgi?id=203981</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1588460</commentid>
    <comment_count>7</comment_count>
      <attachid>383075</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-11-07 15:45:02 -0800</bug_when>
    <thetext>Comment on attachment 383075
Patch

Clearing flags on attachment: 383075

Committed r252214: &lt;https://trac.webkit.org/changeset/252214&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1588461</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-11-07 15:45:04 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>383075</attachid>
            <date>2019-11-07 14:48:29 -0800</date>
            <delta_ts>2019-11-07 15:45:02 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-203965-20191107144829.patch</filename>
            <type>text/plain</type>
            <size>1668</size>
            <attacher name="Yury Semikhatsky">yurys</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjUyMTQwCmRpZmYgLS1naXQgYS9MYXlvdXRUZXN0cy9DaGFu
Z2VMb2cgYi9MYXlvdXRUZXN0cy9DaGFuZ2VMb2cKaW5kZXggNDk0ZTdkYjgxMmIzZGU0ZTFlMjk1
ZTQzOGUxMWY5NmE5ZDlkNjJmYS4uNjRjYWI4ZmRhMWJlMjAyYmU1ODk0YTY5YWVhMjZiZTZlNDM5
ZjBlNiAxMDA2NDQKLS0tIGEvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCisrKyBiL0xheW91dFRlc3Rz
L0NoYW5nZUxvZwpAQCAtMSwzICsxLDE3IEBACisyMDE5LTExLTA3ICBZdXJ5IFNlbWlraGF0c2t5
ICA8eXVyeXNAY2hyb21pdW0ub3JnPgorCisgICAgICAgIFdlYiBJbnNwZWN0b3I6IGh0dHAvdGVz
dHMvaW5zcGVjdG9yL3RhcmdldC90YXJnZXQtZXZlbnRzLWZvci1wcm92aXNpb25hbC1wYWdlLmh0
bWwgaXMgZmxha3kgd2hlbiBydW5uaW5nIHdpdGggb3RoZXIgdGVzdHMKKyAgICAgICAgaHR0cHM6
Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTIwMzk2NQorICAgICAgICA8cmRhcjov
L3Byb2JsZW0vNTY5ODg2NDI+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISku
CisKKyAgICAgICAgRW5mb3JjZSBlbmFibGVQcm9jZXNzU3dhcE9uV2luZG93T3Blbj10cnVlIGZv
ciB0aGUgdGVzdCBzbyB0aGF0IGl0IFBTT04gaXMgZW5hYmxlZCByZWdhcmRsZXNzIG9mIG90aGVy
IHRlc3RzCisgICAgICAgIHRoYXQgbWF5IHJ1biBiZWZvcmUgKHRoZSB0ZXN0IG1heSByZXVzZSBQ
YWdlIGluc3RhbmNlIGZyb20gdG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