<?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>209067</bug_id>
          
          <creation_ts>2020-03-13 11:18:31 -0700</creation_ts>
          <short_desc>[ Mac wk1 ] http/tests/security/javascriptURL/xss-DENIED-to-javascript-url-in-foreign-domain-subframe.html is flaky failing.</short_desc>
          <delta_ts>2021-01-25 00:39:03 -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>WebCore JavaScript</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.15</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jason Lawrence">Lawrence.j</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hd86782</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>1629715</commentid>
    <comment_count>0</comment_count>
    <who name="Jason Lawrence">Lawrence.j</who>
    <bug_when>2020-03-13 11:18:31 -0700</bug_when>
    <thetext>http/tests/security/javascriptURL/xss-DENIED-to-javascript-url-in-foreign-domain-subframe.html

Description:
This test is flaky failing on Mac wk1. The flaky failures are present throughout the visible history.

History:
https://results.webkit.org/?suite=layout-tests&amp;test=http%2Ftests%2Fsecurity%2FjavascriptURL%2Fxss-DENIED-to-javascript-url-in-foreign-domain-subframe.html&amp;platform=mac&amp;flavor=wk1&amp;style=debug&amp;style=release&amp;limit=50000&amp;recent=false

Diff:
--- /Volumes/Data/slave/mojave-release-tests-wk1/build/layout-test-results/http/tests/security/javascriptURL/xss-DENIED-to-javascript-url-in-foreign-domain-subframe-expected.txt
+++ /Volumes/Data/slave/mojave-release-tests-wk1/build/layout-test-results/http/tests/security/javascriptURL/xss-DENIED-to-javascript-url-in-foreign-domain-subframe-actual.txt
@@ -1,20 +1,47 @@
-CONSOLE MESSAGE: line 41: SecurityError: Blocked a frame with origin &quot;http://127.0.0.1:8000&quot; from accessing a cross-origin frame. Protocols, domains, and ports must match.
-The scenario for this test is that you have an iframe with content from a foreign domain. In that foreign content is an iframe which loads a javascript: URL. This tests that this main document does not have access to that javascript: URL loaded iframe.
-
-
-PASS: Cross frame access to a javascript: URL embed in a frame on a foreign domain denied!
-
-
---------
-Frame: &apos;&lt;!--frame1--&gt;&apos;
---------
-Inner iframe on a foreign domain.
-
-
-
---------
-Frame: &apos;aFrame&apos;
---------
-PASS: Cross frame access from a frame on a foreign domain denied!
-
-Inner-inner iframe. This iframe (which is javascript: URL and whose parent is on a foreign domain) is the frame that the main frame is trying to access. It should not have access to it.
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x579
+      RenderBlock {P} at (0,0) size 784x54
+        RenderText {#text} at (0,0) size 755x54
+          text run at (0,0) width 568: &quot;The scenario for this test is that you have an iframe with content from a foreign domain. &quot;
+          text run at (567,0) width 148: &quot;In that foreign content &quot;
+          text run at (714,0) width 31: &quot;is an&quot;
+          text run at (0,18) width 249: &quot;iframe which loads a javascript: URL. &quot;
+          text run at (248,18) width 405: &quot;This tests that this main document does not have access to that &quot;
+          text run at (652,18) width 103: &quot;javascript: URL&quot;
+          text run at (0,36) width 93: &quot;loaded iframe.&quot;
+      RenderBlock (anonymous) at (0,70) size 784x204
+        RenderIFrame {IFRAME} at (0,0) size 404x204 [border: (2px inset #000000)]
+          layer at (0,0) size 385x204
+            RenderView at (0,0) size 385x200
+          layer at (0,0) size 385x204
+            RenderBlock {HTML} at (0,0) size 385x204
+              RenderBody {BODY} at (8,8) size 369x188
+                RenderBlock {P} at (0,0) size 369x18
+                  RenderText {#text} at (0,0) size 217x18
+                    text run at (0,0) width 217: &quot;Inner iframe on a foreign domain.&quot;
+                RenderBlock (anonymous) at (0,34) size 369x154
+                  RenderIFrame {IFRAME} at (0,0) size 304x154 [border: (2px inset #000000)]
+                    layer at (0,0) size 285x166
+                      RenderView at (0,0) size 285x150
+                    layer at (0,0) size 285x166
+                      RenderBlock {HTML} at (0,0) size 285x166
+                        RenderBody {BODY} at (8,8) size 269x142
+                          RenderBlock {P} at (0,0) size 269x36
+                            RenderText {#text} at (0,0) size 256x36
+                              text run at (0,0) width 256: &quot;PASS: Cross frame access from a frame&quot;
+                              text run at (0,18) width 182: &quot;on a foreign domain denied!&quot;
+                          RenderBlock {P} at (0,52) size 269x90
+                            RenderText {#text} at (0,0) size 264x90
+                              text run at (0,0) width 263: &quot;Inner-inner iframe. This iframe (which is&quot;
+                              text run at (0,18) width 264: &quot;javascript: URL and whose parent is on a&quot;
+                              text run at (0,36) width 235: &quot;foreign domain) is the frame that the&quot;
+                              text run at (0,54) width 200: &quot;main frame is trying to access. &quot;
+                              text run at (199,54) width 57: &quot;It should&quot;
+                              text run at (0,72) width 133: &quot;not have access to it.&quot;
+                  RenderText {#text} at (0,0) size 0x0
+                  RenderText {#text} at (0,0) size 0x0
+        RenderText {#text} at (0,0) size 0x0
+      RenderBlock {PRE} at (0,287) size 784x0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1629717</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-03-13 11:19:44 -0700</bug_when>
    <thetext>&lt;rdar://problem/60425549&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1629725</commentid>
    <comment_count>2</comment_count>
    <who name="Jason Lawrence">Lawrence.j</who>
    <bug_when>2020-03-13 11:26:51 -0700</bug_when>
    <thetext>I have marked this test as failing while this issue is investigated.
https://trac.webkit.org/changeset/258413/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1629726</commentid>
    <comment_count>3</comment_count>
    <who name="Jason Lawrence">Lawrence.j</who>
    <bug_when>2020-03-13 11:28:40 -0700</bug_when>
    <thetext>I am able to reproduce this issue with r258393 using the command below.
run-webkit-tests -iterations 1000 --exit-after-n-failures 3 --force -f http/tests/security/javascriptURL/xss-DENIED-to-javascript-url-in-foreign-domain-subframe.html -1

[289/1000] http/tests/security/javascriptURL/xss-DENIED-to-javascript-url-in-foreign-domain-subframe.html failed unexpectedly (text diff)
[305/1000] http/tests/security/javascriptURL/xss-DENIED-to-javascript-url-in-foreign-domain-subframe.html failed unexpectedly (text diff)
[333/1000] http/tests/security/javascriptURL/xss-DENIED-to-javascript-url-in-foreign-domain-subframe.html failed unexpectedly (text diff)
Exiting early after 3 failures. 328 tests run.

325 tests ran as expected, 3 didn&apos;t (672 didn&apos;t run):</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1651271</commentid>
    <comment_count>4</comment_count>
    <who name="Jason Lawrence">Lawrence.j</who>
    <bug_when>2020-05-11 07:57:27 -0700</bug_when>
    <thetext>Test test appears to be passing now, removed the expectations here: https://trac.webkit.org/changeset/261477/webkit</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>