Details
-
Bug
-
Resolution: Fixed
-
P2
-
9
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8093406 | 8u60 | Anton Tarasov | P2 | Resolved | Fixed |
Description
The native Clipboard and Pasteboard classes were refactored in WebKit. A part of the functionality migrated from the former to the latter, in the context of a long-term task of Clipboard class removal.
Prior to the latest WebKit update there was a macros defined in WebCore/dom/Clipboard.h:
// This DOM object now works by calling through to classes in the platform layer.
// Specifically, the class currently named Pasteboard. The legacy style instead
// uses this as an abstract base class.
#define WTF_USE_LEGACY_STYLE_ABSTRACT_CLIPBOARD_CLASS (PLATFORM(IOS) || PLATFORM(QT) || PLATFORM(JAVA))
But it was removed later (http://trac.webkit.org/changeset/154230).
Currently, we have Pasteboard implemented in PasteboardJava.cpp. However, a number of methods is marked as NOT IMPLEMENTED. This leads to a crash that can be reproduced as follows:
- Open, for instance, yahoo.com in a Browser. Type any text in the search field, select it and try to drag out. A crash fill follow. Same way, try to select any text on the page and drag & drop it into the search field. Same crash.
Interestingly that the crash is not reproduced on OSX, but on Windows and Linux. A stack dump is attached.
Prior to the latest WebKit update there was a macros defined in WebCore/dom/Clipboard.h:
// This DOM object now works by calling through to classes in the platform layer.
// Specifically, the class currently named Pasteboard. The legacy style instead
// uses this as an abstract base class.
#define WTF_USE_LEGACY_STYLE_ABSTRACT_CLIPBOARD_CLASS (PLATFORM(IOS) || PLATFORM(QT) || PLATFORM(JAVA))
But it was removed later (http://trac.webkit.org/changeset/154230).
Currently, we have Pasteboard implemented in PasteboardJava.cpp. However, a number of methods is marked as NOT IMPLEMENTED. This leads to a crash that can be reproduced as follows:
- Open, for instance, yahoo.com in a Browser. Type any text in the search field, select it and try to drag out. A crash fill follow. Same way, try to select any text on the page and drag & drop it into the search field. Same crash.
Interestingly that the crash is not reproduced on OSX, but on Windows and Linux. A stack dump is attached.
Attachments
Issue Links
- backported by
-
JDK-8093406 [WebView] implement missing functionality in PasteboardJava.cpp
-
- Resolved
-
- blocks
-
JDK-8087386 [WebView] Pasteboard misbehaves in some scenarious
-
- Closed
-
- duplicates
-
JDK-8095518 MAC / HTMLEditor / pasting a text from terminal leads to a crash of the JVM
-
- Closed
-
-
JDK-8096175 [webkit] JVM crash in jfxwebkit.dll in JDK 9
-
- Closed
-
-
JDK-8097203 [Linux] Crash when attempting to drag a hyperlink in WebView
-
- Closed
-