Bug 209037: Bookmarklet "javascript:window.find()" is broken, patch by Martijn Wargers <martijn.martijn@gmail.com>, r=mconnor

This commit is contained in:
gavin%gavinsharp.com 2005-09-20 00:19:00 +00:00
Родитель e5b28f4e86
Коммит 65cc971b14
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -107,13 +107,13 @@ function onLoad()
// get the find instance
var arg0 = window.arguments[0];
if (arg0 instanceof window.opener.nsFindInstData) {
// If the dialog was opened from window.find(),
// arg0 will be an instance of nsIWebBrowserFind
if (arg0 instanceof Components.interfaces.nsIWebBrowserFind) {
gFindInst = arg0;
} else {
gFindInstData = arg0;
gFindInst = gFindInstData.webBrowserFind;
} else {
// If the dialog was opened from window.find(), findInst will be an
// nsISupports interface, so QueryInterface anyway to nsIWebBrowserFind.
gFindInst = arg0.QueryInterface(Components.interfaces.nsIWebBrowserFind);
}
fillDialog();