mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1742785: Update more tests within dom/ and docshell/ to work with https-first enabled r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D132007
This commit is contained in:
parent
e6f5ab87fd
commit
ca94879d3a
@ -33,7 +33,7 @@ async function countAndClose(name, expected_count) {
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=279495">Mozilla Bug 279495</a>
|
||||
<div id="links">
|
||||
<a id="link0" target="window0" onclick="window.open('blank.html', 'window0', 'width=10,height=10');">This is a fancy hyperlink</a>
|
||||
<a id="link1" target="window1" onclick="window.open('http://test1.example.org:80/tests/docshell/test/navigation/blank.html', 'window1', 'width=10,height=10');">This is a fancy hyperlink</a>
|
||||
<a id="link1" target="window1" onclick="window.open('https://test1.example.org/tests/docshell/test/navigation/blank.html', 'window1', 'width=10,height=10');">This is a fancy hyperlink</a>
|
||||
</div>
|
||||
<pre id="test">
|
||||
<script type="text/javascript">
|
||||
|
@ -293,7 +293,7 @@ add_task(async function test_normal_background_tab() {
|
||||
let originalTab = gBrowser.selectedTab;
|
||||
|
||||
await BrowserTestUtils.withNewTab(
|
||||
"http://example.com/browser/dom/ipc/tests/file_cross_frame.html",
|
||||
"https://example.com/browser/dom/ipc/tests/file_cross_frame.html",
|
||||
async browser => {
|
||||
let tab = gBrowser.getTabForBrowser(browser);
|
||||
await assertPriorityChangeOnBackground({
|
||||
@ -321,7 +321,7 @@ add_task(async function test_normal_background_tab() {
|
||||
add_task(async function test_iframe_navigate() {
|
||||
// The URI we're going to navigate the iframe to.
|
||||
let iframeURI2 =
|
||||
"http://mochi.test:8888/browser/dom/ipc/tests/file_dummy.html";
|
||||
"https://test1.example.org/browser/dom/ipc/tests/file_dummy.html";
|
||||
|
||||
// Load this as a top level tab so that when we later load it as an iframe we
|
||||
// won't be creating a new process, so that we're testing the "load a new page"
|
||||
@ -341,7 +341,7 @@ add_task(async function test_iframe_navigate() {
|
||||
);
|
||||
|
||||
await BrowserTestUtils.withNewTab(
|
||||
"http://example.com/browser/dom/ipc/tests/file_cross_frame.html",
|
||||
"https://example.com/browser/dom/ipc/tests/file_cross_frame.html",
|
||||
async browser => {
|
||||
Assert.equal(
|
||||
gTabPriorityWatcher.currentPriority(newIFrameTabChildID),
|
||||
@ -429,7 +429,7 @@ add_task(async function test_cross_group_navigate() {
|
||||
);
|
||||
|
||||
await BrowserTestUtils.withNewTab(
|
||||
"http://example.org/browser/dom/ipc/tests/file_cross_frame.html",
|
||||
"https://example.org/browser/dom/ipc/tests/file_cross_frame.html",
|
||||
async browser => {
|
||||
Assert.equal(
|
||||
gTabPriorityWatcher.currentPriority(backgroundTabChildID),
|
||||
@ -483,12 +483,12 @@ add_task(async function test_cross_group_navigate() {
|
||||
add_task(async function test_video_background_tab() {
|
||||
let originalTab = gBrowser.selectedTab;
|
||||
|
||||
await BrowserTestUtils.withNewTab("http://example.com", async browser => {
|
||||
await BrowserTestUtils.withNewTab("https://example.com", async browser => {
|
||||
// Let's load up a video in the tab, but mute it, so that this tab should
|
||||
// reach PROCESS_PRIORITY_BACKGROUND_PERCEIVABLE.
|
||||
await SpecialPowers.spawn(browser, [], async () => {
|
||||
let video = content.document.createElement("video");
|
||||
video.src = "http://mochi.test:8888/browser/dom/ipc/tests/short.mp4";
|
||||
video.src = "https://test1.example.org/browser/dom/ipc/tests/short.mp4";
|
||||
video.muted = true;
|
||||
content.document.body.appendChild(video);
|
||||
// We'll loop the video to avoid it ending before the test is done.
|
||||
@ -547,12 +547,12 @@ add_task(async function test_video_background_tab() {
|
||||
add_task(async function test_audio_background_tab() {
|
||||
let originalTab = gBrowser.selectedTab;
|
||||
|
||||
await BrowserTestUtils.withNewTab("http://example.com", async browser => {
|
||||
await BrowserTestUtils.withNewTab("https://example.com", async browser => {
|
||||
// Let's load up some audio in the tab, but mute it, so that this tab should
|
||||
// reach PROCESS_PRIORITY_BACKGROUND.
|
||||
await SpecialPowers.spawn(browser, [], async () => {
|
||||
let audio = content.document.createElement("audio");
|
||||
audio.src = "http://mochi.test:8888/browser/dom/ipc/tests/owl.mp3";
|
||||
audio.src = "https://test1.example.org/browser/dom/ipc/tests/owl.mp3";
|
||||
audio.muted = true;
|
||||
content.document.body.appendChild(audio);
|
||||
// We'll loop the audio to avoid it ending before the test is done.
|
||||
@ -622,7 +622,7 @@ add_task(async function test_audio_background_tab() {
|
||||
add_task(async function test_web_audio_background_tab() {
|
||||
let originalTab = gBrowser.selectedTab;
|
||||
|
||||
await BrowserTestUtils.withNewTab("http://example.com", async browser => {
|
||||
await BrowserTestUtils.withNewTab("https://example.com", async browser => {
|
||||
// Let's synthesize a basic square wave as WebAudio.
|
||||
await SpecialPowers.spawn(browser, [], async () => {
|
||||
let audioCtx = new content.AudioContext();
|
||||
@ -687,7 +687,7 @@ add_task(async function test_web_audio_background_tab() {
|
||||
* a bfcached session history entry.
|
||||
*/
|
||||
add_task(async function test_audio_background_tab() {
|
||||
let page1 = "http://example.com";
|
||||
let page1 = "https://example.com";
|
||||
let page2 = page1 + "/?2";
|
||||
|
||||
await BrowserTestUtils.withNewTab(page1, async browser => {
|
||||
|
@ -5,7 +5,7 @@
|
||||
<title>Different-origin iframe</title>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testIFrame" src="http://example.org/browser/dom/ipc/tests/file_dummy.html"></iframe>
|
||||
<iframe id="testIFrame" src="https://example.org/browser/dom/ipc/tests/file_dummy.html"></iframe>
|
||||
<i>I am a web page</i>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -36,7 +36,7 @@
|
||||
*/
|
||||
|
||||
const kContentDoc =
|
||||
"http://www.example.com/browser/dom/tests/browser/test_new_window_from_content_child.html";
|
||||
"https://www.example.com/browser/dom/tests/browser/test_new_window_from_content_child.html";
|
||||
const kNewWindowPrefKey = "browser.link.open_newwindow";
|
||||
const kNewWindowRestrictionPrefKey = "browser.link.open_newwindow.restriction";
|
||||
const kSameTab = "same tab";
|
||||
|
Loading…
Reference in New Issue
Block a user