Bug 522733 - Crash on close with webkitgtk 2.18 (Workaround)

(Backport to 4.7.2)

As of Webkitgtk 2.18, webkitgtk2 crashes if the first instance of
webview is not referenced when JVM shuts down.
There is a exit handler that tries to dereference the first instance
[which if not referenced] leads to a crash. This workaround would
benefit from deeper investigation (find root cause etc...).

With that said, this patch only adds a single reference to a single
instance of webview, which is cleaned up on JVM shutdown. I believe
this doesn't leave a memory leak behind.

This bug might potentially be caused by some race condition as well.
e.g webkitgtk still doing something while jvm is shutting down etc...

Tests:
- Browser JUnit tests on Webkit1 & Webkit2.

Change-Id: I414af620cb82a745f1c3bd3c4c67ce53ffe4c320
Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
1 file changed
tree: f19f9c38b0a3f9a7ac7b7ed3c58759262fe68982
  1. bundles/
  2. examples/
  3. features/
  4. local-build/
  5. tests/
  6. .gitignore
  7. pom.xml
  8. README.md
README.md

Contributing to SWT

Thanks for your interest in this project.

Developer resources:

See the following description for how to contribute a feature or a bug fix to SWT.

Information regarding source code management, builds, coding standards, and more and be found under the following link.

Contributor License Agreement:

Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).

Contact:

Contact the project developers via the project's “dev” list.

Search for bugs:

This project uses Bugzilla to track ongoing development and issues.

Create a new bug:

Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!