Commit e7d8bd52 authored by Christoph Kerschbaumer's avatar Christoph Kerschbaumer
Browse files

Bug 1732259: Update tests within devtools/client/webconsole/test to work with...

Bug 1732259: Update tests within devtools/client/webconsole/test to work with https-first enabled r=jdescottes

Differential Revision: https://phabricator.services.mozilla.com/D126485
parent 316d273d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
"use strict";

const TEST_URI =
  "http://example.com/browser/devtools/client/webconsole/" +
  "https://example.com/browser/devtools/client/webconsole/" +
  "test/browser/test-iframe-parent.html";

add_task(async function() {
+2 −2
Original line number Diff line number Diff line
"use strict";

const TEST_URI =
  "http://example.com/browser/devtools/client/webconsole/" +
  "https://example.com/browser/devtools/client/webconsole/" +
  "test/browser/test-block-action.html";
const TIMEOUT = "TIMEOUT";

@@ -67,7 +67,7 @@ async function tryFetching() {
  ) {
    const win = content.wrappedJSObject;
    const FETCH_URI =
      "http://example.com/browser/devtools/client/webconsole/" +
      "https://example.com/browser/devtools/client/webconsole/" +
      "test/browser/test-block-action-style.css";
    const timeout = new Promise(res =>
      win.setTimeout(() => res(timeoutStr), 1000)
+2 −3
Original line number Diff line number Diff line
@@ -6,11 +6,11 @@
// Ensure that iframes are not associated with the wrong hud. See Bug 593003.

const TEST_URI =
  "http://example.com/browser/devtools/client/webconsole/" +
  "https://example.com/browser/devtools/client/webconsole/" +
  "test/browser/test-iframe-wrong-hud.html";

const TEST_IFRAME_URI =
  "http://example.com/browser/devtools/client/webconsole/" +
  "https://example.com/browser/devtools/client/webconsole/" +
  "test/browser/test-iframe-wrong-hud-iframe.html";

const TEST_DUMMY_URI =
@@ -18,7 +18,6 @@ const TEST_DUMMY_URI =
  "test/browser/test-console.html";

add_task(async function() {
  await pushPref("dom.security.https_first", false);
  await pushPref("devtools.webconsole.filter.net", true);
  const tab1 = await addTab(TEST_URI);
  const hud1 = await openConsole(tab1);
+2 −0
Original line number Diff line number Diff line
@@ -30,6 +30,8 @@ const INSECURE_PASSWORDS_URI =
  DOCS_GA_PARAMS;

add_task(async function() {
  // testing insecure password warnings, hence disabling https-first
  await pushPref("dom.security.https_first", false);
  await testUriWarningMessage(INSECURE_IFRAME_URI, INSECURE_IFRAME_MSG);
  await testUriWarningMessage(INSECURE_PASSWORD_URI, INSECURE_PASSWORD_MSG);
  await testUriWarningMessage(
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
"use strict";

const TEST_URI =
  "http://example.com/browser/devtools/client/webconsole/" +
  "https://example.com/browser/devtools/client/webconsole/" +
  "test/browser/test-inspect-cross-domain-objects-top.html";

add_task(async function() {
Loading