cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-3384) Resource Loading API for Android
Date Fri, 28 Jun 2013 01:56:20 GMT

    [ https://issues.apache.org/jira/browse/CB-3384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13695220#comment-13695220
] 

ASF subversion and git services commented on CB-3384:
-----------------------------------------------------

Commit 892ffc8ce45a555b74d1a8a40e4694b8855d753e in branch refs/heads/master from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;h=892ffc8 ]

[CB-3384] Rewrite of DataResource into UriResolver + UriResolvers

Includes unit tests woot!

Note that this remove CordovaPlugin.shouldInterceptRequest(). Should be
fine since this method was introduced only a couple of releases ago, was
never documented, and afaict was only used by the Chrome Cordova plugins.

                
> 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: Braden Shepherdson
>             Fix For: 3.0.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 <content> 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

Mime
View raw message