[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

darin darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 07:10:17 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 63464016c14b6e4ec0dbd46915d311e0a5f413e5
Author: darin <darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Fri Nov 29 02:35:34 2002 +0000

            * Downloads.subproj/WebDownloadHandler.m:
            (-[WebDownloadHandler createFileIfNecessary]): Add a FIXME.
            (-[WebDownloadHandler writeDataForkData:resourceForkData:]): Notify that the file system has
    	changed so the Finder can respond to the size change.
            (-[WebDownloadHandler finishedLoading]): Notify that the file system has changed now that the
    	download has completed and the files are closed (may be redundant now that we have the above,
    	but will do no harm).
    
            * Plugins.subproj/WebBaseNetscapePluginView.m:
            (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
    	Use _web_isCaseInsensitiveEqualToString instead of lowercaseString.
    
            * Misc.subproj/WebNSViewExtras.m: Tweak formatting.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2899 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index caf1a00..33002e3 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,3 +1,19 @@
+2002-11-28  Darin Adler  <darin at apple.com>
+
+        * Downloads.subproj/WebDownloadHandler.m:
+        (-[WebDownloadHandler createFileIfNecessary]): Add a FIXME.
+        (-[WebDownloadHandler writeDataForkData:resourceForkData:]): Notify that the file system has
+	changed so the Finder can respond to the size change.
+        (-[WebDownloadHandler finishedLoading]): Notify that the file system has changed now that the
+	download has completed and the files are closed (may be redundant now that we have the above,
+	but will do no harm).
+
+        * Plugins.subproj/WebBaseNetscapePluginView.m:
+        (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
+	Use _web_isCaseInsensitiveEqualToString instead of lowercaseString.
+
+        * Misc.subproj/WebNSViewExtras.m: Tweak formatting.
+	
 2002-11-27  Richard Williamson   <rjw at apple.com>
 
         Fixed 3113393.  Client side redirects that happen <= 1 second
diff --git a/WebKit/ChangeLog-2002-12-03 b/WebKit/ChangeLog-2002-12-03
index caf1a00..33002e3 100644
--- a/WebKit/ChangeLog-2002-12-03
+++ b/WebKit/ChangeLog-2002-12-03
@@ -1,3 +1,19 @@
+2002-11-28  Darin Adler  <darin at apple.com>
+
+        * Downloads.subproj/WebDownloadHandler.m:
+        (-[WebDownloadHandler createFileIfNecessary]): Add a FIXME.
+        (-[WebDownloadHandler writeDataForkData:resourceForkData:]): Notify that the file system has
+	changed so the Finder can respond to the size change.
+        (-[WebDownloadHandler finishedLoading]): Notify that the file system has changed now that the
+	download has completed and the files are closed (may be redundant now that we have the above,
+	but will do no harm).
+
+        * Plugins.subproj/WebBaseNetscapePluginView.m:
+        (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
+	Use _web_isCaseInsensitiveEqualToString instead of lowercaseString.
+
+        * Misc.subproj/WebNSViewExtras.m: Tweak formatting.
+	
 2002-11-27  Richard Williamson   <rjw at apple.com>
 
         Fixed 3113393.  Client side redirects that happen <= 1 second
diff --git a/WebKit/Downloads.subproj/WebDownload.m b/WebKit/Downloads.subproj/WebDownload.m
index c769e59..bc5181c 100644
--- a/WebKit/Downloads.subproj/WebDownload.m
+++ b/WebKit/Downloads.subproj/WebDownload.m
@@ -172,7 +172,9 @@
     [dataSource _setDownloadPath:path];
 
     NSDictionary *fileAttributes = [lastDecoder fileAttributes];
-    if(!fileAttributes){
+    // FIXME: This assumes that if we get any file attributes, they will include the creation
+    // and modification date, which is not necessarily true.
+    if (!fileAttributes) {
         WebResourceResponse *response = [dataSource response];
         fileAttributes = [NSDictionary dictionaryWithObjectsAndKeys:
             [response createdDate], NSFileCreationDate,
@@ -254,6 +256,8 @@
         return [self errorWithCode:WebErrorCannotWriteToFile];
     }
 
+    [[NSWorkspace sharedWorkspace] noteFileSystemChanged:[dataSource downloadPath]];
+
     return nil;
 }
 
@@ -343,6 +347,8 @@
 
     [self closeFile];
 
+    [[NSWorkspace sharedWorkspace] noteFileSystemChanged:[dataSource downloadPath]];
+
     LOG(Download, "Download complete. Saved to: %@", [dataSource downloadPath]);
 
     return nil;
diff --git a/WebKit/Downloads.subproj/WebDownloadHandler.m b/WebKit/Downloads.subproj/WebDownloadHandler.m
index c769e59..bc5181c 100644
--- a/WebKit/Downloads.subproj/WebDownloadHandler.m
+++ b/WebKit/Downloads.subproj/WebDownloadHandler.m
@@ -172,7 +172,9 @@
     [dataSource _setDownloadPath:path];
 
     NSDictionary *fileAttributes = [lastDecoder fileAttributes];
-    if(!fileAttributes){
+    // FIXME: This assumes that if we get any file attributes, they will include the creation
+    // and modification date, which is not necessarily true.
+    if (!fileAttributes) {
         WebResourceResponse *response = [dataSource response];
         fileAttributes = [NSDictionary dictionaryWithObjectsAndKeys:
             [response createdDate], NSFileCreationDate,
@@ -254,6 +256,8 @@
         return [self errorWithCode:WebErrorCannotWriteToFile];
     }
 
+    [[NSWorkspace sharedWorkspace] noteFileSystemChanged:[dataSource downloadPath]];
+
     return nil;
 }
 
@@ -343,6 +347,8 @@
 
     [self closeFile];
 
+    [[NSWorkspace sharedWorkspace] noteFileSystemChanged:[dataSource downloadPath]];
+
     LOG(Download, "Download complete. Saved to: %@", [dataSource downloadPath]);
 
     return nil;
diff --git a/WebKit/Misc.subproj/WebNSViewExtras.m b/WebKit/Misc.subproj/WebNSViewExtras.m
index f4dd745..850ce97 100644
--- a/WebKit/Misc.subproj/WebNSViewExtras.m
+++ b/WebKit/Misc.subproj/WebNSViewExtras.m
@@ -98,13 +98,13 @@
     // we need to push some of the events back on.  It makes sense to put the first and last
     // drag events and the mouse up if there was one.
     if (mouseUp != nil) {
-        [NSApp postEvent: mouseUp atStart: YES];
+        [NSApp postEvent:mouseUp atStart:YES];
     }
     if (dragEvent != nil) {
-        [NSApp postEvent: dragEvent atStart: YES];
+        [NSApp postEvent:dragEvent atStart:YES];
     }
     if (firstEvent != mouseUp && firstEvent != dragEvent) {
-        [NSApp postEvent: firstEvent atStart: YES];
+        [NSApp postEvent:firstEvent atStart:YES];
     }
 
     return dragIt;
diff --git a/WebKit/Plugins.subproj/WebBaseNetscapePluginView.m b/WebKit/Plugins.subproj/WebBaseNetscapePluginView.m
index 20f20f6..beddaf2 100644
--- a/WebKit/Plugins.subproj/WebBaseNetscapePluginView.m
+++ b/WebKit/Plugins.subproj/WebBaseNetscapePluginView.m
@@ -831,7 +831,7 @@
             return NPERR_INVALID_URL;
         }
     } else {
-        if([[[URL scheme] lowercaseString] isEqualToString:@"javascript"]){
+        if([[URL scheme] _web_isCaseInsensitiveEqualToString:@"javascript"]){
             NSString *JSString = [(id)CFURLCreateStringByReplacingPercentEscapes(NULL, (CFStringRef)[[URL absoluteString] substringFromIndex:11], (CFStringRef)@"") autorelease];
             [[self controller] stringByEvaluatingJavaScriptFromString:JSString];
             if(notifyData){

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list