[jbosstools-issues] [JBoss JIRA] (JBIDE-13552) BrowserSim: Ripple integration

Yahor Radtsevich (JIRA) jira-events at lists.jboss.org
Tue Feb 12 18:34:56 EST 2013


Yahor Radtsevich created JBIDE-13552:
----------------------------------------

             Summary: BrowserSim: Ripple integration
                 Key: JBIDE-13552
                 URL: https://issues.jboss.org/browse/JBIDE-13552
             Project: Tools (JBoss Tools)
          Issue Type: Feature Request
          Components: Visual Page Editor core
            Reporter: Yahor Radtsevich
            Assignee: Yahor Radtsevich
             Fix For: 4.1.0.Beta1


Ripple is an emulator, which provides mobile environment (such as Cordova API) to HTML applications.
Ripple extension for Chrome is written in HTML/JavaScript with usage of Chrome extensions API and some Chrome-only API. When run as an extension, Ripple looks like a mobile iframe in the center of a browser window, and several controls around this iframe, including Geolocation, Orientation and Messaging. These controls allow to change "answers" for queries to emulated API.

*On the high level our plan is to:*
1. get rid of dependencies to Chrome extensions API and Chrome-only API
2. replace the mobile iframe with BrowserSim popup window
3. integrate our Ripple-BrowserSim simulator in Eclipse

*More details follow:*
*1. get rid of dependencies to Chrome extensions API and Chrome-only API*
This includes:
- allowing cross-origin XHR from BrowserSim. _We solve this by implementation of a Jetty-based proxy_
- WebSQL API  used in Ripple is deprecated and it is not available in BrowserSim on Windows. _We solve it by storing data in the localStorage instead of WebSQL DB._

*2. replace the mobile iframe with BrowserSim popup window*
- there is bug in SWT which leads to multiple popups being opened instead of one. _We already found a workaround for it_
- iframe should be removed from the control page. Now we just hide it. But it should be completely removed with all JS dependencies to it.
- need a way to change BrowserSim skin while running as popup. The problem is that when the skin is changing, we loose connection with parent window. Should we send a signal to the parent window to recreate?

*3. integrate our Ripple-BrowserSim simulator in Eclipse*
- provide an easy way to run our simulator from Eclipse, probably add something like "Open in CordovaSim" toolbar item/context menu
- create build scripts, which probably includes building Ripple from its github repository and packaging it into a bundle

--
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