[jbosstools-issues] [JBoss JIRA] (JBIDE-15640) BrowserSim: use JavaFX WebView as a browser engine

Ilya Buziuk (JIRA) issues at jboss.org
Fri Feb 14 08:25:28 EST 2014


    [ https://issues.jboss.org/browse/JBIDE-15640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12944662#comment-12944662 ] 

Ilya Buziuk commented on JBIDE-15640:
-------------------------------------

steps to verify:
       -  Run Browsersim
       -  Choose  *Menu > Preferences > Browser Engine* !javafx-engine.png|thumbnail!
       -  Press *Ok*  button to safe changes
       -  BrowserSim / CordovaSim will be restarted with a new web engine

Notes:
     - By default BrowserSim/ CordovaSim use *SWT.WEBKIT*
     - JavaFx is currently not supported on Linux
     - On Windows restart with a new engine will happened in a new process, while on mac os in the same. 
                
> BrowserSim: use JavaFX WebView as a browser engine
> --------------------------------------------------
>
>                 Key: JBIDE-15640
>                 URL: https://issues.jboss.org/browse/JBIDE-15640
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: browsersim
>            Reporter: Yahor Radtsevich
>            Assignee: Ilya Buziuk
>              Labels: new_and_noteworthy
>             Fix For: 4.2.0.Alpha2
>
>         Attachments: javafx-engine.png
>
>
> JavaFX [WebView|http://docs.oracle.com/javafx/2/api/javafx/scene/web/WebView.html‎] supports Debugger API and could be embedded into BrowserSim as an alternative to the SWT Browser.
> *Pros:*
> # WebView supports Debugger API - we can enable full featured [DevTools|https://developers.google.com/chrome-developer-tools/] and/or integrate it with [EclipseDebugger|https://code.google.com/p/chromedevtools/wiki/EclipseDebugger]
> # It is available on all OSes where Oracle JVM 7 is installed - no requirement to install Safari and 32-bit JVM on Windows
> # Can be used together with the SWT Browser (i.e. if there is no JavaFX present, we can fallback to the SWT Browser in runtime)
> *Cons:*
> # Not a part of OpenJDK, Oracle JVM 7 only (not sure if JavaFX could be installed standalone)
> # window.localStorage is not supported (may be a problem for CordovaSim)
> # Character encoding problems on some installations
> # Debugger API bindings to Java are not final now - we can face Java run-time errors with later versions of Oracle JVMs
> *On the high level our plan is to:*
> # Implement possibility of switching BrowserSim's web engine SWT.WEBKIT / JavaFx WebView. This possibility will be enabled only for windows and mac os users. Due to native errors coupled with gtk3 usage (related jira https://javafx-jira.kenai.com/browse/RT-35264 ) there will be only one web engine on Linux - SWT.WEBKIT.  - *Done*
>  - Disable switcher for Linux platform - *Done*
> # Solve perfomance issues. Debugger freezes rather often - *Done*	
> # Mock javaFX dependencies - *Done*
> # Fix LiveReload and Touch Events for JavaFx WebView - *Done*
> # Remove submodule - *Done*
> # Port for debugging should not be hardcoded - *Done*

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jbosstools-issues mailing list