Bug 1588142 - Fix test failure of browser_canvasframe_helper_02.js r=bgrins
authorKirk Steuber <ksteuber@mozilla.com>
Thu, 14 Nov 2019 00:35:53 +0000
changeset 501867 48829132cb50ae7cdcb69e1780aecb3f3737c27b
parent 501866 2b7c28c1173d3867aae18f67db7d8b55fec4ca34
child 501868 6e3c105cfcde3a6821120a83674f77692f5c7bf2
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)
reviewersbgrins
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 - Fix test failure of browser_canvasframe_helper_02.js r=bgrins Depends on D52289 Differential Revision: https://phabricator.services.mozilla.com/D52937
devtools/server/tests/browser/browser.ini
devtools/server/tests/browser/browser_canvasframe_helper_02.js
devtools/server/tests/browser/test-window.xhtml
--- a/devtools/server/tests/browser/browser.ini
+++ b/devtools/server/tests/browser/browser.ini
@@ -33,16 +33,17 @@ support-files =
   storage-cookies-same-name.html
   storage-dynamic-windows.html
   storage-listings.html
   storage-unsecured-iframe.html
   storage-updates.html
   storage-secured-iframe.html
   stylesheets-nested-iframes.html
   test-spawn-actor-in-parent.js
+  test-window.xhtml
   inspector-helpers.js
   storage-helpers.js
   !/devtools/client/shared/test/shared-head.js
   !/devtools/client/shared/test/telemetry-test-helpers.js
   !/devtools/server/tests/mochitest/hello-actor.js
 
 [browser_accessibility_highlighter_infobar.js]
 skip-if = (os == 'win' && processor == 'aarch64') # bug 1533184
--- a/devtools/server/tests/browser/browser_canvasframe_helper_02.js
+++ b/devtools/server/tests/browser/browser_canvasframe_helper_02.js
@@ -2,17 +2,19 @@
    http://creativecommons.org/publicdomain/zero/1.0/ */
 
 "use strict";
 
 // Test that the CanvasFrameAnonymousContentHelper does not insert content in
 // XUL windows.
 
 add_task(async function() {
-  const browser = await addTab("about:preferences");
+  const browser = await addTab(
+    "chrome://mochitests/content/browser/devtools/server/tests/browser/test-window.xhtml"
+  );
 
   await ContentTask.spawn(browser, null, async function() {
     const { require } = ChromeUtils.import(
       "resource://devtools/shared/Loader.jsm"
     );
     const {
       HighlighterEnvironment,
     } = require("devtools/server/actors/highlighters");
new file mode 100644
--- /dev/null
+++ b/devtools/server/tests/browser/test-window.xhtml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xul:window xmlns="http://www.w3.org/1999/xhtml"
+            xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+            title="Test page">
+</xul:window>