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

WebView claims it supports "Views" feature but throws UnsupportedOperationException on usage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7u6
    • javafx
    • None
    • win7, fx 2.2 b19

    • web

      run attached code snippet,

      in next code hasFeature returns true, but getFeature throws UnsupportedOperationException

                          Document document = webEngine.getDocument();
                          boolean hasFeature = document.getImplementation().hasFeature("Views", "2.0");
                          System.out.println("hasFeature=" + hasFeature);
                          Object obj = document.getImplementation().getFeature("Views", "2.0");



      java.lang.UnsupportedOperationException: Not supported yet.
      at com.sun.webpane.webkit.dom.DOMImplementationImpl.getFeature(DOMImplementationImpl.java:132)
      at web.WebViewViews$1.changed(WebViewViews.java:32)
      at web.WebViewViews$1.changed(WebViewViews.java:25)
      at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:196)
      at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:100)
      at javafx.beans.property.ReadOnlyDoubleWrapper$ReadOnlyPropertyImpl.fireValueChangedEvent(ReadOnlyDoubleWrapper.java:196)
      at javafx.beans.property.ReadOnlyDoubleWrapper.fireValueChangedEvent(ReadOnlyDoubleWrapper.java:162)
      at javafx.beans.property.DoublePropertyBase.markInvalid(DoublePropertyBase.java:130)
      at javafx.beans.property.DoublePropertyBase.set(DoublePropertyBase.java:163)
      at javafx.scene.web.WebEngine$LoadWorker.updateProgress(WebEngine.java:1015)
      at javafx.scene.web.WebEngine$LoadWorker.dispatchLoadEvent(WebEngine.java:1085)
      at javafx.scene.web.WebEngine$LoadWorker.access$600(WebEngine.java:968)
      at javafx.scene.web.WebEngine$PageLoadListener.dispatchLoadEvent(WebEngine.java:955)
      at com.sun.webpane.platform.WebPage.fireLoadEvent(WebPage.java:2372)
      at com.sun.webpane.platform.WebPage.fwkFireLoadEvent(WebPage.java:2220)
      at com.sun.webpane.webkit.network.URLLoader.twkDidFinishLoading(Native Method)
      at com.sun.webpane.webkit.network.URLLoader.access$1300(URLLoader.java:42)
      at com.sun.webpane.webkit.network.URLLoader$6.run(URLLoader.java:657)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
      at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:67)
      at java.lang.Thread.run(Thread.java:722)

            Unassigned Unassigned
            sgrinev Sergey Grinev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Imported: