Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8090993

Consider changing native clients to refer to native WebPage instead of Java WebPage

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7u6
    • javafx
    • None
    • web

      Currently, all the native clients such as ChromeClientJava, ContextMenuClientJava, EditorClientJava, DragClientJava, and FrameLoaderClientJava have a JNI reference to their com.sun.webpane.platform.WebPage "parent". This spreads JNI references across the entire code base. Instead, the clients could be modified to refer to the native WebPage, which would have a single JNI reference to com.sun.webpane.platform.WebPage.

      This scheme could be further improved by implementing all JNI method calls to com.sun.webpane.platform.WebPage as methods on the native WebPage object. That would hide all JNI stuff behind the native WebPage interface and free the clients from having to deal with JNI.

            Unassigned Unassigned
            vbaranov Vasiliy Baranov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported: