Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D42EA99BB for ; Tue, 8 May 2012 04:52:37 +0000 (UTC) Received: (qmail 80048 invoked by uid 500); 8 May 2012 04:52:36 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 80017 invoked by uid 500); 8 May 2012 04:52:36 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 80000 invoked by uid 99); 8 May 2012 04:52:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 04:52:36 +0000 X-ASF-Spam-Status: No, hits=3.5 required=5.0 tests=FREEMAIL_REPLY,FRT_ADOBE2,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bowserj@gmail.com designates 209.85.212.171 as permitted sender) Received: from [209.85.212.171] (HELO mail-wi0-f171.google.com) (209.85.212.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 04:52:29 +0000 Received: by wibhj13 with SMTP id hj13so201890wib.0 for ; Mon, 07 May 2012 21:52:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=SxowghOh9oiij3d0JQ8z6egL7phNznm8r/2MMpzmxYg=; b=I8pp37CpMcK3KRQUr1FsU3tqHfdm3+ckl9gpSbzMYmakqFr7JcNdqrlFchFxUeI3db ljnxzTQWtuTxAd+eUO5wZwe/wX8do/1fFHULlQRY/8kKxqO7nyzRl2tkNy8ufwPa7j+F ti2PzXoO7WGaiddV9m6RqBvluu9c46HF2RgmhsshZcbCWwMKiX+Uk/onye/DSUNRKIcv gv4gyR43/2wvVCazMLrkezGgGqUj/FRX5WddpdNMekBxAKWqjJUEAWW9F5xj5nzDAhGq eOakPOWWIMr6gBSF8h/9STcrk7RjL1xnq/eSl0SN6qMsAWAaK5Vv1f+koyUYUEawQtar fCQw== MIME-Version: 1.0 Received: by 10.216.203.80 with SMTP id e58mr1954494weo.41.1336452728114; Mon, 07 May 2012 21:52:08 -0700 (PDT) Received: by 10.223.81.76 with HTTP; Mon, 7 May 2012 21:52:08 -0700 (PDT) In-Reply-To: References: Date: Mon, 7 May 2012 21:52:08 -0700 Message-ID: Subject: Re: Default Enable Plugins From: Joe Bowser To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=0016e6d7848a1e4e4e04bf7f26d7 --0016e6d7848a1e4e4e04bf7f26d7 Content-Type: text/plain; charset=ISO-8859-1 After reading Simon's response, and thinking about this a bit more, I'm going to have to agree with him. I think that it would be trivial for this to be added to PhoneGap Build without us adding this method to Cordova. There's also the fact that this method is deprecated in Android in favour of WebSettings.setPluginState. The fact is that I have no idea what plugins the phone has, how they access memory and whether that adds additional risks to a PhoneGap or Cordova application. The Flash Player, for example, could store all the data centrally on the phone, and that data might be able to be accessed in the browser by another app that has nothing to do with the original app (I hope that this wouldn't happen, but I haven't met anyone from the Flash team yet who knows about this). Given the fact that plugins are shared across every WebView on the device, there's no way that I'd be for enabling this by default, since one of our users could upgrade Cordova and end up with a nasty surprise because a phone manufacturer added a special plugin that was insecure as a "feature". If you don't believe me, you should spend more time reading logcat on your phone. You'll be surprised the messed up crap that is logged there. Joe On Mon, May 7, 2012 at 7:56 PM, Simon MacDonald wrote: > Jumping in here at the end to offer my two cents. Personally I don't think > the plugins should be enabled by default in our web view. Android devs can > easily add a line in their onCreate method to enable plugins. The only > folks this is a problem for are users of the PhoneGap Build service. To me > that is outside the scope of the Apache Cordova project. So if is going to > be handled anywhere it should be in the config.xml of the build service. > > Simon > > On Monday, May 7, 2012, Joe Bowser wrote: > > > I think that platform-specific things should use the preferences tag, and > > that they should be ignored if they're not supported. That should make > > things easy. > > > > On Mon, May 7, 2012 at 2:17 PM, Patrick Mueller > > > wrote: > > > > > On Mon, May 7, 2012 at 4:53 PM, Filip Maj > > > wrote: > > > > > > > Agree with your points on it being easier in XML format, however this > > is > > > a > > > > purely Android-specific thing, no? Enabling "browser plugins"? > > > > > > > > I really don't care, it just seems to me to make it Java-y since it > is > > > > pure Android. > > > > > > > > > I think you can make the case that we already have, or will have, other > > > platform-specific things that might make sense to live in a config.xml > > type > > > of container. Do we have some kind of a story for that? > > > > > > -- > > > Patrick Mueller > > > http://muellerware.org > > > > > > > > -- > Simon Mac Donald > http://hi.im/simonmacdonald > --0016e6d7848a1e4e4e04bf7f26d7--