[jbosstools-issues] [JBoss JIRA] (JBIDE-17944) BrowserSim: Use http: protocol instead of file: for accessing local files
Ilya Buziuk (JIRA)
issues at jboss.org
Wed Jul 30 07:22:30 EDT 2014
[ https://issues.jboss.org/browse/JBIDE-17944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12989051#comment-12989051 ]
Ilya Buziuk commented on JBIDE-17944:
-------------------------------------
[~akazakov], [~maxandersen] Frankly, I do not like the idea of running local files via http for BrowserSim. IMHO our tools (BrowserSim / HTML Preview) should *not* work interchangeably (different tools for different purposes):
- BrowserSim is a browser and should work like a browser (local files should be accessed via file protol - just like other browser do it)
- If user needs to get web root relative path support for BrowserSim then the project should be deployed on server. After that url should be opened in BrowserSim
- HTML Preview is a WSIWYG editor (So it should cover all server specific stuff like webroot paths etc)
<BrowserSim: Use http: protocol instead of file: for accessing local files
AFAIK ^ this suggestion sounds like transforming BrowserSim to Preview, doesn't it?
In terms of CordovaSim. If webroot relative path are supported by Phonegap it should be implemented for CordovaSim.
> BrowserSim: Use http: protocol instead of file: for accessing local files
> -------------------------------------------------------------------------
>
> Key: JBIDE-17944
> URL: https://issues.jboss.org/browse/JBIDE-17944
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: browsersim
> Reporter: Alexey Kazakov
> Assignee: Konstantin Marmalyukov
>
> Currently, BrowserSim works through file: protocol but this protocol doesn't work well with paths relative to the webroot (which start with "/").
> So if a local file contains any links to local resources (css, js, ...) via relative paths then these resources are not available in BrowserSim.
> For example all official ionic example projects use such paths. It makes "open with BrowserSim" feature useless for those projects.
> It would be great if BrowserSim uses http: as our HTML5 preview does.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the jbosstools-issues
mailing list