Bug 1507004, get the contentDocument for all iframes, to ensure that the iframe is focusable, r=peterv
authorNeil Deakin <neil@mozilla.com>
Mon, 01 Apr 2019 09:09:04 -0400
changeset 467029 65f7904484c803a15084966557ca68bb0856a0f1
parent 467028 200699647a66d09556a3d8784bf41d4b18463718
child 467030 098230ae62873803d9382f31ecc0e218ae831840
push id112622
push userneil@mozilla.com
push dateMon, 01 Apr 2019 13:09:47 +0000
treeherdermozilla-inbound@65f7904484c8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspeterv
bugs1507004
milestone68.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 1507004, get the contentDocument for all iframes, to ensure that the iframe is focusable, r=peterv
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 {