зеркало из https://github.com/mozilla/gecko-dev.git
Bug 274553 - Blocking iframes either via an extension or userchrome.css breaks find toolbar search. patch from Michael Clackler <mikeclackler@hotmail.com>, r=mconnor
This commit is contained in:
Родитель
53dcdf3878
Коммит
bbf4c27dd3
|
@ -243,9 +243,10 @@ function highlight(range, node)
|
|||
|
||||
function getSelectionControllerForFindToolbar(ds)
|
||||
{
|
||||
var display = ds.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsISelectionDisplay);
|
||||
if (!display)
|
||||
return null;
|
||||
try {
|
||||
var display = ds.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsISelectionDisplay);
|
||||
}
|
||||
catch (e) { return null; }
|
||||
return display.QueryInterface(Components.interfaces.nsISelectionController);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче