This method tries to get the object from the archivedResources dictionary with a key of (NSURL *)URL, however, objects are put into that dictionary with (NSString *)[URL _web_originalDataAsString]. This prevents the data for applewebdata:// URL's (e.g. for pasted images) to be fetched correctly for WebCore's cache. Patch forthcoming.
Created attachment 9951 [details] patch Patch.
Comment on attachment 9951 [details] patch Clearly correct. Great change. Can we make a test for this?
I forgot to mention the lack of a test when I submitted the patch. I'm not sure how to create a testcase for this... hints?
(In reply to comment #3) > I forgot to mention the lack of a test when I submitted the patch. I'm not sure > how to create a testcase for this... hints? Using the new code that allows you to make Objective-C calls from JavaScript DumpRenderTree tests I imagine you could call this method. Beyond that, I'm not sure of the details.
Committed revision 15878.