Bug 1588142 - Test fixes r=Gijs
☠☠ backed out by b42b42456573 ☠ ☠
authorKirk Steuber <ksteuber@mozilla.com>
Tue, 12 Nov 2019 18:00:28 +0000
changeset 501809 939b6b3922c2802abedb336712b08e605687e716
parent 501808 1a5f2b044f827e6063218f6f6ff6a6b7e6066106
child 501810 2284a535c8bc5a34c448665c99bdf0d7ea2d73f2
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