зеркало из https://github.com/mozilla/pjs.git
Camino only: Bug 391973 - Upgrade to Flashblock 1.5.4.1. r/sr=mento
This commit is contained in:
Родитель
968e8aa013
Коммит
992b198227
|
@ -6,5 +6,5 @@ manifest. A contents.rdf file is included to allow Camino to identify
|
|||
the contents of flashblock.jar.
|
||||
|
||||
Camino's bundled Flashblock extension is currently synchronized with
|
||||
Flashblock 1.5.3 from
|
||||
http://downloads.mozdev.org/flashblock/flashblock-1.5.3.xpi.
|
||||
Flashblock 1.5.4.1 from
|
||||
http://downloads.mozdev.org/flashblock/flashblock-1.5.4.1.xpi.
|
||||
|
|
|
@ -42,16 +42,9 @@ object[type="application/x-authorware-map"],
|
|||
object[src*=".aam"]
|
||||
{ -moz-binding: url("chrome://flashblock/content/flashblock.xml#authorware") !important; }
|
||||
|
||||
/*
|
||||
* Broken Objects.
|
||||
*/
|
||||
object
|
||||
{ -moz-binding: url("chrome://flashblock/content/flashblock.xml#brokenobject") !important; }
|
||||
|
||||
/*
|
||||
* Java identifiers.
|
||||
*/
|
||||
/*
|
||||
applet,
|
||||
object[classid*=":8AD9C840-044E-11D1-B3E9-00805F499D93"],
|
||||
object[classid^="clsid:CAFEEFAC-"],
|
||||
|
@ -64,7 +57,25 @@ embed[type="application/x-java-applet"]
|
|||
{
|
||||
-moz-binding: none !important;
|
||||
}
|
||||
|
||||
/*
|
||||
* Silverlight identifiers.
|
||||
*/
|
||||
object[classid*="32C73088-76AE-40F7-AC40-81F62CB2C1DA"],
|
||||
object[type="application/ag-plugin"],
|
||||
object[source*=".xaml"],
|
||||
object[sourceelement*="xaml"],
|
||||
embed[type="application/ag-plugin"],
|
||||
embed[source*=".xaml"]
|
||||
{
|
||||
-moz-binding: none !important;
|
||||
}
|
||||
|
||||
/*
|
||||
* Broken Objects.
|
||||
*/
|
||||
object
|
||||
{ -moz-binding: url("chrome://flashblock/content/flashblock.xml#brokenobject") !important; }
|
||||
|
||||
/* sIFR styles */
|
||||
.sIFR-flash, .sIFR-flash object, .sIFR-flash embed,
|
||||
|
|
|
@ -40,8 +40,10 @@ function flashblockShowPlaceholder() {
|
|||
parent.insertBefore(placeholder, current);
|
||||
if(placeholder.isStandalone) {
|
||||
placeholder.flashblock = "frame";
|
||||
current.StopPlay();
|
||||
current.LoadMovie(0, "");
|
||||
if ("StopPlay" in current)
|
||||
current.StopPlay();
|
||||
if ("LoadMovie" in current)
|
||||
current.LoadMovie(0, "");
|
||||
current.prevWidth = current.width;
|
||||
current.prevHeight = current.height;
|
||||
current.width = current.height = 0;
|
||||
|
@ -57,7 +59,8 @@ function flashblockShowFlash() {
|
|||
current.height = current.prevHeight;
|
||||
current.width = current.prevWidth;
|
||||
current.src = placeholder.title;
|
||||
current.LoadMovie(0, current.src);
|
||||
if ("LoadMovie" in current)
|
||||
current.LoadMovie(0, current.src);
|
||||
} else {
|
||||
parent.insertBefore(current, placeholder);
|
||||
if (placeholder.hasAttribute("srcAttribute")) {
|
||||
|
@ -166,9 +169,11 @@ function flashblockStylePlaceholder(flash, placeholder, isStandalone) {
|
|||
}
|
||||
|
||||
function flashblockSetTitle(current, placeholder, isStandalone) {
|
||||
// non-null "about:blank" value to prevent OS/2 crashing
|
||||
var fakeURI = "about:blank";
|
||||
if (isStandalone) {
|
||||
placeholder.title = current.src;
|
||||
current.src = "";
|
||||
current.src = fakeURI;
|
||||
}
|
||||
else if (current.hasAttribute("src") ||
|
||||
current.hasAttribute("data") ||
|
||||
|
@ -179,15 +184,15 @@ function flashblockSetTitle(current, placeholder, isStandalone) {
|
|||
placeholder.title = srcURI;
|
||||
if (current.hasAttribute("src")) {
|
||||
placeholder.setAttribute("srcAttribute", current.getAttribute("src"));
|
||||
current.setAttribute("src", "");
|
||||
current.setAttribute("src", fakeURI);
|
||||
}
|
||||
if (current.hasAttribute("data")) {
|
||||
placeholder.setAttribute("dataAttribute", current.getAttribute("data"));
|
||||
current.setAttribute("data", "");
|
||||
current.setAttribute("data", fakeURI);
|
||||
}
|
||||
if (current.hasAttribute("movie")) {
|
||||
placeholder.setAttribute("movieAttribute", current.getAttribute("movie"));
|
||||
current.setAttribute("movie", "");
|
||||
current.setAttribute("movie", fakeURI);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -197,14 +202,15 @@ function flashblockSetTitle(current, placeholder, isStandalone) {
|
|||
params[ii].hasAttribute("value")) {
|
||||
placeholder.title = params[ii].value;
|
||||
placeholder.movieParam = [ params[ii], placeholder.title ];
|
||||
params[ii].value = "";
|
||||
params[ii].value = fakeURI;
|
||||
break;
|
||||
}
|
||||
}
|
||||
var embeds = current.getElementsByTagName("embed");
|
||||
if (embeds && embeds.length > 0 && embeds[0].hasAttribute("src")) {
|
||||
placeholder.title = embeds[0].getAttribute("src");
|
||||
placeholder.setAttribute("embedsrc", embeds[0].getAttribute("src"));
|
||||
embeds[0].setAttribute("src","");
|
||||
embeds[0].setAttribute("src",fakeURI);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -216,7 +222,7 @@ var current = this;
|
|||
var parent = current.parentNode;
|
||||
|
||||
// Check parent too (case of working EMBED inside broken OBJECT)
|
||||
if (current.overrideCTV || parent.overrideCTV) {
|
||||
if (current.overrideCTV || parentNode.overrideCTV) {
|
||||
return;
|
||||
}
|
||||
current.overrideCTV = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче