Reviewed by Maciej.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Feb 2007 01:33:23 +0000 (01:33 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Feb 2007 01:33:23 +0000 (01:33 +0000)
        Fix run-pageloadtest to actually work again.

        * Misc/WebNSWindowExtras.m:
        (+[NSWindow _webkit_displayThrottledWindows]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@19318 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/ChangeLog
WebKit/WebView/WebFrame.mm

index 2ed0aee1908cbdde2a7971d3620cb937378fc378..1e4fbeba0e719dfbb51bb4b1a42243a3cc8fe97c 100644 (file)
 
         * ForwardingHeaders/wtf/ListHashSet.h: Added.
 
+2007-01-31  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Anders.
+
+        - related fix for <rdar://problem/4964407> REGRESSION: Mail hangs when replying, forwarding , or creating a new message
+        
+        * WebView/WebFrame.mm:
+        (-[WebFrame loadArchive:]): This method also needs to add the lame WebDataRequest property or other things, like
+        Mail Contents of Page, break.
+
 2007-01-31  Maciej Stachowiak  <mjs@apple.com>
 
         Reviewed by Eric.
index aade982dee0c1bb48351a425b7b05d5dfb68254e..5017b3b10e3850917a1a219254018c9c7ae3a50e 100644 (file)
@@ -777,6 +777,10 @@ static inline WebDataSource *dataSource(DocumentLoader* loader)
     if (mainResource) {
         SubstituteData substituteData(WebCore::SharedBuffer::wrapNSData([mainResource data]), [mainResource MIMEType], [mainResource textEncodingName], KURL());
         ResourceRequest request([mainResource URL]);
+
+        // hack because Mail checks for this property to detect data / archive loads
+        [NSURLProtocol setProperty:@"" forKey:@"WebDataRequest" inRequest:(NSMutableURLRequest *)request.nsURLRequest()];
+
         RefPtr<DocumentLoader> documentLoader = core(self)->loader()->client()->createDocumentLoader(request, substituteData);
 
         [dataSource(documentLoader.get()) _addToUnarchiveState:archive];