{"action":"closed","issue":{"url":"https://api.github.com/repos/hablutzel1/cryptoapplet/issues/1","labels_url":"https://api.github.com/repos/hablutzel1/cryptoapplet/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/hablutzel1/cryptoapplet/issues/1/comments","events_url":"https://api.github.com/repos/hablutzel1/cryptoapplet/issues/1/events","html_url":"https://github.com/hablutzel1/cryptoapplet/issues/1","id":79986436,"number":1,"title":"With IcedTea-Web plugin, the call to \"onWindowShow\" JS method blocks any subsequent Java to JS","user":{"login":"hablutzel1","id":230942,"avatar_url":"https://avatars.githubusercontent.com/u/230942?v=3","gravatar_id":"","url":"https://api.github.com/users/hablutzel1","html_url":"https://github.com/hablutzel1","followers_url":"https://api.github.com/users/hablutzel1/followers","following_url":"https://api.github.com/users/hablutzel1/following{/other_user}","gists_url":"https://api.github.com/users/hablutzel1/gists{/gist_id}","starred_url":"https://api.github.com/users/hablutzel1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hablutzel1/subscriptions","organizations_url":"https://api.github.com/users/hablutzel1/orgs","repos_url":"https://api.github.com/users/hablutzel1/repos","events_url":"https://api.github.com/users/hablutzel1/events{/privacy}","received_events_url":"https://api.github.com/users/hablutzel1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"hablutzel1","id":230942,"avatar_url":"https://avatars.githubusercontent.com/u/230942?v=3","gravatar_id":"","url":"https://api.github.com/users/hablutzel1","html_url":"https://github.com/hablutzel1","followers_url":"https://api.github.com/users/hablutzel1/followers","following_url":"https://api.github.com/users/hablutzel1/following{/other_user}","gists_url":"https://api.github.com/users/hablutzel1/gists{/gist_id}","starred_url":"https://api.github.com/users/hablutzel1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hablutzel1/subscriptions","organizations_url":"https://api.github.com/users/hablutzel1/orgs","repos_url":"https://api.github.com/users/hablutzel1/repos","events_url":"https://api.github.com/users/hablutzel1/events{/privacy}","received_events_url":"https://api.github.com/users/hablutzel1/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-05-23T23:38:52Z","updated_at":"2015-06-02T17:38:13Z","closed_at":"2015-06-02T17:38:13Z","body":"Given the following flow to load CryptoApplet: \r\n\r\n1. JavaScript code prints the required `<applet>` HTML tag to initialize the applet.\r\n2. When the applet is created its method `es.uji.security.ui.applet.SignatureApplet#init` is called.\r\n3. The previous Java method calls JavaScript method `onInitOk`.\r\n4. JavaScript method `onInitOk` configures the applet and calls `es.uji.security.ui.applet.SignatureApplet#signDataUrlToUrl` Java method right away.\r\n5. An empty `onWindowShow` JavaScript method is called from Java code.\r\n6. User selects a certificate and signs the document from the UI.\r\n7. The applet uploads the signed document to the server. \r\n8. The applet calls `onSignOk` JavaScript method.\r\n\r\nWith IcedTea-Web, step number 5 never steps over `netscape.javascript.JSObject#call(\"onWindowShow\"...)` to the next Java sentence, and this seems to be producing that any subsequent Java to JS calls (e.g. `onSignOk` on step 8) never completes.\r\n\r\nIt seems to be a deadlock in the IcedTea-Web plugin being produced by the `Java -> JS -> Java -> JS` call chain (step 3 to 5 from the previous flow).\r\n\r\nThe environment:\r\n\r\n* Linux Mint 17.1\r\n* Mozila Firefox for Linux Mint 38.0\r\n* icedtea-web 1.5 (1.5-1ubuntu1)\r\n* OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.04.2\r\n\r\n\r\n\r\n"}}