[haiku-webkit-commits] r582 - webkit/trunk/WebKit/haiku/WebCoreSupport

  • From: noreply@xxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Thu, 2 Jun 2011 07:43:01 +0200 (CEST)

Author: leavengood
Date: Thu Jun  2 07:43:00 2011
New Revision: 582
URL: http://webpositive.haiku-os.org/changeset/582

Log:
Ignore Flash files for now instead of automatically downloading them.

I'm sure there is a better way but this stops this annoyance for now.

Fixes #7319 and probably others.

Modified:
   webkit/trunk/WebKit/haiku/WebCoreSupport/FrameLoaderClientHaiku.cpp

Modified: webkit/trunk/WebKit/haiku/WebCoreSupport/FrameLoaderClientHaiku.cpp
==============================================================================
--- webkit/trunk/WebKit/haiku/WebCoreSupport/FrameLoaderClientHaiku.cpp Thu Jun 
 2 07:02:00 2011        (r581)
+++ webkit/trunk/WebKit/haiku/WebCoreSupport/FrameLoaderClientHaiku.cpp Thu Jun 
 2 07:43:00 2011        (r582)
@@ -491,12 +491,12 @@
     // we need to call directly here
     if (canShowMIMEType(mimetype)) {
         callPolicyFunction(function, PolicyUse);
-    } else if (!request.url().isLocalFile()) {
+    } else if (!request.url().isLocalFile() && mimetype != 
"application/x-shockwave-flash") {
 printf("FrameLoaderClientHaiku::dispatchDecidePolicyForMIMEType(%s) -> 
download\n",
 BString(mimetype).String());
         callPolicyFunction(function, PolicyDownload);
     } else {
-printf("FrameLoaderClientHaiku::dispatchDecidePolicyForMIMEType(%s) -> ignore 
(local URL)\n",
+printf("FrameLoaderClientHaiku::dispatchDecidePolicyForMIMEType(%s) -> ignore 
(local URL or Flash)\n",
 BString(mimetype).String());
         callPolicyFunction(function, PolicyIgnore);
     }

Other related posts:

  • » [haiku-webkit-commits] r582 - webkit/trunk/WebKit/haiku/WebCoreSupport - noreply