Skip to content

Console not working #1

@stathissideris

Description

@stathissideris

While running the WebViewDebugSample, I tried evaluating console.log("dwqdqdQ") in Chrome developer tools, and I got this exception in the Java console:

Exception in thread "JavaFX Application Thread" netscape.javascript.JSException: ReferenceError: Can't find variable: __api	at com.sun.webkit.dom.JSObject.fwkMakeException(JSObject.java:128)	at com.sun.webkit.WebPage.twkExecuteScript(Native Method)	at com.sun.webkit.WebPage.executeScript(WebPage.java:1427)	at javafx.scene.web.WebEngine.executeScript(WebEngine.java:948)	at com.vladsch.javafx.webview.debugger.DevToolsDebuggerJsBridge$JfxDebuggerAccessImpl.eval(DevToolsDebuggerJsBridge.java:330)	at com.vladsch.javafx.webview.debugger.DevToolsDebugProxy.sendMessage(DevToolsDebugProxy.java:1075)	at com.vladsch.javafx.webview.debugger.DevToolsDebuggerServer$1.run(DevToolsDebuggerServer.java:264)	at com.sun.javafx.application.PlatformImpl.lambda$null$170(PlatformImpl.java:295)	at com.sun.javafx.application.PlatformImpl$$Lambda$49/1545911266.run(Unknown Source)	at java.security.AccessController.doPrivileged(Native Method)	at com.sun.javafx.application.PlatformImpl.lambda$runLater$171(PlatformImpl.java:294)	at com.sun.javafx.application.PlatformImpl$$Lambda$48/1567581361.run(Unknown Source)	at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) 

Also, the click events logging shows up in the WebViewDebugSample window, but not in Chrome developer tools. Changing the document from the Elements tab in Chrome developer tools works as expected (all changes are reflected back to the WebViewDebugSample window).

Same behaviour was seen in my application.

My setup:

On OSX 10.13.2 (17C205)

Google Chrome is up to date
Version 66.0.3359.117 (Official Build) (64-bit)

java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions