Bug 351857: implement stub of window.external.IsSearchProviderInstalled. r=mconnor, sr=bzbarsky

git-svn-id: svn://10.0.0.236/trunk@209756 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pamg.bugs%gmail.com 2006-09-11 19:44:02 +00:00
parent 82804e51bc
commit c953ec4ac8
2 changed files with 16 additions and 1 deletions

View File

@ -218,6 +218,20 @@ function (aDescriptionURL)
this.searchService.addEngine(aDescriptionURL, typeXML, iconURL, true);
}
// This function exists to implement window.external.IsSearchProviderInstalled(),
// for compatibility with other browsers. It will return an integer value
// indicating whether the given engine is installed for the current user.
// However, it is currently stubbed out due to security/privacy concerns
// stemming from difficulties in determining what domain issued the request.
// See bug 340604 and
// http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/issearchproviderinstalled.asp .
// XXX Implement this!
nsSidebar.prototype.IsSearchProviderInstalled =
function (aSearchURL)
{
return 0;
}
nsSidebar.prototype.addMicrosummaryGenerator =
function (generatorURL)
{

View File

@ -56,10 +56,11 @@ interface nsISidebar : nsISupports
void addMicrosummaryGenerator(in string generatorURL);
};
[scriptable, uuid(edd70275-c131-4558-8f6c-9c4716b554a6)]
[scriptable, uuid(4350fb73-9305-41df-a669-11d26222d420)]
interface nsISidebarExternal : nsISupports
{
void AddSearchProvider(in string aDescriptionURL);
unsigned long IsSearchProviderInstalled(in string aSearchURL);
};
%{ C++