Bug 1507004, get the contentDocument for all iframes, to ensure that the iframe is focusable, r=peterv a=test-only
authorNeil Deakin <neil@mozilla.com>
Mon, 01 Apr 2019 09:09:04 -0400
changeset 526121 77f9f813184572c571dec58fec3c6e0d3961fd04
parent 526120 281162c3457183da6eccfb440ad0b4eade84910b
child 526122 0b4923e63c709ecc0e71d23b3d3656184360d84b
push id2032
push userffxbld-merge
push dateMon, 13 May 2019 09:36:57 +0000
treeherdermozilla-release@455c1065dcbe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspeterv, test-only
bugs1507004
milestone67.0
Bug 1507004, get the contentDocument for all iframes, to ensure that the iframe is focusable, r=peterv a=test-only
dom/html/test/test_bug430351.html
--- a/dom/html/test/test_bug430351.html
+++ b/dom/html/test/test_bug430351.html
@@ -456,17 +456,17 @@ function testElements(parent, tags, shou
 
         parent.innerHTML = tag;
 
         // Focus the deepest descendant.
         var descendant = parent;
         while ((descendant = descendant.firstChild))
             element = descendant;
 
-        if (element.nodeName == "IFRAME" && element.hasAttribute("src"))
+        if (element.nodeName == "IFRAME")
             var foo = element.contentDocument;
 
         element.focus();
 
         var errorPrefix = serializer.serializeToString(element) + " in " +
                           serializer.serializeToString(parent);
 
         try {