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 275A1184C7 for ; Thu, 12 Nov 2015 00:18:33 +0000 (UTC) Received: (qmail 91679 invoked by uid 500); 12 Nov 2015 00:18:32 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 91639 invoked by uid 500); 12 Nov 2015 00:18:32 -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 91623 invoked by uid 99); 12 Nov 2015 00:18:32 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2015 00:18:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 11A0318022F for ; Thu, 12 Nov 2015 00:18:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.7 X-Spam-Level: X-Spam-Status: No, score=0.7 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id nTBVKuKhPMuU for ; Thu, 12 Nov 2015 00:18:18 +0000 (UTC) Received: from mail-qg0-f44.google.com (mail-qg0-f44.google.com [209.85.192.44]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 567E22F0C6 for ; Thu, 12 Nov 2015 00:18:18 +0000 (UTC) Received: by qgec40 with SMTP id c40so36533149qge.2 for ; Wed, 11 Nov 2015 16:18:17 -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=v75/nqR2vWr83MH3npoo9x3UDQBxT79z3PDMzWtHA3Y=; b=amAIAgCc/2fe0dch4zGJ6sz7PlE+PE8h9jLLHyZG+G6CdEmsRJqRNN9WRTYCOjFMGa PGY3LYwkFMhrqJnHbYygsJVOAUO+Ss9WWAUfa1mcd2xu6dMjpPPzFbvPATPTJIYT2+Ol /8rAqk6Ca5iwEM7eHU0ajWgppQpgCoCUF1UCXjYari0oc3xLW+q/z7d+zRysSRlTQoF9 egIbTEXl7YCRZtUwKR1CYg7O7iLel1lWJFFIGofxfmZwI2QrmFhJTHbSoR0yDwvjLr3q ywx1Sjhxe459M1B9MBLX2um/vqkElThUd6DbNt97UVDoJ+B87tGH78soHIN8lQbUOrsx tKvQ== X-Received: by 10.140.227.16 with SMTP id x16mr14346259qhb.46.1447287497335; Wed, 11 Nov 2015 16:18:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.55.101.80 with HTTP; Wed, 11 Nov 2015 16:17:37 -0800 (PST) In-Reply-To: References: <564A2965-A18C-4B5D-8296-AFBEE6C0EB6B@devgeeks.org> <35F889EE-028E-4A5D-9308-6201CC1621AB@gmail.com> From: Shazron Date: Wed, 11 Nov 2015 16:17:37 -0800 Message-ID: Subject: Re: [DISCUSS] Proposal to Remove the Cordova iOS Native Whitelist To: "dev@cordova.apache.org" Content-Type: text/plain; charset=UTF-8 https://issues.apache.org/jira/browse/CB-9972 3 pull requests sent for review: 1. https://github.com/apache/cordova-ios/pull/181 2. https://github.com/apache/cordova-plugin-whitelist/pull/16 3. https://github.com/apache/cordova-mobile-spec/pull/133 On Wed, Nov 11, 2015 at 12:44 AM, julio cesar sanchez wrote: > Ahh, missed that, thanks Shazron! > > 2015-11-11 1:39 GMT+01:00 Shazron : > >> This is handled by this: >> >> https://github.com/apache/cordova-ios/tree/master/CordovaLib/Classes/Private/Plugins/CDVSystemSchemes >> >> Doc: >> >> https://github.com/apache/cordova-docs/commit/80906ac23c77f4ce7a5d330b28fba803736c7253 >> >> On Tue, Nov 10, 2015 at 7:41 AM, julio cesar sanchez >> wrote: >> > What about url schemes? I suppose they won't work unless we allow them >> > using the CSP, but, do we have code to handle them? >> > >> > I've been looking on the source code and >> *CDVUIWebViewNavigationDelegate.m, >> > *on *shouldStartLoadWithRequest* ask *CDVViewController.m* for* >> > shouldOpenExternalURL *that queries all the plugins for >> > *shouldOpenExternalURL* method and uses *[[UIApplication >> sharedApplication] >> > openURL:url];* to open the app. >> > >> > >> > Anyway, the old legacy whitelist return *YES* only for *tel *scheme*, >> *and >> > the new whitelist doesn't include that method, so I don't think removing >> > the plugin will break anything, but is it already broken? >> > >> > or we should use the inAppBrowser plugins with _system to open other apps >> > instead of the whitelist? >> > >> > >> > >> > >> > 2015-11-10 3:18 GMT+01:00 Shazron : >> > >> >> Filed https://issues.apache.org/jira/browse/CB-9972 >> >> >> >> On Mon, Nov 9, 2015 at 5:18 PM, Carlos Santana >> >> wrote: >> >> > Shaz, >> >> > Got some feedback but so far nothing extreme to block your >> proposal. >> >> > >> >> > The only concerned was my comments around iOS8 and lower and it looks >> >> like CSP is the level of security it will get and that's fine. >> >> > >> >> > +1 to move forward >> >> > >> >> > - Carlos >> >> > @csantanapr >> >> > >> >> >> On Nov 9, 2015, at 8:13 PM, Shazron wrote: >> >> >> >> >> >> Any updates on your end Carlos? Anyone else have any concerns? I'm >> >> >> preparing a PR for review soon. >> >> >> >> >> >>> On Wed, Nov 4, 2015 at 2:42 PM, Carlos Santana < >> csantana23@gmail.com> >> >> wrote: >> >> >>> currently evaluating with some other folks at work, will provide >> >> feedback >> >> >>> soon. >> >> >>> >> >> >>> On Tue, Nov 3, 2015 at 11:07 PM Tommy-Carlos Williams < >> >> tommy@devgeeks.org> >> >> >>> wrote: >> >> >>> >> >> >>>> +1 to letting the OS handle it. >> >> >>>> >> >> >>>>> On 4 Nov 2015, at 12:44, Jesse wrote: >> >> >>>>> >> >> >>>>> I completely support the proposal! >> >> >>>>> >> >> >>>>> >> >> >>>>> @purplecabbage >> >> >>>>> risingj.com >> >> >>>>> >> >> >>>>>> On Tue, Nov 3, 2015 at 5:35 PM, Shazron >> wrote: >> >> >>>>>> >> >> >>>>>> BUMP. This is important, and is causing a lot of pain for our >> users. >> >> >>>>>> For example: >> >> >>>>>> >> >> >>>> >> >> >> https://github.com/jessemonroy650/top-phonegap-mistakes/blob/master/the-whitelist-system.md >> >> >>>>>> >> >> >>>>>> >> >> >>>>>>> On Mon, Nov 2, 2015 at 5:38 PM, Shazron >> wrote: >> >> >>>>>>> To view contents of the PR easily: >> >> >>>>>> >> >> >>>> >> >> >> https://github.com/shazron/cordova-discuss/blob/da7af6606848a1b7d96f4d5ee5402360bf5fd53c/proposals/ios-whitelist-removal.md >> >> >>>>>>> >> >> >>>>>>>> On Mon, Nov 2, 2015 at 5:36 PM, Shazron >> >> wrote: >> >> >>>>>>>> PR sent: https://github.com/cordova/cordova-discuss/pull/27 >> >> >>>>>>>> >> >> >>>>>>>>> On Mon, Nov 2, 2015 at 5:21 PM, Shazron >> >> wrote: >> >> >>>>>>>>> Sorry everyone -- I'm structuring it as a PR and will revert >> my >> >> >>>>>>>>> commits. Will be easier to comment that way >> >> >>>>>>>>> >> >> >>>>>>>>>> On Mon, Nov 2, 2015 at 5:05 PM, Shazron >> >> wrote: >> >> >>>>>> >> >> >>>> >> >> >> https://github.com/cordova/cordova-discuss/blob/master/proposals/ios-whitelist-removal.md >> >> >>>>>>>>>> >> >> >>>>>>>>>> Comment here or there, etc. I've included flowcharts... >> >> >>>>>>>>>> >> >> >>>>>>>>>> tldr; remove the whitelist in cordova-ios-4.x. we are not >> good >> >> at >> >> >>>>>>>>>> security, let the OS handle it. >> >> >>>>>> >> >> >>>>>> >> >> --------------------------------------------------------------------- >> >> >>>>>> To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org >> >> >>>>>> For additional commands, e-mail: dev-help@cordova.apache.org >> >> >>>>>> >> >> >>>>>> >> >> >>>> >> >> >>>> >> --------------------------------------------------------------------- >> >> >>>> To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org >> >> >>>> For additional commands, e-mail: dev-help@cordova.apache.org >> >> >>>> >> >> >>>> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> >> To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org >> >> >> For additional commands, e-mail: dev-help@cordova.apache.org >> >> >> >> >> > >> >> > --------------------------------------------------------------------- >> >> > To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org >> >> > For additional commands, e-mail: dev-help@cordova.apache.org >> >> > >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org >> >> For additional commands, e-mail: dev-help@cordova.apache.org >> >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org >> For additional commands, e-mail: dev-help@cordova.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org