Bug 17151
Summary: | REGRESSION : "subresources" array has a strange behavior | ||
---|---|---|---|
Product: | WebKit | Reporter: | Yann <ynn> |
Component: | WebKit API | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Minor | CC: | ap, beidson, ddkilzer, mitz, mrowe, zwarich |
Priority: | P1 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | OS X 10.5 |
Yann
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).
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
mitz
Is this the reason for missing resources in Safari's Activity window?
Yann
(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.
Alexey Proskuryakov
Would it be possible for you to make an example application for this problem? As is, the bug report is not really actionable.
Yann
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
Alexey Proskuryakov
<rdar://problem/6033192>
Alexey Proskuryakov
I haven't attempted to reproduce this, but I believe that there is enough information to proceed now, confirming the bug.
David Kilzer (:ddkilzer)
See also Bug 17948 and Bug 22466.
Cameron Zwarich (cpst)
This bug still occurs, despite those other two bugs being fixed.