On Sun, 6 Sep 2026 18:06:17 GMT, Jose Pereda <[email protected]> wrote:
>> 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). > > Jose Pereda has updated the pull request incrementally with one additional > commit since the last revision: > > Add unit tests I've added 4 unit tests. Two of them pass before and after the patch (those with `window.getSelection().type != 'None'` after the Cmd/Ctrl+C event). The other two (those that should have a `window.getSelection().type == 'None'`after the Cmd/Ctrl+C event) pass after the patch. Before the patch, the first one that runs crashes the JVM on Windows or terminates it with a SIGTRAP signal on macOS/Linux, so the test process gets interrupted immediately (with a failure). ------------- PR Comment: https://git.openjdk.org/jfx/pull/2292#issuecomment-5561303827
