Remove an unnecessary focus event listener.

This commit is contained in:
blakeross%telocity.com 2002-08-08 01:45:31 +00:00
Родитель 2bda8136e7
Коммит d8fb9af1a0
1 изменённых файлов: 1 добавлений и 16 удалений

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

@ -67,10 +67,6 @@ var appCore = null;
//cached elements
var gBrowser = null;
// focused frame URL
var gFocusedURL = null;
var gFocusedDocument = null;
// Global variable that holds the nsContextMenu instance.
var gContextMenu = null;
@ -116,16 +112,6 @@ function getContentAreaFrameCount()
saveFrameItem.removeAttribute("hidden");
}
// When a content area frame is focused, update the focused frame URL
function contentAreaFrameFocus()
{
var focusedWindow = document.commandDispatcher.focusedWindow;
if (isDocumentFrame(focusedWindow)) {
gFocusedURL = focusedWindow.location.href;
gFocusedDocument = focusedWindow.document;
}
}
//////////////////////////////// BOOKMARKS ////////////////////////////////////
function UpdateBookmarksLastVisitedDate(event)
@ -282,7 +268,6 @@ function Startup()
// so we'll be notified when onloads complete.
var contentArea = document.getElementById("browser");
contentArea.addEventListener("load", loadEventHandlers, true);
contentArea.addEventListener("focus", contentAreaFrameFocus, true);
var turboMode = false;
// set default character set if provided
@ -1463,7 +1448,7 @@ function SetPageProxyState(aState, aURI)
function PageProxyDragGesture(aEvent)
{
if (!gURLBar)
return;
return false;
if (gProxyButton.getAttribute("pageproxystate") == "valid") {
nsDragAndDrop.startDrag(aEvent, proxyIconDNDObserver);
return true;