From e5b505e41d71b647d4e9b30500f1d6f6c881fcce Mon Sep 17 00:00:00 2001 From: David Parks Date: Wed, 18 Nov 2020 15:56:10 +0000 Subject: [PATCH] Bug 1675349: Remove unused files following removing plugin support r=jmathies,extension-reviewers,geckoview-reviewers,agi,mixedpuppy Remove some support files for plugin features and stop building TestPlugins. Differential Revision: https://phabricator.services.mozilla.com/D95904 --- mobile/android/locales/filter.py | 1 - mobile/android/locales/jar.mn | 2 - mobile/android/locales/l10n.toml | 4 - mobile/locales/filter.py | 1 - .../mozbuild/mozbuild/action/test_archive.py | 36 --- .../chrome/pluginproblem/pluginproblem.dtd | 32 --- toolkit/locales/jar.mn | 3 - .../mozapps/extensions/content/pluginPrefs.js | 78 ------ .../extensions/content/pluginPrefs.xhtml | 72 ----- toolkit/mozapps/extensions/jar.mn | 2 - toolkit/themes/osx/global/jar.mn | 1 - toolkit/themes/shared/jar.inc.mn | 4 - toolkit/themes/shared/non-mac.jar.inc.mn | 1 - .../shared/plugins/contentPluginBlocked.png | Bin 1487 -> 0 bytes .../shared/plugins/contentPluginCrashed.png | Bin 1229 -> 0 bytes .../shared/plugins/contentPluginStripe.png | Bin 285 -> 0 bytes .../themes/shared/plugins/pluginProblem.css | 260 ------------------ 17 files changed, 497 deletions(-) delete mode 100644 toolkit/locales/en-US/chrome/pluginproblem/pluginproblem.dtd delete mode 100644 toolkit/mozapps/extensions/content/pluginPrefs.js delete mode 100644 toolkit/mozapps/extensions/content/pluginPrefs.xhtml delete mode 100644 toolkit/themes/shared/plugins/contentPluginBlocked.png delete mode 100644 toolkit/themes/shared/plugins/contentPluginCrashed.png delete mode 100644 toolkit/themes/shared/plugins/contentPluginStripe.png delete mode 100644 toolkit/themes/shared/plugins/pluginProblem.css diff --git a/mobile/android/locales/filter.py b/mobile/android/locales/filter.py index c06f19ea9d0b..1e815893a02c 100644 --- a/mobile/android/locales/filter.py +++ b/mobile/android/locales/filter.py @@ -24,7 +24,6 @@ def test(mod, path, entity=None): "chrome/global/commonDialogs.properties", "chrome/global/intl.properties", "chrome/global/intl.css", - "chrome/pluginproblem/pluginproblem.dtd", "chrome/global/aboutWebrtc.properties", ): return "error" diff --git a/mobile/android/locales/jar.mn b/mobile/android/locales/jar.mn index 1cb1048a3dc0..8aa14d2fa0a7 100644 --- a/mobile/android/locales/jar.mn +++ b/mobile/android/locales/jar.mn @@ -28,8 +28,6 @@ relativesrcdir toolkit/locales: locale/@AB_CD@/browser/overrides/commonDialogs.properties (%chrome/global/commonDialogs.properties) locale/@AB_CD@/browser/overrides/intl.properties (%chrome/global/intl.properties) locale/@AB_CD@/browser/overrides/intl.css (%chrome/global/intl.css) -# plugins - locale/@AB_CD@/browser/overrides/plugins/pluginproblem.dtd (%chrome/pluginproblem/pluginproblem.dtd) #about:webrtc locale/@AB_CD@/browser/overrides/global/aboutWebrtc.properties (%chrome/global/aboutWebrtc.properties) diff --git a/mobile/android/locales/l10n.toml b/mobile/android/locales/l10n.toml index c265e658e1aa..013fd9c23040 100644 --- a/mobile/android/locales/l10n.toml +++ b/mobile/android/locales/l10n.toml @@ -200,10 +200,6 @@ exclude-multi-locale = [ reference = "toolkit/locales/en-US/chrome/global/intl.css" l10n = "{l}toolkit/chrome/global/intl.css" -[[paths]] - reference = "toolkit/locales/en-US/chrome/pluginproblem/pluginproblem.dtd" - l10n = "{l}toolkit/chrome/pluginproblem/pluginproblem.dtd" - [[paths]] reference = "toolkit/locales/en-US/chrome/global/aboutSupport.dtd" l10n = "{l}toolkit/chrome/global/aboutSupport.dtd" diff --git a/mobile/locales/filter.py b/mobile/locales/filter.py index a2ca317609b4..0453aff315e4 100644 --- a/mobile/locales/filter.py +++ b/mobile/locales/filter.py @@ -24,7 +24,6 @@ def test(mod, path, entity=None): "chrome/global/commonDialogs.properties", "chrome/global/intl.properties", "chrome/global/intl.css", - "chrome/pluginproblem/pluginproblem.dtd", "chrome/global/aboutWebrtc.properties", ): return "error" diff --git a/python/mozbuild/mozbuild/action/test_archive.py b/python/mozbuild/mozbuild/action/test_archive.py index 04a5ad0ea8d0..a208b59706b8 100644 --- a/python/mozbuild/mozbuild/action/test_archive.py +++ b/python/mozbuild/mozbuild/action/test_archive.py @@ -52,22 +52,6 @@ TEST_HARNESS_BINS = [ TEST_HARNESS_DLLS = ["crashinjectdll", "mozglue"] -TEST_PLUGIN_DLLS = [ - "npsecondtest", - "npswftest", - "nptest", - "nptestjava", - "npthirdtest", -] - -TEST_PLUGIN_DIRS = [ - "JavaTest.plugin/**", - "SecondTest.plugin/**", - "Test.plugin/**", - "ThirdTest.plugin/**", - "npswftest.plugin/**", -] - GMP_TEST_PLUGIN_DIRS = [ "gmp-clearkey/**", "gmp-fake/**", @@ -238,26 +222,6 @@ ARCHIVE_FILES = { ], "dest": "bin", }, - { - "source": buildconfig.topobjdir, - "base": "dist/plugins", - "patterns": [ - "%s%s%s" - % ( - buildconfig.substs["DLL_PREFIX"], - f, - buildconfig.substs["DLL_SUFFIX"], - ) - for f in TEST_PLUGIN_DLLS - ], - "dest": "bin/plugins", - }, - { - "source": buildconfig.topobjdir, - "base": "dist/plugins", - "patterns": TEST_PLUGIN_DIRS, - "dest": "bin/plugins", - }, { "source": buildconfig.topobjdir, "base": "dist/bin", diff --git a/toolkit/locales/en-US/chrome/pluginproblem/pluginproblem.dtd b/toolkit/locales/en-US/chrome/pluginproblem/pluginproblem.dtd deleted file mode 100644 index a9abfd087078..000000000000 --- a/toolkit/locales/en-US/chrome/pluginproblem/pluginproblem.dtd +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/toolkit/locales/jar.mn b/toolkit/locales/jar.mn index 7d1ab5d19316..a8eb2d0f1f07 100644 --- a/toolkit/locales/jar.mn +++ b/toolkit/locales/jar.mn @@ -64,7 +64,6 @@ locale/@AB_CD@/mozapps/downloads/unknownContentType.properties (%chrome/mozapps/downloads/unknownContentType.properties) locale/@AB_CD@/mozapps/downloads/unknownContentType.dtd (%chrome/mozapps/downloads/unknownContentType.dtd) locale/@AB_CD@/mozapps/downloads/downloads.properties (%chrome/mozapps/downloads/downloads.properties) - locale/@AB_CD@/mozapps/extensions/extensions.dtd (%chrome/mozapps/extensions/extensions.dtd) #ifndef MOZ_FENNEC locale/@AB_CD@/mozapps/extensions/extensions.properties (%chrome/mozapps/extensions/extensions.properties) #endif @@ -72,8 +71,6 @@ #ifndef MOZ_FENNEC locale/@AB_CD@/mozapps/update/updates.properties (%chrome/mozapps/update/updates.properties) #endif -% locale pluginproblem @AB_CD@ %locale/@AB_CD@/pluginproblem/ - locale/@AB_CD@/pluginproblem/pluginproblem.dtd (%chrome/pluginproblem/pluginproblem.dtd) % locale alerts @AB_CD@ %locale/@AB_CD@/alerts/ locale/@AB_CD@/alerts/alert.dtd (%chrome/alerts/alert.dtd) locale/@AB_CD@/alerts/alert.properties (%chrome/alerts/alert.properties) diff --git a/toolkit/mozapps/extensions/content/pluginPrefs.js b/toolkit/mozapps/extensions/content/pluginPrefs.js deleted file mode 100644 index 2828a8dae309..000000000000 --- a/toolkit/mozapps/extensions/content/pluginPrefs.js +++ /dev/null @@ -1,78 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -"use strict"; - -const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm"); -const { AddonManager } = ChromeUtils.import( - "resource://gre/modules/AddonManager.jsm" -); - -const PREFS = { - pluginFlashBlockingCheckbox: { - pref: "plugins.flashBlock.enabled", - invert: false, - }, - pluginEnableProtectedModeCheckbox: { - pref: "dom.ipc.plugins.flash.disable-protected-mode", - invert: true, - }, -}; - -async function renderPluginMetadata(id) { - let plugin = await AddonManager.getAddonByID(id); - if (!plugin) { - return; - } - - let libLabel = document.getElementById("pluginLibraries"); - libLabel.textContent = plugin.pluginLibraries.join(", "); - - let typeLabel = document.getElementById("pluginMimeTypes"), - types = []; - for (let type of plugin.pluginMimeTypes) { - let extras = [type.description.trim(), type.suffixes] - .filter(x => x) - .join(": "); - types.push(type.type + (extras ? " (" + extras + ")" : "")); - } - typeLabel.textContent = types.join(",\n"); - let showProtectedModePref = canDisableFlashProtectedMode(plugin); - document.getElementById( - "pluginEnableProtectedMode" - ).hidden = !showProtectedModePref; - - // Disable flash blocking when Fission is enabled (See Bug 1584931). - document.getElementById( - "pluginFlashBlocking" - ).hidden = canDisableFlashBlocking(); -} - -// Protected mode is win32-only, not win64 -function canDisableFlashProtectedMode(aPlugin) { - return aPlugin.isFlashPlugin && Services.appinfo.XPCOMABI == "x86-msvc"; -} - -function canDisableFlashBlocking() { - return Services.appinfo.fissionAutostart; -} - -function init() { - let params = new URLSearchParams(location.hash.slice(1)); - renderPluginMetadata(params.get("id")); - - for (let id of Object.keys(PREFS)) { - let checkbox = document.getElementById(id); - var prefVal = Services.prefs.getBoolPref(PREFS[id].pref); - checkbox.checked = PREFS[id].invert ? !prefVal : prefVal; - checkbox.addEventListener("change", () => { - Services.prefs.setBoolPref( - PREFS[id].pref, - PREFS[id].invert ? !checkbox.checked : checkbox.checked - ); - }); - } -} - -window.addEventListener("load", init, { once: true }); diff --git a/toolkit/mozapps/extensions/content/pluginPrefs.xhtml b/toolkit/mozapps/extensions/content/pluginPrefs.xhtml deleted file mode 100644 index 4eafb9f261c6..000000000000 --- a/toolkit/mozapps/extensions/content/pluginPrefs.xhtml +++ /dev/null @@ -1,72 +0,0 @@ - - - -%pluginsDTD; - -%extensionsDTD; -]> - - - - - - - - - -
- -
-
- -
-
-
- - &setting.learnmore; -
- -
-
-
- - &setting.learnmore; -
- -
- - diff --git a/toolkit/mozapps/extensions/jar.mn b/toolkit/mozapps/extensions/jar.mn index a203524e23a7..219ac50dabc0 100644 --- a/toolkit/mozapps/extensions/jar.mn +++ b/toolkit/mozapps/extensions/jar.mn @@ -9,8 +9,6 @@ toolkit.jar: content/mozapps/extensions/extensions.js (content/extensions.js) content/mozapps/extensions/blocklist.xhtml (content/blocklist.xhtml) content/mozapps/extensions/blocklist.js (content/blocklist.js) - content/mozapps/extensions/pluginPrefs.xhtml (content/pluginPrefs.xhtml) - content/mozapps/extensions/pluginPrefs.js (content/pluginPrefs.js) content/mozapps/extensions/OpenH264-license.txt (content/OpenH264-license.txt) content/mozapps/extensions/aboutaddons.html (content/aboutaddons.html) content/mozapps/extensions/aboutaddons.js (content/aboutaddons.js) diff --git a/toolkit/themes/osx/global/jar.mn b/toolkit/themes/osx/global/jar.mn index 36f50f72ba23..bcc52685c1d3 100644 --- a/toolkit/themes/osx/global/jar.mn +++ b/toolkit/themes/osx/global/jar.mn @@ -45,4 +45,3 @@ toolkit.jar: skin/classic/global/icons/sslWarning.png (icons/sslWarning.png) * skin/classic/global/in-content/common.css (in-content/common.css) * skin/classic/global/in-content/info-pages.css (in-content/info-pages.css) - skin/classic/global/plugins/pluginHelp-16.png (plugins/pluginHelp-16.png) diff --git a/toolkit/themes/shared/jar.inc.mn b/toolkit/themes/shared/jar.inc.mn index f17ea8b3dd1a..46fc85a3ed0f 100644 --- a/toolkit/themes/shared/jar.inc.mn +++ b/toolkit/themes/shared/jar.inc.mn @@ -119,10 +119,6 @@ toolkit.jar: #endif skin/classic/global/plugins/plugin.svg (../../shared/plugins/plugin.svg) skin/classic/global/plugins/plugin-blocked.svg (../../shared/plugins/plugin-blocked.svg) - skin/classic/global/plugins/pluginProblem.css (../../shared/plugins/pluginProblem.css) - skin/classic/global/plugins/contentPluginBlocked.png (../../shared/plugins/contentPluginBlocked.png) - skin/classic/global/plugins/contentPluginCrashed.png (../../shared/plugins/contentPluginCrashed.png) - skin/classic/global/plugins/contentPluginStripe.png (../../shared/plugins/contentPluginStripe.png) skin/classic/global/pictureinpicture/player.css (../../shared/pictureinpicture/player.css) skin/classic/global/media/pictureinpicture.svg (../../shared/media/pictureinpicture.svg) skin/classic/global/pictureinpicture/audio.svg (../../shared/pictureinpicture/audio.svg) diff --git a/toolkit/themes/shared/non-mac.jar.inc.mn b/toolkit/themes/shared/non-mac.jar.inc.mn index b9e5eb7ba2af..b5a636dc8507 100644 --- a/toolkit/themes/shared/non-mac.jar.inc.mn +++ b/toolkit/themes/shared/non-mac.jar.inc.mn @@ -21,7 +21,6 @@ * skin/classic/global/dirListing/dirListing.css (../../windows/global/dirListing/dirListing.css) skin/classic/global/icons/question-64.png (../../windows/global/icons/question-64.png) skin/classic/global/icons/search-textbox.svg (../../windows/global/icons/search-textbox.svg) - skin/classic/global/plugins/pluginHelp-16.png (../../windows/global/plugins/pluginHelp-16.png) skin/classic/mozapps/downloads/unknownContentType.css (../../windows/mozapps/downloads/unknownContentType.css) skin/classic/mozapps/extensions/blocklist.css (../../windows/mozapps/extensions/blocklist.css) diff --git a/toolkit/themes/shared/plugins/contentPluginBlocked.png b/toolkit/themes/shared/plugins/contentPluginBlocked.png deleted file mode 100644 index 9f59b38e0c7c1125be88da76378fe9bea1c2eee2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1487 zcmV;=1u*)FP)VbG+D?n8@*>(MfQQ zHD;J)4|~zrNfEp_r1DG>r$e;XT~~ ze-J}f_>IL2oBIEnH8>*kacO1lvc1Kz)%YJp#gQ6sit#ZwOlxcl9$K9it{ zHXe8x-%+w8TOdociOt{e@h7Y2UwTdmgE4NkSpsc5@WRvilZ8yl6nNBZUO)ee^9Uas z#blPj11~)BHaQ;K+X6?h!LjV|2Lru1y251Zv6>?A!V_(4xDnOPd@WqFDmg9fuy!rr~J2 zA*5S`wN!$q%|IrynVDW&V6j*a^?%HYFx+Mc=6DI#QVE_m1DVKXX6D-h>m7lgcoWSU zZZY`NPykPxflOpGGplTYbq=3~8hP9sYAL{a3c=H6AQRcl%t~8eky{A;F+0-021896 z3gBrokcn(&CSeQoxP_)e4rmMWcr#S6FDfT)&Wg(%PV60->& zcm<3f&c4(7>FrqQBlf(BY>>IoaNUU-vXCVpZHTVY++qLD}LuYFN3 zFt1=vkR)Lbd(l7(P3wUt-ZS|l-+k5q^y)Yo&3~z;@L#{~eLmZZzohFnq4EeQ3V>t5 zIo6nAmObo6!|56Boyi~hEQgA&ofs~EW6PF~#lhOzwyQ4kR~~Xu+bh4#i9G*9FA5xU zjx}bOWzSA@&^{y;KXjiXhA^EWhR{Si)qgcOUKEL?Vnvd$rwEPI{?%aTd|wTY%ACRqRg002ovPDHLkV1kNT&ba^p diff --git a/toolkit/themes/shared/plugins/contentPluginCrashed.png b/toolkit/themes/shared/plugins/contentPluginCrashed.png deleted file mode 100644 index 1c0d5b32c78af1a1e5c27961012ec1aa2fe394b7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1229 zcmV;;1Ty=HP)Y2yuXWO=I+x82d&9!aYw)sEFNiwNH*Gw+@CELkwx6^e_ zRh>cYboKu4@ZrP%X-5mFXz`9pDh=t#K&FKZjZf2jlxklVhYp4eWFZ$-Pz^Oy%?LGA zHB`~~EX_|V<-RJ}7Lb8#R7GtxKoj^7h{31r4K%*0=4YzX=qtmvfHY)jV%-A=4h%k= z#3AvLr};UmH2TUy8eETb zWS|NfpjnE8Hq-nXsx?@>mIR^F3RmpwT@xtM~%R$sBdA)xg~O12y17M}l@^zenwsIl_k;W&r_o z*7bN_B8LtgS~FzGkXO$?|NQGNzx?v+M~xcw2G=%dyDNzuK79D=k}u@kGJmJc5dpJ+ znh^zT$KH4tXmyVsJuW2n6oe4QsT`N;B=#n9@ZiA}j^kVskuOe>YtrVDzdfRWn(+$Q ziaqiC^Ups|>7d=wLG?g*>eQ)kneirG?dQyVJr7BnOa4}y0ybe+JU*WZhR)~0|} z*cuOCv<3b9_aC4?umY+Dul@;qiI+)?Oa7ev{QQvl5t3`t=90h4rhw(xln4XO9x-CX zO+`gTeJ;A_qW+U7PrjFH^R?ZT#Eu<1_72Gva&DQw+@^pf*x*r1YzkP2bsn|Qrhs`~ zW>dgyFS99NMrmPHnj}iIPn!a!q+;vVtzZBC`|tN&cinZDUwY}K7t>b>idD%~S6y|9 zv`LJ_raF#I0TYw4apT4h`9*pexrI0xVK^9Qa1hp*LdlWbWXH29V63gpn>T-ym6dgd z{<0i|KIny>;BUaV)<V{7lQNm z_7}GtiQ#*21vw$)fBNaCHzzZuO#y>#vCZ-G;>C-f-nMPqyViM%oVS-RU;do*kxZUZ zK+Idpzr4)2rHpw~|C^V^x~Vs}Retg^b6X{9V{6NnEl(2oy%)*c%#E$6twpp&PdGRk zdB~3;&t%4yLSCNE!9h=*o3XWMZ0>46GqgcRbgp0>buP`|H#c|fAL>;Y_lJJAk5wyx r`(sy^2iqRt^5FaE|CR7~0p526F`U5fBRdw_00000NkvXXu0mjf;;(Le diff --git a/toolkit/themes/shared/plugins/contentPluginStripe.png b/toolkit/themes/shared/plugins/contentPluginStripe.png deleted file mode 100644 index 7fda316f34328cf3f36beda57b460f31a5cd8df1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 285 zcmeAS@N?(olHy`uVBq!ia0vp^HXzKw1|+Ti+$;i8jKx9jP7LeL$-D$|u6w#ThEy=V zy~xPM?xnRa4Ucb*Sgv#^E^E8eA-x9Phy!9e57=(p zwNGG--q4^6;wEs5ZD8fT(Zrf_kZBu{!VxVX)pAye=XEzWsGi@q`?}fOjbOVE+BNZ- mfm{>TB%6JmFZcARy$r42rvA35ytf$WMFvk-KbLh*2~7Zt2yK%9 diff --git a/toolkit/themes/shared/plugins/pluginProblem.css b/toolkit/themes/shared/plugins/pluginProblem.css deleted file mode 100644 index 6225c4b89ad7..000000000000 --- a/toolkit/themes/shared/plugins/pluginProblem.css +++ /dev/null @@ -1,260 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -@namespace html url(http://www.w3.org/1999/xhtml); - -/* These styles affect only the bound element, not other page content. */ -.mainBox { - --grey-10: #f9f9fa; - --grey-60: #4a4a4f; - --grey-70: #38383d; -} - -.mainBox { - font: message-box; - font-size: 12px; - text-align: center; - display: table; - width: 100%; - height: 100%; - background-color: rgb(72,72,72); - color: white; - user-select: none; -} - -.hoverBox { - display: table-cell; - box-sizing: border-box; - padding: 5px; - vertical-align: middle; - width: 100%; - height: 100%; -} - -:host(:-moz-handler-vulnerable-updatable) .hoverBox:active, -:host(:-moz-handler-vulnerable-no-update) .hoverBox:active { - background-color: rgb(65, 65, 65); -} - -:host(:-moz-handler-vulnerable-updatable) .hoverBox:active .msgClickToPlay, -:host(:-moz-handler-vulnerable-no-update) .hoverBox:active .msgClickToPlay { - color: red; -} - -:host(:-moz-handler-vulnerable-updatable) .hoverBox, -:host(:-moz-handler-vulnerable-no-update) .hoverBox, -:host(:-moz-handler-blocked) .hoverBox, -:host(:-moz-handler-crashed) .hoverBox { - background-image: url(chrome://global/skin/plugins/contentPluginStripe.png); -} - -html|a { - color: white; -} - -.icon { - width: 48px; - height: 48px; - background-position: center; - background-repeat: no-repeat; - background-size: contain; - border: none; - background-color: transparent; - -moz-user-focus: ignore; - margin-bottom: 6px; - -moz-context-properties: fill; -} - -:host(:-moz-handler-vulnerable-updatable) .icon, -:host(:-moz-handler-vulnerable-no-update) .icon { - background-image: url(chrome://global/skin/plugins/contentPluginBlocked.png); - -moz-user-focus: normal; -} - -:host(:-moz-handler-blocked) .icon { - background-image: url(chrome://global/skin/plugins/contentPluginBlocked.png); -} - -:host(:-moz-handler-clicktoplay) .icon { - background-image: url(chrome://global/skin/plugins/plugin.svg); - fill: var(--grey-10); - -moz-user-focus: normal; -} - -:host(:-moz-handler-crashed) .icon { - background-image: url(chrome://global/skin/plugins/contentPluginCrashed.png); -} - -.throbber { - padding-left: 16px; /* width of the background image */ - background: url(chrome://global/skin/icons/loading.png) no-repeat; - margin-left: 5px; -} - -@media (min-resolution: 1.1dppx) { - .throbber { - background-image: url(chrome://global/skin/icons/loading@2x.png); - background-size: 16px; - } -} - -/* on desktop, don't ever show the tap-to-play UI: that is for mobile only */ -:host(:-moz-handler-clicktoplay) .msgTapToPlay { - display: none; -} - -.submitStatus div { - min-height: 19px; /* height of biggest line (with throbber) */ -} - -.submitComment { - width: 340px; - height: 70px; - padding: 5px; - border: none; - border-radius: 5px; - resize: none; - font-family: inherit; - font-size: inherit; -} - -.submitURLOptInBox { - text-align: start; -} - -.submitURLOptIn { - margin-left: -1px; -} - -.mainBox[chromedir="rtl"] .submitURLOptIn { - margin-left: 0; - margin-right: -1px; -} - -.submitButtonBox { - margin-top: 7px; -} - -.submitButton { - float: right; -} - -.mainBox[chromedir="rtl"] .submitButton { - float: left; -} - -.helpIcon { - display: inline-block; - min-width: 16px; - min-height: 16px; - background: url(chrome://global/skin/plugins/pluginHelp-16.png) no-repeat; - cursor: pointer; - float: left; -} - -.mainBox[chromedir="rtl"] .helpIcon { - float: right; -} - -.closeIcon { - display: block; - width: 20px; - height: 20px; - margin-top: 4px; - margin-inline: -24px 4px; - border: none; - border-radius: 2px; - background-color: transparent; - background-image: url(chrome://global/skin/icons/close.svg); - background-repeat: no-repeat; - -moz-context-properties: fill, fill-opacity; - fill-opacity: 0; - fill: var(--grey-10); -} - -.closeIcon:hover { - fill-opacity: .1; -} - -.closeIcon:hover:active { - fill-opacity: .2; -} - -.action-link { - display: inline-block; - border-radius: 10px; - background-color: rgb(35, 35, 35); - padding: 2px 8px; - margin-top: 7px; - text-decoration: none; -} -.action-link:active { - background-color: rgb(20, 20, 20); -} - -:host(:-moz-handler-vulnerable-updatable) .action-link { - background-color: #a81b0c; -} - -:host(:-moz-handler-vulnerable-updatable) .action-link:active { - background-color: #801409; -} - -/* New Photon styling - * - * At the moment, these rules are written to only override - * :-moz-handler-clicktoplay styling. Once we finish the - * redesign for all cases, we can change the CSS directly - * above instead of writing these super-specific rules. - */ -:host(:-moz-handler-clicktoplay) .mainBox { - background-color: var(--grey-70); -} - -:host(:-moz-handler-clicktoplay) .msgClickToPlay { - /* Triggers overflow event if the container is too small */ - min-width: 240px; - font-size: 13px; -} - -:host(:-moz-handler-clicktoplay) .mainBox[sizing=oversized] { - /* Triggers overflow event when there is a layout */ - width: 101%; -} - -:host(:-moz-handler-clicktoplay) .mainBox[sizing=blank] .hoverBox { - visibility: hidden; -} - -:host(:-moz-handler-clicktoplay) .mainBox[sizing=tiny] .icon { - width: 16px; - height: 16px; -} - -:host(:-moz-handler-clicktoplay) .mainBox[sizing=reduced] .icon { - width: 32px; - height: 32px; -} - -:host(:-moz-handler-clicktoplay) .mainBox[sizing=blank] .closeIcon, -:host(:-moz-handler-clicktoplay) .mainBox[sizing=tiny] .closeIcon, -:host(:-moz-handler-clicktoplay) .mainBox[sizing=reduced] .closeIcon { - display: none; -} - -:host(:-moz-handler-clicktoplay) .mainBox[notext] .msgClickToPlay { - display: none; -} - -:host(:-moz-handler-clicktoplay) .mainBox[notext] .icon { - /* Override a `margin-bottom: 6px` now that .msgClickToPlay - * below the icon is no longer shown, in order to achieve - * a perfect vertical centering of the icon. - */ - margin-bottom: 0; -} - -:host(:-moz-handler-clicktoplay) .hoverBox:active { - background-color: var(--grey-60); -}