This PR adds a guard to WebKit/EditorJava.cpp, to prevent passing an empty 
selection to the pasteboard, that would cause an immediate JVM termination, 
when firing a copy key event over a focused WebView that has no selection (for 
instance, it has not been clicked/selected yet).

---------
- [X] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - Prevent passing an empty selection to the pasteboard

Changes: https://git.openjdk.org/jfx/pull/2292/files
  Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=2292&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8391779
  Stats: 5 lines in 1 file changed: 4 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jfx/pull/2292.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/2292/head:pull/2292

PR: https://git.openjdk.org/jfx/pull/2292

Reply via email to