mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Backed out changeset 4ebf2657b295 (bug 920927) for Android Reftest Failure on a CLOSED TREE
This commit is contained in:
parent
144c2a1b52
commit
4526325752
@ -313,7 +313,7 @@ var gPluginHandler = {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show the in-content UI if it's not too big. The crashed plugin handler already did this.
|
// Hide the in-content UI if it's too big. The crashed plugin handler already did this.
|
||||||
if (eventType != "PluginCrashed" && eventType != "PluginRemoved") {
|
if (eventType != "PluginCrashed" && eventType != "PluginRemoved") {
|
||||||
let overlay = this.getPluginUI(plugin, "main");
|
let overlay = this.getPluginUI(plugin, "main");
|
||||||
if (overlay != null) {
|
if (overlay != null) {
|
||||||
@ -989,12 +989,12 @@ var gPluginHandler = {
|
|||||||
if (this.isTooSmall(plugin, overlay)) {
|
if (this.isTooSmall(plugin, overlay)) {
|
||||||
// Hide the overlay's contents. Use visibility style, so that it doesn't
|
// Hide the overlay's contents. Use visibility style, so that it doesn't
|
||||||
// collapse down to 0x0.
|
// collapse down to 0x0.
|
||||||
|
overlay.style.visibility = "hidden";
|
||||||
isShowing = false;
|
isShowing = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isShowing) {
|
if (isShowing) {
|
||||||
overlay.style.visibility = "visible";
|
|
||||||
// If a previous plugin on the page was too small and resulted in adding a
|
// If a previous plugin on the page was too small and resulted in adding a
|
||||||
// notification bar, then remove it because this plugin instance it big
|
// notification bar, then remove it because this plugin instance it big
|
||||||
// enough to serve as in-content notification.
|
// enough to serve as in-content notification.
|
||||||
|
@ -26,6 +26,9 @@ object:-moz-handler-playpreview,
|
|||||||
object:-moz-handler-vulnerable-updatable,
|
object:-moz-handler-vulnerable-updatable,
|
||||||
object:-moz-handler-vulnerable-no-update {
|
object:-moz-handler-vulnerable-no-update {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
/* Initialize the overlay with visibility:hidden to prevent flickering if
|
||||||
|
* the plugin is too small to show the overlay */
|
||||||
|
visibility: hidden;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
opacity: 1 !important;
|
opacity: 1 !important;
|
||||||
-moz-binding: url('chrome://mozapps/content/plugins/pluginProblem.xml#pluginProblem') !important;
|
-moz-binding: url('chrome://mozapps/content/plugins/pluginProblem.xml#pluginProblem') !important;
|
||||||
|
@ -42,9 +42,6 @@ html|applet:not([height]), html|applet[height=""] {
|
|||||||
.mainBox {
|
.mainBox {
|
||||||
width: inherit;
|
width: inherit;
|
||||||
height: inherit;
|
height: inherit;
|
||||||
/* Initialize the overlay with visibility:hidden to prevent flickering if
|
|
||||||
* the plugin is too small to show the overlay */
|
|
||||||
visibility: hidden;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
direction: ltr;
|
direction: ltr;
|
||||||
unicode-bidi: embed;
|
unicode-bidi: embed;
|
||||||
|
Loading…
Reference in New Issue
Block a user