mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
Remove an unnecessary focus event listener.
This commit is contained in:
parent
2bda8136e7
commit
d8fb9af1a0
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user