From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- toolkit/pluginproblem/content/pluginProblem.xml | 87 ++++++++++++++++ .../pluginproblem/content/pluginProblemBinding.css | 26 +++++ .../pluginproblem/content/pluginProblemContent.css | 116 +++++++++++++++++++++ .../pluginproblem/content/pluginReplaceBinding.css | 17 +++ toolkit/pluginproblem/jar.mn | 10 ++ toolkit/pluginproblem/moz.build | 11 ++ toolkit/pluginproblem/pluginGlue.manifest | 1 + 7 files changed, 268 insertions(+) create mode 100644 toolkit/pluginproblem/content/pluginProblem.xml create mode 100644 toolkit/pluginproblem/content/pluginProblemBinding.css create mode 100644 toolkit/pluginproblem/content/pluginProblemContent.css create mode 100644 toolkit/pluginproblem/content/pluginReplaceBinding.css create mode 100644 toolkit/pluginproblem/jar.mn create mode 100644 toolkit/pluginproblem/moz.build create mode 100644 toolkit/pluginproblem/pluginGlue.manifest (limited to 'toolkit/pluginproblem') diff --git a/toolkit/pluginproblem/content/pluginProblem.xml b/toolkit/pluginproblem/content/pluginProblem.xml new file mode 100644 index 000000000..d890be900 --- /dev/null +++ b/toolkit/pluginproblem/content/pluginProblem.xml @@ -0,0 +1,87 @@ + + + + + + %pluginproblemDTD; + %globalDTD; + %brandDTD; +]> + + + + + + + + + + + + + + + &tapToPlayPlugin; + &clickToActivatePlugin; + + + &blockedPlugin.label; + + + + &reloadPlugin.pre;&reloadPlugin.middle;&reloadPlugin.post; + + + &managePlugins; + + + + + &report.pageURL; + + + + + + + &report.submitting; + &report.submitted; + &report.disabled; + &report.failed; + &report.unavailable; + + &checkForUpdates; + + + + + + + + // Notify browser-plugins.js that we were attached, on a delay because + // this binding doesn't complete layout until the constructor + // completes. + this.dispatchEvent(new CustomEvent("PluginBindingAttached")); + + + + + + + + this.dispatchEvent(new CustomEvent("PluginPlaceholderReplaced")); + + + + + diff --git a/toolkit/pluginproblem/content/pluginProblemBinding.css b/toolkit/pluginproblem/content/pluginProblemBinding.css new file mode 100644 index 000000000..48506de34 --- /dev/null +++ b/toolkit/pluginproblem/content/pluginProblemBinding.css @@ -0,0 +1,26 @@ +/* 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 url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */ + +embed:-moz-handler-blocked, +embed:-moz-handler-crashed, +embed:-moz-handler-clicktoplay, +embed:-moz-handler-vulnerable-updatable, +embed:-moz-handler-vulnerable-no-update, +applet:-moz-handler-blocked, +applet:-moz-handler-crashed, +applet:-moz-handler-clicktoplay, +applet:-moz-handler-vulnerable-updatable, +applet:-moz-handler-vulnerable-no-update, +object:-moz-handler-blocked, +object:-moz-handler-crashed, +object:-moz-handler-clicktoplay, +object:-moz-handler-vulnerable-updatable, +object:-moz-handler-vulnerable-no-update { + display: inline-block; + overflow: hidden; + opacity: 1 !important; + -moz-binding: url('chrome://pluginproblem/content/pluginProblem.xml#pluginProblem') !important; +} diff --git a/toolkit/pluginproblem/content/pluginProblemContent.css b/toolkit/pluginproblem/content/pluginProblemContent.css new file mode 100644 index 000000000..43a9f52dc --- /dev/null +++ b/toolkit/pluginproblem/content/pluginProblemContent.css @@ -0,0 +1,116 @@ +/* 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); + +/* Do not change this without also changing the appropriate line in + * browser-plugins.js (near where this file is mentioned). */ +html|object:not([width]), html|object[width=""], +html|embed:not([width]), html|embed[width=""], +html|applet:not([width]), html|applet[width=""] { + width: 240px; +} + +/* Do not change this without also changing the appropriate line in + * browser-plugins.js (near where this file is mentioned). */ +html|object:not([height]), html|object[height=""], +html|embed:not([height]), html|embed[height=""], +html|applet:not([height]), html|applet[height=""] { + height: 200px; +} + +a .mainBox, +:-moz-handler-clicktoplay .mainBox, +:-moz-handler-vulnerable-updatable .mainBox, +:-moz-handler-vulnerable-no-update .mainBox, +:-moz-handler-blocked .mainBox { + -moz-user-focus: normal; +} +a .mainBox:focus, +:-moz-handler-clicktoplay .mainBox:focus, +:-moz-handler-vulnerable-updatable .mainBox:focus, +:-moz-handler-vulnerable-no-update .mainBox:focus, +:-moz-handler-blocked .mainBox:focus { + outline: 1px dotted; +} + +.mainBox { + width: inherit; + height: inherit; + overflow: hidden; + direction: ltr; + unicode-bidi: embed; + /* used to block inherited properties */ + text-transform: none; + text-indent: 0; + cursor: initial; + white-space: initial; + word-spacing: initial; + letter-spacing: initial; + line-height: initial; +} + +/* Initialize the overlay with visibility:hidden to prevent flickering if +* the plugin is too small to show the overlay */ +.mainBox > .hoverBox, +.mainBox > .closeIcon { + visibility: hidden; +} + +.visible > .hoverBox, +.visible > .closeIcon { + visibility: visible; +} + +.mainBox[chromedir="rtl"] { + direction: rtl; +} + +a .hoverBox, +:-moz-handler-clicktoplay .hoverBox, +:-moz-handler-vulnerable-updatable .hoverBox, +:-moz-handler-vulnerable-no-update .hoverBox { + cursor: pointer; +} + +.hoverBox > label { + cursor: inherit; +} +.icon { + cursor: inherit; +} + +.msg { + display: none; +} + +a .msgClickToPlay, +a .msgTapToPlay, +:-moz-handler-clicktoplay .msgClickToPlay, +:-moz-handler-vulnerable-updatable .msgVulnerabilityStatus, +:-moz-handler-vulnerable-updatable .msgCheckForUpdates, +:-moz-handler-vulnerable-updatable .msgClickToPlay, +:-moz-handler-vulnerable-no-update .msgVulnerabilityStatus, +:-moz-handler-vulnerable-no-update .msgClickToPlay, +:-moz-handler-clicktoplay .msgTapToPlay, +:-moz-handler-blocked .msgBlocked, +:-moz-handler-crashed .msgCrashed { + display: block; +} + +.submitStatus[status] { + display: -moz-box; + -moz-box-align: center; + -moz-box-pack: center; + height: 160px; +} + +.submitStatus[status="noReport"] .msgNoCrashReport, +.submitStatus[status="please"] .msgPleaseSubmit, +.submitStatus[status="noSubmit"] .msgNotSubmitted, +.submitStatus[status="submitting"] .msgSubmitting, +.submitStatus[status="success"] .msgSubmitted, +.submitStatus[status="failed"] .msgSubmitFailed { + display: block; +} diff --git a/toolkit/pluginproblem/content/pluginReplaceBinding.css b/toolkit/pluginproblem/content/pluginReplaceBinding.css new file mode 100644 index 000000000..405a3a4b7 --- /dev/null +++ b/toolkit/pluginproblem/content/pluginReplaceBinding.css @@ -0,0 +1,17 @@ +/* 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 url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */ + +a[href='https://get.adobe.com/flashplayer/'], +a[href='http://get.adobe.com/flashplayer/'], +a[href='https://get.adobe.com/flashplayer'], +a[href='http://get.adobe.com/flashplayer'], +a[href='https://www.adobe.com/go/getflash/'], +a[href='http://www.adobe.com/go/getflash/'] { + display: inline-block; + overflow: hidden; + opacity: 1 !important; + -moz-binding: url('chrome://pluginproblem/content/pluginProblem.xml#replacement') !important; +} diff --git a/toolkit/pluginproblem/jar.mn b/toolkit/pluginproblem/jar.mn new file mode 100644 index 000000000..d0af1c82f --- /dev/null +++ b/toolkit/pluginproblem/jar.mn @@ -0,0 +1,10 @@ +# 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/. + +toolkit.jar: +% content pluginproblem %pluginproblem/ contentaccessible=yes + pluginproblem/pluginProblem.xml (content/pluginProblem.xml) + pluginproblem/pluginProblemContent.css (content/pluginProblemContent.css) + pluginproblem/pluginProblemBinding.css (content/pluginProblemBinding.css) + pluginproblem/pluginReplaceBinding.css (content/pluginReplaceBinding.css) diff --git a/toolkit/pluginproblem/moz.build b/toolkit/pluginproblem/moz.build new file mode 100644 index 000000000..070967341 --- /dev/null +++ b/toolkit/pluginproblem/moz.build @@ -0,0 +1,11 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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/. + +EXTRA_COMPONENTS += [ + 'pluginGlue.manifest', +] + +JAR_MANIFESTS += ['jar.mn'] diff --git a/toolkit/pluginproblem/pluginGlue.manifest b/toolkit/pluginproblem/pluginGlue.manifest new file mode 100644 index 000000000..96ebc9bd4 --- /dev/null +++ b/toolkit/pluginproblem/pluginGlue.manifest @@ -0,0 +1 @@ +category agent-style-sheets pluginGlue-pluginProblem chrome://pluginproblem/content/pluginProblemBinding.css -- cgit v1.2.3