Bug 274553 - Blocking iframes either via an extension or userchrome.css breaks find toolbar search. patch from Michael Clackler <mikeclackler@hotmail.com>, r=mconnor
git-svn-id: svn://10.0.0.236/trunk@171053 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user