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

[WebView] Java Logger settings corrupt webview

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7u55, 8u5
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Labels:
      None
    • Subcomponent:
      web

      Description

      When setting the java log level to FINE or higher, the webview display is corrupted.
      The testcase has been described in the JBS: https://bugs.openjdk.java.net/browse/JI-9006337

      The problem could also be reproducible when running WebLauncher with the
      -Djava.util.logging.config.file="logging.properties"
      and the logging.properties file in the working directory:

      handlers = java.util.logging.ConsoleHandler
      .level=ALL
      java.util.logging.ConsoleHandler.level = ALL

      The problematic code was found in the rt\modules\web\src\main\java\com\sun\javafx\webkit\prism\WCGraphicsPrismContext.java:280 (WCGraphicsPrismContext.setClip())
      where the clipping bounds are attempted to be drawn (my guess) if the log level is set to FINE or higher.
      Commenting this code resolves the problem.

        Attachments

          Activity

            People

            Assignee:
            anashaty Anton Nashatyrev (Inactive)
            Reporter:
            anashaty Anton Nashatyrev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: