Bug 1675349: Update tests under toolkit/content for the removal of plugins. r=jmathies
authorDavid Parks <daparks@mozilla.com>
Wed, 18 Nov 2020 16:00:19 +0000
changeset 557843 07d50962e04f05300d94e5f2c78d83d36269f260
parent 557842 0d6c7d1c46b1a12b594b1b2f7763a7f5f1a6c103
child 557844 787cb1497e8641e9879d57d9ff75ce22a6e6e585
push id37962
push userapavel@mozilla.com
push dateWed, 18 Nov 2020 21:51:58 +0000
treeherdermozilla-central@9d797387f57c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmathies
bugs1675349
milestone85.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 1675349: Update tests under toolkit/content for the removal of plugins. r=jmathies REMOVED ------- toolkit/content/tests/browser/browser_mute_plugIn.js Use special test plugin APIs to test mute button on tab (a different test does the same with WebAudio) toolkit/content/tests/browser/browser_delay_autoplay_plugIn.js Test that plugin's tab is muted when opened in tab that isn't the current tab Differential Revision: https://phabricator.services.mozilla.com/D95918
toolkit/content/tests/browser/browser.ini
toolkit/content/tests/browser/browser_delay_autoplay_plugIn.js
toolkit/content/tests/browser/file_plugIn.html
--- a/toolkit/content/tests/browser/browser.ini
+++ b/toolkit/content/tests/browser/browser.ini
@@ -7,17 +7,16 @@ support-files =
   empty.png
   file_contentTitle.html
   file_empty.html
   file_findinframe.html
   file_mediaPlayback2.html
   file_multipleAudio.html
   file_multiplePlayingAudio.html
   file_nonAutoplayAudio.html
-  file_plugIn.html
   file_redirect.html
   file_redirect_to.html
   file_silentAudioTrack.html
   file_webAudio.html
   head.js
   image.jpg
   image_page.html
   silentAudioTrack.webm
@@ -37,19 +36,16 @@ skip-if = (os == "win" && processor == "
 tags = audiochannel
 skip-if = (os == "win" && processor == "aarch64") # aarch64 due to 1536573
 [browser_delay_autoplay_notInTreeAudio.js]
 tags = audiochannel
 skip-if = (os == "win" && processor == "aarch64") # aarch64 due to 1536573
 [browser_delay_autoplay_playMediaInMuteTab.js]
 tags = audiochannel
 skip-if = (os == "win" && processor == "aarch64") # aarch64 due to 1536573
-[browser_delay_autoplay_plugIn.js]
-tags = audiochannel
-skip-if = (os == "win" && processor == "aarch64") # aarch64 due to 1536573
 [browser_delay_autoplay_silentAudioTrack_media.js]
 tags = audiochannel
 skip-if = (os == "win" && processor == "aarch64") || (os == "mac") || (os == "linux" && !debug) # aarch64 due to 1536573 #Bug 1524746
 [browser_delay_autoplay_webAudio.js]
 tags = audiochannel
 skip-if = (os == "win" && processor == "aarch64") # aarch64 due to 1536573
 [browser_bug1170531.js]
 skip-if =
deleted file mode 100644
--- a/toolkit/content/tests/browser/browser_delay_autoplay_plugIn.js
+++ /dev/null
@@ -1,34 +0,0 @@
-const PAGE =
-  "https://example.com/browser/toolkit/content/tests/browser/file_plugIn.html";
-
-add_task(async function setup_test_preference() {
-  setTestPluginEnabledState(Ci.nsIPluginTag.STATE_ENABLED, "Test Plug-in");
-  await SpecialPowers.pushPrefEnv({
-    set: [
-      ["media.useAudioChannelService.testing", true],
-      ["media.block-autoplay-until-in-foreground", true],
-    ],
-  });
-});
-
-add_task(async function block_plug_in() {
-  info("- open new background tab -");
-  let tab = BrowserTestUtils.addTab(window.gBrowser, "about:blank");
-  BrowserTestUtils.loadURI(tab.linkedBrowser, PAGE);
-  await BrowserTestUtils.browserLoaded(tab.linkedBrowser);
-
-  info("- tab should be blocked -");
-  await waitForTabBlockEvent(tab, true);
-
-  info("- switch tab -");
-  await BrowserTestUtils.switchTab(window.gBrowser, tab);
-
-  info("- tab should be resumed -");
-  await waitForTabBlockEvent(tab, false);
-
-  info("- tab should be audible -");
-  await waitForTabPlayingEvent(tab, true);
-
-  info("- remove tab -");
-  BrowserTestUtils.removeTab(tab);
-});
deleted file mode 100644
--- a/toolkit/content/tests/browser/file_plugIn.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<embed type="application/x-test" width="200" height="200"></embed>
-<script>
-var plugin = document.querySelector("embed");
-onload = function() {
-  plugin.startAudioPlayback();
-};
-
-function start_plugin() {
-  plugin.startAudioPlayback();
-}
-
-function stop_plugin() {
-  plugin.stopAudioPlayback();
-}
-
-</script>
-<button id="start" onclick="start_plugin()">Start</button>
-<button id="stop" onclick="stop_plugin()">Stop</button>