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

[WebView] UnsatisfiedLinkError calling getId on HTMLIFrameElement

    XMLWordPrintable

Details

    • web
    • b09
    • x86
    • linux_ubuntu

    Backports

      Description

        FULL PRODUCT VERSION :
        java version "1.8.0_60"
        Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
        Java HotSpot(TM) Server VM (build 25.60-b23, mixed mode)


        ADDITIONAL OS VERSION INFORMATION :
        Linux ubuntu 3.19.0-26-generic #28-Ubuntu SMP Tue Aug 11 14:16:45 UTC 2015 i686 i686 i686 GNU/Linux

        A DESCRIPTION OF THE PROBLEM :
        I'm trying to extract an iFrame's ID from a Document object from the WebEngine. Here are the steps:

        - Create a WebView and get the WebEngine.
        - Load a URL into the WebEngine by calling WebEngine.load(URL)
        - Get the Document object by calling WebEngine.getDocument()
        - Get all iframe elements from Document object by calling getElementsByTagName("iframe")

        - Loop through the returned NodeList and cast each item as HTMLIFrameElement
        - Call method getId() on the HTMLIFrameElement will throw UnsatisfiedLinkError

        REGRESSION. Last worked in version 8u51

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        It will return the ID of the iFrame set in the HTML
        ACTUAL -
        throws UnsatisfiedLinkError

        REPRODUCIBILITY :
        This bug can be reproduced always.

        CUSTOMER SUBMITTED WORKAROUND :
        Remove the codes that try to get the iFrame ID

        Attachments

          1. IFrame.java
            1 kB
            Alexander Zvegintsev
          2. JDK-8134470.patch
            4 kB
            Ilya Dergalin

          Issue Links

            Activity

              People

                idergali Ilya Dergalin (Inactive)
                webbuggrp Webbug Group
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: