Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0C9FC100D4 for ; Fri, 19 Jul 2013 20:16:54 +0000 (UTC) Received: (qmail 16113 invoked by uid 500); 19 Jul 2013 20:16:54 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 16098 invoked by uid 500); 19 Jul 2013 20:16:54 -0000 Mailing-List: contact issues-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 issues@cordova.apache.org Received: (qmail 16088 invoked by uid 99); 19 Jul 2013 20:16:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jul 2013 20:16:53 +0000 Date: Fri, 19 Jul 2013 20:16:53 +0000 (UTC) From: "Filip Maj (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-3384) Resource Loading API for Android MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-3384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Filip Maj updated CB-3384: -------------------------- Fix Version/s: (was: 3.0.0) 3.1.0 > Resource Loading API for Android > -------------------------------- > > Key: CB-3384 > URL: https://issues.apache.org/jira/browse/CB-3384 > Project: Apache Cordova > Issue Type: Improvement > Components: Android > Reporter: Andrew Grieve > Assignee: Andrew Grieve > Fix For: 3.1.0 > > > Motivations: > 1. Many plugins do not handle URLs correctly when they are in the form content: or file:///android_asset. > 2. For the cordova-app-harness, there needs to be a way to re-route resource load requests so that the harness can load app resources while still respecting the tag. > Short Description > All plugins can watch the loading of any uri's Eg: opening of files, the browser making requests to load files etc etc. > In addition to watching they may assist in loading the uri's. > For example, a use case here is - suppose a mimetype for a hypothetical extension ".abc" doesn't exist, a plugin could check the extension of a loaded uri and set the mimetype. This would now be set for all files loaded in the system. > Pseudo code of the mechanism: > 1. make a request 'R' to a uri. > 2. loop through all plugins to see if any plugins change the request > 3. if the request changes, set 'R' to this modified request and repeat step 3 > 4. load request 'R' and return result -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira