Bug 1497126 - Fix WPTs for 1 level of recursion when loading nested iframes with same URL, r=smaug
authorAndrea Marchesini <amarchesini@mozilla.com>
Mon, 08 Oct 2018 16:04:57 +0200
changeset 495726 70f63648a0f6cf738d5555eb347986d7323ef16e
parent 495725 dc46a5f43a47d173b7c29226aab8bc590701bc99
child 495727 ab436fa8add92c153513aa8eedb8ccd5658976c7
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1497126
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1497126 - Fix WPTs for 1 level of recursion when loading nested iframes with same URL, r=smaug
layout/base/crashtests/645572-1.html
testing/web-platform/meta/encrypted-media/encrypted-media-default-feature-policy.https.sub.html.ini
testing/web-platform/meta/mediacapture-streams/MediaStream-default-feature-policy.https.html.ini
testing/web-platform/meta/xhr/xmlhttprequest-sync-default-feature-policy.sub.html.ini
--- a/layout/base/crashtests/645572-1.html
+++ b/layout/base/crashtests/645572-1.html
@@ -6,18 +6,18 @@ function start(){
         tmp.addEventListener("load", start_dataiframe9);
         document.documentElement.appendChild(tmp);
 }function start_dataiframe9(){
         o185=document.getElementById('ifr32247').contentDocument.documentElement;
         tmp=document.createElement('iframe')
         o196=document.getElementById('ifr32247').contentDocument.createElementNS('http:2000svg','altGlyph');
         o230=o185.cloneNode(true);
         tmp.id='ifr42257';
+        tmp.addEventListener("load", start_dataiframe11);
         o230.ownerDocument.documentElement.appendChild(tmp); 
-        start_dataiframe11();
         //window.setTimeout('start_dataiframe11()',100);
 }function start_dataiframe11(){
         o232=o230.ownerDocument.getElementById('ifr42257').contentDocument.documentElement;
         o234=o196;
         tmp=o234.ownerDocument.createElement('iframe');
         tmp.srcdoc="<q id='element2'><q id='element3'><q id='element4'><dd style id='element6'>";
         tmp.id='ifr22371';
         tmp.addEventListener("load", start_dataiframe12);
--- a/testing/web-platform/meta/encrypted-media/encrypted-media-default-feature-policy.https.sub.html.ini
+++ b/testing/web-platform/meta/encrypted-media/encrypted-media-default-feature-policy.https.sub.html.ini
@@ -1,7 +1,3 @@
 [encrypted-media-default-feature-policy.https.sub.html]
-  expected: TIMEOUT
-  [Default "encrypted-media" feature policy ["self"\] allows same-origin iframes.]
-    expected: TIMEOUT
-
   [Default "encrypted-media" feature policy ["self"\] disallows cross-origin iframes.]
     expected: FAIL
--- a/testing/web-platform/meta/mediacapture-streams/MediaStream-default-feature-policy.https.html.ini
+++ b/testing/web-platform/meta/mediacapture-streams/MediaStream-default-feature-policy.https.html.ini
@@ -1,68 +1,39 @@
 [MediaStream-default-feature-policy.https.sub.html]
-  expected: TIMEOUT
-  [Default "microphone" feature policy ["self"\] allows the top-level document.]
-    expected: FAIL
-
-  [Default "microphone" feature policy ["self"\] allows same-origin iframes.]
-    expected: TIMEOUT
-
   [Default "microphone" feature policy ["self"\] disallows cross-origin iframes.]
     expected: FAIL
 
   [Feature policy "microphone" can be enabled in cross-origin iframes using "allow" attribute.]
     expected: FAIL
 
-  [Default "camera" feature policy ["self"\] allows the top-level document.]
-    expected: FAIL
-
-  [Default "camera" feature policy ["self"\] allows same-origin iframes.]
-    expected: TIMEOUT
-
   [Default "camera" feature policy ["self"\] disallows cross-origin iframes.]
     expected: FAIL
 
   [Feature policy "camera" can be enabled in cross-origin iframes using "allow" attribute.]
     expected: FAIL
 
-  [Default "camera; microphone" feature policy ["self"\] allows the top-level document.]
-    expected: FAIL
-
-  [Default "camera; microphone" feature policy ["self"\] allows same-origin iframes.]
-    expected: TIMEOUT
-
   [Default "camera; microphone" feature policy ["self"\] disallows cross-origin iframes.]
     expected: FAIL
 
   [Feature policy "camera; microphone" can be enabled in cross-origin iframes using "allow" attribute.]
     expected: FAIL
 
 
 [MediaStream-default-feature-policy.https.html]
-  expected: TIMEOUT
-  [Default "microphone" feature policy ["self"\] allows same-origin iframes.]
-    expected: TIMEOUT
-
   [Default "microphone" feature policy ["self"\] disallows cross-origin iframes.]
     expected: FAIL
 
   [Feature policy "microphone" can be enabled in cross-origin iframes using "allow" attribute.]
     expected: FAIL
 
-  [Default "camera" feature policy ["self"\] allows same-origin iframes.]
-    expected: TIMEOUT
-
   [Default "camera" feature policy ["self"\] disallows cross-origin iframes.]
     expected: FAIL
 
   [Feature policy "camera" can be enabled in cross-origin iframes using "allow" attribute.]
     expected: FAIL
 
-  [Default "camera; microphone" feature policy ["self"\] allows same-origin iframes.]
-    expected: TIMEOUT
-
   [Default "camera; microphone" feature policy ["self"\] disallows cross-origin iframes.]
     expected: FAIL
 
   [Feature policy "camera; microphone" can be enabled in cross-origin iframes using "allow" attribute.]
     expected: FAIL
 
--- a/testing/web-platform/meta/xhr/xmlhttprequest-sync-default-feature-policy.sub.html.ini
+++ b/testing/web-platform/meta/xhr/xmlhttprequest-sync-default-feature-policy.sub.html.ini
@@ -1,8 +1,4 @@
 [xmlhttprequest-sync-default-feature-policy.sub.html]
-  expected: TIMEOUT
-  [Default "sync-xhr" feature policy ["*"\] allows same-origin iframes.]
-    expected: TIMEOUT
-
   [Feature policy "sync-xhr" can be disabled in cross-origin iframes using "allow" attribute.]
     expected: FAIL