зеркало из https://github.com/mozilla/pjs.git
Bug 351857: implement stub of window.external.IsSearchProviderInstalled. r=mconnor, sr=bzbarsky
This commit is contained in:
Родитель
8a482ad204
Коммит
314bee11c6
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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++
|
||||
|
|
Загрузка…
Ссылка в новой задаче