Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1E8AD171D6 for ; Thu, 20 Nov 2014 20:57:54 +0000 (UTC) Received: (qmail 54202 invoked by uid 500); 20 Nov 2014 20:57:53 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 54163 invoked by uid 500); 20 Nov 2014 20:57:53 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 54151 invoked by uid 99); 20 Nov 2014 20:57:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Nov 2014 20:57:53 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sosah.victor@gmail.com designates 209.85.216.174 as permitted sender) Received: from [209.85.216.174] (HELO mail-qc0-f174.google.com) (209.85.216.174) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Nov 2014 20:57:49 +0000 Received: by mail-qc0-f174.google.com with SMTP id c9so2764110qcz.33 for ; Thu, 20 Nov 2014 12:57:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=TZt57QiDP6OOu0wZBtD4Hw/ouGgE+hAjkgxNassSo2I=; b=s+apLOECMUzgpWXLNCUdRs+PhV5mdIg0CT0qmgUOAZ8OSq+pOqGxf3wMhjZZo0VjtL MVeszg0ayVdk1kGYlR2Hsei9yK1125oRrGftyKV6cHxIPZ8QBh/I3GV2ZhP/1UAMgypX H0mZRhwYusDHU5aywY4QX6S6wZMj8LL8SKoWr5eaxjLZ8NIzGkOVoxsB2Td2mhDagv4J ImJhfszNdQdMWVAFaJNfGpTRkbsMEEEAarQ9Reo9UzYj/VDEHlCPTdpagp75tAc5QV75 1tfqM4Fw9t+hrDPPgrJUqFRDLvKwypQaXHdLKf8w1GYC+ILE+D+/vZplZ9YAjGvVOwgC c51Q== X-Received: by 10.140.82.144 with SMTP id h16mr658826qgd.40.1416517048607; Thu, 20 Nov 2014 12:57:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.93.197 with HTTP; Thu, 20 Nov 2014 12:57:08 -0800 (PST) In-Reply-To: References: From: Victor Sosa Date: Thu, 20 Nov 2014 14:57:08 -0600 Message-ID: Subject: Re: Running browser platform in Linux To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=001a11c1180880295605085093c3 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c1180880295605085093c3 Content-Type: text/plain; charset=UTF-8 Hello Michal. Have you had time to look at this PR? 2014-11-10 9:08 GMT-06:00 Michal Mocny : > On Thu, Nov 6, 2014 at 8:53 PM, Parashuram Narasimhan (MS OPEN TECH) < > panarasi@microsoft.com> wrote: > > > Sorry for not being clear. I was saying that we should not open the > > file:// URL in a specific browser. We should ideally spin up a webserver > > and open the default browser on the system > > > > Why a server ? Because > > - file:// and http:// have differences in quota and permissions for many > > APIs like IndexedDB or WebSQL > > > Usually use python -m SimpleHTTPServer for this when working locally. Node > alternative is https://github.com/nodeapps/http-server. This will also > make it easier to integrate livereload most likely. > > > > - Cordova apps on mobile can make cross-domain AJAX requests. You cannot > > do that in the browser due to same-origin restriction. However, CORS can > > help, but is restricted due to file:// > > - Cookies and protocol relative paths may get messed up. > > > > Why default browser? Default browser would just mean opening the HTML > file. > > - I may not have Chrome installed > > - Chrome may not be installed at that location > > - Issues like Linux that you described. > > - Integration of cordova-browsers in IDEs and Ripple-as-a-platform may be > > hard. > > > - Biggest reason: Safari will be a better testbed for iOS. IE for WP. FF > for FFOS. > > I know Steven had no specific reasons for making chrome-only, it was just > the first implementation. > > Looks like Victor filed https://issues.apache.org/jira/browse/CB-7978 and > has already submitted a PR for the linux fix (thanks Victor! I'll take a > look). > > I've file https://issues.apache.org/jira/browse/CB-7999 to investigate a > web-server version. > > > > > > > > -----Original Message----- > > From: Steven Gill [mailto:stevengill97@gmail.com] > > Sent: Thursday, November 6, 2014 1:55 PM > > To: dev@cordova.apache.org > > Subject: Re: Running browser platform in Linux > > > > Victor, feel free to send a PR so is uses config.xml content src instead > > of www/index.html. > > > > Also send the PR for your patches to run script. > > > > > > On Thu, Nov 6, 2014 at 1:17 PM, Victor Sosa > > wrote: > > > > > Not sure I'm following you, Parashuram, can you explain a little more, > > > please? > > > > > > One more I noticed is that in the run script of the browser platform, > > > it is directly pointing to "www/*index.html*", why is index.html > > > hardcoded there instead of reading config.xml? > > > > > > I patched my run script to use this google-chrome command and I'm > > > happy to share it. Also will try to patch the index.html reference in > > > the script to open the browser. > > > > > > 2014-11-06 14:50 GMT-06:00 Parashuram Narasimhan (MS OPEN TECH) < > > > panarasi@microsoft.com>: > > > > > > > I don't this we should launch Chrome this way. How about using > > > > something like browser-launcher, or even karma-chrome-launcher > > > > instead? Also, why > > > not > > > > just "open" the HTML page? > > > > > > > Chrome needs to be launched with flags for some of the plugins to work > > (camera I believe). That is why you can't just open it. > > > > > > > > > > > > -----Original Message----- > > > > From: Victor Sosa [mailto:sosah.victor@gmail.com] > > > > Sent: Thursday, November 6, 2014 12:45 PM > > > > To: dev@cordova.apache.org > > > > Subject: Running browser platform in Linux > > > > > > > > Hello all. > > > > > > > > I've been playing a little bit with the Browse platform and the > > > > first thing I notice is that when running the application using > > > > "cordova run browser" > > > > it handles the cases of when using Windows and Darwin (MacOS) but no > > > Linux > > > > (I'm on Ubuntu 14.04). Is there any particular reason of why it is > > > > not handled? > > > > > > > > > > > > > > > https://github.com/apache/cordova-browser/blob/master/bin/templates/pr > > > oject/cordova/run > > > > > > > > Moreover, I have Chrome installed in my machine, but it doesn't > > > > respond > > > to > > > > the typical "chrome" command because I get an error in the standard > > > > output[1], so I have to use "google-chrome" command to launch it. > > > > Does anyone something about this? I downloaded the DEB package > > > > directly from Google Chrome. > > > > > > > > Appreciate your help > > > > > > > > [1] > > > > * Error*chrome: error while loading shared libraries: libudev.so.0: > > > cannot > > > > open shared object file: No such file or directory > > > > > > > > > > > > -- > > > > Victor Adrian Sosa Herrera > > > > IBM Software Engineer > > > > Guadalajara, Jalisco > > > > > > > > > > > > > > > > -- > > > Victor Adrian Sosa Herrera > > > IBM Software Engineer > > > Guadalajara, Jalisco > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org > > For additional commands, e-mail: dev-help@cordova.apache.org > > > > > -- Victor Adrian Sosa Herrera IBM Software Engineer Guadalajara, Jalisco --001a11c1180880295605085093c3--