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

[JFXPanel] Access denied when scrolling in WebView in Sandboxed Applet

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Environment:

      Java-Plug-in 11.20.2.26
      JRE-Version verwenden 1.8.0_20-b26 Java HotSpot(TM) Client VM
      Google Chrome: Version 37.0.2062.124 m

      Description

      I am using a WebView in a JFXPanel in a Sandboxed JApplet.
      Whenever i scroll inside the WebView these two exceptions are thrown.
      The exception is caught in the JavaFX source and logged, thus the subsequent code still works.

      Also, when trying to scroll by dragging the scrollbar thumb, many more of these exceptions are thrown and the view is not updated at all.

      java.security.AccessControlException: access denied ("java.lang.reflect.ReflectPermission" "suppressAccessChecks")
      at java.security.AccessControlContext.checkPermission(Unknown Source)
      at java.security.AccessController.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkPermission(Unknown Source)
      at sun.plugin2.applet.AWTAppletSecurityManager.checkPermission(Unknown Source)
      at java.lang.reflect.AccessibleObject.setAccessible(Unknown Source)
      at com.sun.javafx.webkit.theme.ScrollBarThemeImpl.getFieldValue(Unknown Source)
      at com.sun.javafx.webkit.theme.ScrollBarThemeImpl.getThumb(Unknown Source)
      at com.sun.javafx.webkit.theme.ScrollBarThemeImpl.thumbPosition(Unknown Source)
      at com.sun.javafx.webkit.theme.ScrollBarThemeImpl.getThumbPosition(Unknown Source)
      at com.sun.webkit.WebPage.twkProcessMouseWheelEvent(Native Method)
      at com.sun.webkit.WebPage.dispatchMouseWheelEvent(Unknown Source)
      at javafx.scene.web.WebView.processScrollEvent(Unknown Source)
      at javafx.scene.web.WebView.lambda$registerEventHandlers$33(Unknown Source)
      at javafx.scene.web.WebView$$Lambda$94/15498521.handle(Unknown Source)
      at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
      at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
      at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
      at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
      at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
      at javafx.event.Event.fireEvent(Unknown Source)
      at javafx.scene.Scene.processGestureEvent(Unknown Source)
      at javafx.scene.Scene.access$300(Unknown Source)
      at javafx.scene.Scene$ScenePeerListener.scrollEvent(Unknown Source)
      at com.sun.javafx.tk.quantum.EmbeddedScene.lambda$null$281(Unknown Source)
      at com.sun.javafx.tk.quantum.EmbeddedScene$$Lambda$181/8594143.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.tk.quantum.EmbeddedScene.lambda$mouseEvent$282(Unknown Source)
      at com.sun.javafx.tk.quantum.EmbeddedScene$$Lambda$180/17817549.run(Unknown Source)
      at com.sun.javafx.application.PlatformImpl.lambda$null$164(Unknown Source)
      at com.sun.javafx.application.PlatformImpl$$Lambda$63/6407488.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.application.PlatformImpl.lambda$runLater$165(Unknown Source)
      at com.sun.javafx.application.PlatformImpl$$Lambda$61/26289612.run(Unknown Source)
      at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.lambda$null$141(Unknown Source)
      at com.sun.glass.ui.win.WinApplication$$Lambda$54/11261627.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

      java.lang.NullPointerException
      at com.sun.javafx.webkit.theme.ScrollBarThemeImpl.thumbPosition(Unknown Source)
      at com.sun.javafx.webkit.theme.ScrollBarThemeImpl.getThumbPosition(Unknown Source)
      at com.sun.webkit.WebPage.twkProcessMouseWheelEvent(Native Method)
      at com.sun.webkit.WebPage.dispatchMouseWheelEvent(Unknown Source)
      at javafx.scene.web.WebView.processScrollEvent(Unknown Source)
      at javafx.scene.web.WebView.lambda$registerEventHandlers$33(Unknown Source)
      at javafx.scene.web.WebView$$Lambda$94/15498521.handle(Unknown Source)
      at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
      at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
      at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
      at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
      at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
      at javafx.event.Event.fireEvent(Unknown Source)
      at javafx.scene.Scene.processGestureEvent(Unknown Source)
      at javafx.scene.Scene.access$300(Unknown Source)
      at javafx.scene.Scene$ScenePeerListener.scrollEvent(Unknown Source)
      at com.sun.javafx.tk.quantum.EmbeddedScene.lambda$null$281(Unknown Source)
      at com.sun.javafx.tk.quantum.EmbeddedScene$$Lambda$181/8594143.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.tk.quantum.EmbeddedScene.lambda$mouseEvent$282(Unknown Source)
      at com.sun.javafx.tk.quantum.EmbeddedScene$$Lambda$180/17817549.run(Unknown Source)
      at com.sun.javafx.application.PlatformImpl.lambda$null$164(Unknown Source)
      at com.sun.javafx.application.PlatformImpl$$Lambda$63/6407488.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.application.PlatformImpl.lambda$runLater$165(Unknown Source)
      at com.sun.javafx.application.PlatformImpl$$Lambda$61/26289612.run(Unknown Source)
      at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.lambda$null$141(Unknown Source)
      at com.sun.glass.ui.win.WinApplication$$Lambda$54/11261627.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

        Attachments

          Activity

            People

            Assignee:
            ant Anton Tarasov
            Reporter:
            fleitenbejfx Frederic Leitenberger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: