Bug 1588142 - Test fixes r=Gijs
authorKirk Steuber <ksteuber@mozilla.com>
Thu, 14 Nov 2019 00:27:08 +0000
changeset 501865 a6d78953abb664f0938dfebeaa0874799a07ee81
parent 501864 27b1ed7098093911513a6e151a91a12535bd2e7e
child 501866 2b7c28c1173d3867aae18f67db7d8b55fec4ca34
push id114172
push userdluca@mozilla.com
push dateTue, 19 Nov 2019 11:31:10 +0000
treeherdermozilla-inbound@b5c5ba07d3db [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1588142
milestone72.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 1588142 - Test fixes r=Gijs Differential Revision: https://phabricator.services.mozilla.com/D51714
toolkit/content/tests/browser/browser_label_textlink.js
--- a/toolkit/content/tests/browser/browser_label_textlink.js
+++ b/toolkit/content/tests/browser/browser_label_textlink.js
@@ -4,17 +4,17 @@ add_task(async function() {
     async function(browser) {
       let newTabURL = "http://www.example.com/";
       await ContentTask.spawn(browser, newTabURL, async function(newTabURL) {
         let doc = content.document;
         let label = doc.createXULElement("label", { is: "text-link" });
         label.href = newTabURL;
         label.id = "textlink-test";
         label.textContent = "click me";
-        doc.documentElement.append(label);
+        doc.body.append(label);
       });
 
       // Test that click will open tab in foreground.
       let awaitNewTab = BrowserTestUtils.waitForNewTab(gBrowser, newTabURL);
       await BrowserTestUtils.synthesizeMouseAtCenter(
         "#textlink-test",
         {},
         browser