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

[WebView] UnsatisfiedLinkError calling getId on HTMLIFrameElement

    Details

    • Subcomponent:
      web
    • Introduced In Build:
      b09
    • Introduced In Version:
    • CPU:
      x86
    • OS:
      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

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

          Issue Links

            Activity

            Hide
            kcr Kevin Rushforth added a comment -
            I can test the patch on OS X and Linux and add my comment.

            Alexander Z will need to push this after he reviews it.
            Show
            kcr Kevin Rushforth added a comment - I can test the patch on OS X and Linux and add my comment. Alexander Z will need to push this after he reviews it.
            Hide
            kcr Kevin Rushforth added a comment -
            +1

            Tested on Mac and Linux. Both the original IFrame.java test program and the newly added unit test fail without the fix and pass with the fix.
            Show
            kcr Kevin Rushforth added a comment - +1 Tested on Mac and Linux. Both the original IFrame.java test program and the newly added unit test fail without the fix and pass with the fix.
            Hide
            idergali Ilya Dergalin added a comment -
            @Alexander: Can you please review and push it if it is ok?
            Show
            idergali Ilya Dergalin added a comment - @Alexander: Can you please review and push it if it is ok?
            Hide
            azvegint Alexander Zvegintsev added a comment -
            +1
            Show
            azvegint Alexander Zvegintsev added a comment - +1
            Show
            azvegint Alexander Zvegintsev added a comment - http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/33a2acb4ba86

              People

              • Assignee:
                idergali Ilya Dergalin
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: