From 41411a01eea0e90f503aacefda5c93b5f0f2f965 Mon Sep 17 00:00:00 2001 From: prrace Date: Mon, 25 Nov 2024 16:54:28 -0800 Subject: [PATCH] 8345001 --- .../classes/java/awt/doc-files/FocusSpec.html | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/src/java.desktop/share/classes/java/awt/doc-files/FocusSpec.html b/src/java.desktop/share/classes/java/awt/doc-files/FocusSpec.html index 94a4a7abdac6f..9694c123e50de 100644 --- a/src/java.desktop/share/classes/java/awt/doc-files/FocusSpec.html +++ b/src/java.desktop/share/classes/java/awt/doc-files/FocusSpec.html @@ -986,8 +986,6 @@

Focus and PropertyChangeListener

the KeyboardFocusManager's context, even though the focus owner, focused Window, active Window, and current focus cycle root comprise the global focus state shared by all contexts. -We believe this is less intrusive than requiring client code to pass -a security check before installing a PropertyChangeListener.

Component supports the following focus-related properties: @@ -1195,26 +1193,6 @@

Replacing DefaultKeyboardFocusManager

VetoableChangeListeners, and other concepts discussed in this document before resorting to a full replacement of the KeyboardFocusManager.

-First note that, because unhindered access to Components in other -contexts represents a security hole, the SecurityManager must grant a -new permission, "replaceKeyboardFocusManager", before client code is -permitted to replace the KeyboardFocusManager with an arbitrary -subclass instance. Because of the security check, replacing the -KeyboardFocusManager is not an option for applications that will be -deployed in environments with a SecurityManager, such as applets in a -browser. -

-Once installed, a KeyboardFocusManager instance has -access to the global focus state via a set of protected functions. -The KeyboardFocusManager can only call these functions -if it is installed in the calling thread's context. This ensures -that malicious code cannot circumvent the security check in -KeyboardFocusManager.setCurrentFocusManager. -A KeyboardFocusManager should always work with -the global focus state instead of the context focus state. -Failure to do this will lead to incorrect behavior of the -KeyboardFocusManager. -

The primary responsibility of a KeyboardFocusManager is the dispatch of the following events: