While providing a fix and a test for #1919 , the test revealed that stacked calls (Java calls JS which calls Java which calls JS .... and so on) are apparently not possible on Linux so the test is currently deactivated for GTK.
This is the test:
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_browser_Browser.test_BrowserFunction_callback_stackedCalls()
It was added in #2019
Goal