Bug 17151 - REGRESSION : "subresources" array has a strange behavior
Summary: REGRESSION : "subresources" array has a strange behavior
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: 528+ (Nightly build)
Hardware: All OS X 10.5
: P1 Minor
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2008-02-02 06:51 PST by Yann
Modified: 2009-04-19 13:29 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yann 2008-02-02 06:51:17 PST
I had a WebKit program, wich implement WebResourceLoad Delegate like this :

- (id)webView:(WebView *)sender identifierForInitialRequest:(NSURLRequest *)request fromDataSource:(WebDataSource *)dataSource
{
        return [request URL];
}

-(void)webView:(WebView *)sender resource:(id)identifier didFinishLoadingFromDataSource:(WebDataSource *)dataSource
{ 
        WebResource *r = [dataSource subresourceForURL:identifier];
        [self doStuff:[r data]]; 
}


Prior to 10.4.11 it worked well.
Now (Safari 3 ?), resources aren't all in [dataSource subresources]. It seems that  resources which doesn't need to be cached are missing.
So it is impossible to get all the downloaded content from a webView.


(Sorry for my bad english).
Comment 1 mitz 2008-02-02 17:00:50 PST
Is this the reason for missing resources in Safari's Activity window?
Comment 2 Yann 2008-02-03 00:40:08 PST
(In reply to comment #1)
> Is this the reason for missing resources in Safari's Activity window?
> 

No, I don't think.
Some resources are in the Safari's Activity Window, but they aren't in the "subresources" array.
Comment 3 Alexey Proskuryakov 2008-06-25 03:25:45 PDT
Would it be possible for you to make an example application for this problem? As is, the bug report is not really actionable.
Comment 4 Yann 2008-06-25 04:39:10 PDT
An exemple application for this problem :
http://ynn.free.fr/MiniBrowser_test.zip

This is a modification of Apple MiniBrowser exemple.
I Added a table which contains a list of files used by the webpage : files which aren't in the subresources array are colored in red.



Others references to this problem :
http://www.nabble.com/Change-in-how-subresources-work--td13921677.html
http://lists.apple.com/archives/Webkitsdk-dev/2007/Jun/msg00069.html
Comment 5 Alexey Proskuryakov 2008-06-25 05:06:42 PDT
<rdar://problem/6033192>
Comment 6 Alexey Proskuryakov 2008-06-25 05:08:14 PDT
I haven't attempted to reproduce this, but I believe that there is enough information to proceed now, confirming the bug.
Comment 7 David Kilzer (:ddkilzer) 2008-11-25 13:47:52 PST
See also Bug 17948 and Bug 22466.

Comment 8 Cameron Zwarich (cpst) 2009-04-19 13:29:25 PDT
This bug still occurs, despite those other two bugs being fixed.