Bug 527417 - nsIPluginHost::getPluginTags aPluginCount out param should be optional. r=josh

This commit is contained in:
Dão Gottwald 2009-11-09 22:11:58 +01:00
parent 891b7bc8b8
commit bea18b662b
10 changed files with 10 additions and 10 deletions

View File

@ -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;
}

View File

@ -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++) {

View File

@ -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);

View File

@ -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];

View File

@ -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];

View File

@ -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++)

View File

@ -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));

View File

@ -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;

View File

@ -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];

View File

@ -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);