Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B19C318436 for ; Wed, 17 Jun 2015 00:36:01 +0000 (UTC) Received: (qmail 18746 invoked by uid 500); 17 Jun 2015 00:36:01 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 18723 invoked by uid 500); 17 Jun 2015 00:36:01 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 18714 invoked by uid 99); 17 Jun 2015 00:36:01 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jun 2015 00:36:01 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6E865E3C48; Wed, 17 Jun 2015 00:36:01 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: steven@apache.org To: commits@cordova.apache.org Message-Id: <934b615b3d624f109f9ecbc7e5078f87@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: cordova-plugin-whitelist git commit: CB-9133 Adds support for CDVFILE. This closes #6 Date: Wed, 17 Jun 2015 00:36:01 +0000 (UTC) Repository: cordova-plugin-whitelist Updated Branches: refs/heads/master 3ce6da7e5 -> 94254c1d2 CB-9133 Adds support for CDVFILE. This closes #6 Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-whitelist/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-whitelist/commit/94254c1d Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-whitelist/tree/94254c1d Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-whitelist/diff/94254c1d Branch: refs/heads/master Commit: 94254c1d2f6e382519b066475e2b0a4df6d67f90 Parents: 3ce6da7 Author: agamemnus Authored: Mon Jun 8 12:14:35 2015 -0400 Committer: Steve Gill Committed: Tue Jun 16 17:35:19 2015 -0700 ---------------------------------------------------------------------- src/android/WhitelistPlugin.java | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-whitelist/blob/94254c1d/src/android/WhitelistPlugin.java ---------------------------------------------------------------------- diff --git a/src/android/WhitelistPlugin.java b/src/android/WhitelistPlugin.java index 4e4f57e..c322b82 100644 --- a/src/android/WhitelistPlugin.java +++ b/src/android/WhitelistPlugin.java @@ -48,6 +48,8 @@ public class WhitelistPlugin extends CordovaPlugin { public WhitelistPlugin(Whitelist allowedNavigations, Whitelist allowedIntents, Whitelist allowedRequests) { if (allowedRequests == null) { allowedRequests = new Whitelist(); + allowedRequests.addWhiteListEntry("content://*", false); + allowedRequests.addWhiteListEntry("cdvfile://*", false); allowedRequests.addWhiteListEntry("file:///*", false); allowedRequests.addWhiteListEntry("data:*", false); } @@ -77,6 +79,9 @@ public class WhitelistPlugin extends CordovaPlugin { if ("*".equals(origin)) { allowedNavigations.addWhiteListEntry("http://*/*", false); allowedNavigations.addWhiteListEntry("https://*/*", false); + allowedNavigations.addWhiteListEntry("content://*", false); + allowedNavigations.addWhiteListEntry("cdvfile://*", false); + allowedNavigations.addWhiteListEntry("file:///*", false); allowedNavigations.addWhiteListEntry("data:*", false); } else { allowedNavigations.addWhiteListEntry(origin, false); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org