mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 527417 - nsIPluginHost::getPluginTags aPluginCount out param should be optional. r=josh
This commit is contained in:
parent
891b7bc8b8
commit
bea18b662b
@ -96,7 +96,7 @@ function disableAddons() {
|
||||
// Disable plugins
|
||||
var phs = Components.classes["@mozilla.org/plugin/host;1"]
|
||||
.getService(Components.interfaces.nsIPluginHost);
|
||||
var plugins = phs.getPluginTags({ });
|
||||
var plugins = phs.getPluginTags();
|
||||
for (i = 0; i < plugins.length; ++i)
|
||||
plugins[i].disabled = true;
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ var gNextTest = null;
|
||||
function get_test_plugin() {
|
||||
var ph = Components.classes["@mozilla.org/plugin/host;1"]
|
||||
.getService(Components.interfaces.nsIPluginHost);
|
||||
var tags = ph.getPluginTags({});
|
||||
var tags = ph.getPluginTags();
|
||||
|
||||
// Find the test plugin
|
||||
for (var i = 0; i < tags.length; i++) {
|
||||
|
@ -110,7 +110,7 @@ interface nsIPluginHost : nsISupports
|
||||
|
||||
[noscript] void getPlugins(in unsigned long aPluginCount, out /*array*/ nsIDOMPlugin aPluginArray);
|
||||
|
||||
void getPluginTags(out unsigned long aPluginCount,
|
||||
void getPluginTags([optional] out unsigned long aPluginCount,
|
||||
[retval, array, size_is(aPluginCount)] out nsIPluginTag aResults);
|
||||
|
||||
[noscript] void stopPluginInstance(in nsIPluginInstance aInstance);
|
||||
|
@ -85,7 +85,7 @@ function write_registry(version, info) {
|
||||
function get_test_plugintag() {
|
||||
var host = Cc["@mozilla.org/plugin/host;1"].
|
||||
getService(Ci.nsIPluginHost);
|
||||
var tags = host.getPluginTags({});
|
||||
var tags = host.getPluginTags();
|
||||
for (var i = 0; i < tags.length; i++) {
|
||||
if (tags[i].name == "Test Plug-in")
|
||||
return tags[i];
|
||||
|
@ -76,7 +76,7 @@ function do_get_profile_startup() {
|
||||
function get_test_plugintag() {
|
||||
var host = Cc["@mozilla.org/plugin/host;1"].
|
||||
getService(Ci.nsIPluginHost);
|
||||
var tags = host.getPluginTags({});
|
||||
var tags = host.getPluginTags();
|
||||
for (var i = 0; i < tags.length; i++) {
|
||||
if (tags[i].name == "Test Plug-in")
|
||||
return tags[i];
|
||||
|
@ -11,7 +11,7 @@ var PluginUtils =
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
var ph = Components.classes["@mozilla.org/plugin/host;1"]
|
||||
.getService(Components.interfaces.nsIPluginHost);
|
||||
var tags = ph.getPluginTags({});
|
||||
var tags = ph.getPluginTags();
|
||||
|
||||
// Find the test plugin
|
||||
for (var i = 0; i < tags.length; i++)
|
||||
|
@ -1007,7 +1007,7 @@ function rebuildPluginsDS()
|
||||
.getService(nsIBlocklistService);
|
||||
var phs = Components.classes["@mozilla.org/plugin/host;1"]
|
||||
.getService(Components.interfaces.nsIPluginHost);
|
||||
var plugins = phs.getPluginTags({ });
|
||||
var plugins = phs.getPluginTags();
|
||||
var rdfCU = Components.classes["@mozilla.org/rdf/container-utils;1"]
|
||||
.getService(Components.interfaces.nsIRDFContainerUtils);
|
||||
var rootctr = rdfCU.MakeSeq(gPluginsDS, gRDF.GetResource(RDFURI_ITEM_ROOT));
|
||||
|
@ -804,7 +804,7 @@ Blocklist.prototype = {
|
||||
|
||||
var phs = Cc["@mozilla.org/plugin/host;1"].
|
||||
getService(Ci.nsIPluginHost);
|
||||
var plugins = phs.getPluginTags({});
|
||||
var plugins = phs.getPluginTags();
|
||||
|
||||
for (let i = 0; i < plugins.length; i++) {
|
||||
let oldState = -1;
|
||||
|
@ -43,7 +43,7 @@ const nsIBLS = Ci.nsIBlocklistService;
|
||||
// Finds the test nsIPluginTag
|
||||
function get_test_plugintag() {
|
||||
var host = Cc["@mozilla.org/plugin/host;1"].getService(Ci.nsIPluginHost);
|
||||
var tags = host.getPluginTags({});
|
||||
var tags = host.getPluginTags();
|
||||
for (var i = 0; i < tags.length; i++) {
|
||||
if (tags[i].name == "Test Plug-in")
|
||||
return tags[i];
|
||||
|
@ -566,7 +566,7 @@ var gPluginsPage = {
|
||||
|
||||
var phs = CoC["@mozilla.org/plugin/host;1"].
|
||||
getService(CoI.nsIPluginHost);
|
||||
var plugins = phs.getPluginTags({});
|
||||
var plugins = phs.getPluginTags();
|
||||
var blocklist = CoC["@mozilla.org/extensions/blocklist;1"].
|
||||
getService(CoI.nsIBlocklistService);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user