[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:17:29 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit ee114f404bb77a0a24b60b4fa3f7080f602cabef
Author: darin <darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Sat Dec 28 18:31:55 2002 +0000

            Reviewed by Don.
    
    	- fixed 3136262 -- Shockwave Flash at movies.yahoo.com does not work
    
            * khtml/rendering/render_frames.cpp: (RenderPartObject::updateWidget):
    	Moved the class ID special case MIME types out of the if statement so they can be shared
    	in the case where we have an embed tag but no MIME type.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3190 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index 8017596..4f9b54c 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -2,6 +2,16 @@
 
         Reviewed by Don.
 
+	- fixed 3136262 -- Shockwave Flash at movies.yahoo.com does not work
+
+        * khtml/rendering/render_frames.cpp: (RenderPartObject::updateWidget):
+	Moved the class ID special case MIME types out of the if statement so they can be shared
+	in the case where we have an embed tag but no MIME type.
+
+2002-12-26  Darin Adler  <darin at apple.com>
+
+        Reviewed by Don.
+
         * kwq/KWQAssertions.h: Fixed CRASH macro to use 0xbbadbeef instead of 0xbadbeef
 	to reduce the chance that the address will be valid once we have allocated a lot of memory.
 
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 8017596..4f9b54c 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -2,6 +2,16 @@
 
         Reviewed by Don.
 
+	- fixed 3136262 -- Shockwave Flash at movies.yahoo.com does not work
+
+        * khtml/rendering/render_frames.cpp: (RenderPartObject::updateWidget):
+	Moved the class ID special case MIME types out of the if statement so they can be shared
+	in the case where we have an embed tag but no MIME type.
+
+2002-12-26  Darin Adler  <darin at apple.com>
+
+        Reviewed by Don.
+
         * kwq/KWQAssertions.h: Fixed CRASH macro to use 0xbbadbeef instead of 0xbadbeef
 	to reduce the chance that the address will be valid once we have allocated a lot of memory.
 
diff --git a/WebCore/khtml/rendering/render_frames.cpp b/WebCore/khtml/rendering/render_frames.cpp
index 4f24084..2dd1acb 100644
--- a/WebCore/khtml/rendering/render_frames.cpp
+++ b/WebCore/khtml/rendering/render_frames.cpp
@@ -684,38 +684,43 @@ void RenderPartObject::updateWidget()
       params.append( QString::fromLatin1("__KHTML__CLASSID=\"%1\"").arg( o->classId ) );
       params.append( QString::fromLatin1("__KHTML__CODEBASE=\"%1\"").arg( o->getAttribute(ATTR_CODEBASE).string() ) );
 
-      if ( !embed )
-      {
+      if ( !embed ) {
           url = o->url;
           serviceType = o->serviceType;
-          if(serviceType.isEmpty() || serviceType.isNull()) {
-              if(!o->classId.isEmpty()) {
-                  // We have a clsid, means this is activex (Niko)
-                  serviceType = "application/x-activex-handler";
+      } else {
+          url = embed->url;
+          serviceType = embed->serviceType;
+      }
+      
+      if(serviceType.isEmpty()) {
+          if(!o->classId.isEmpty()) {
+              // We have a clsid, means this is activex (Niko)
+              serviceType = "application/x-activex-handler";
 #ifndef APPLE_CHANGES
-                  url = "dummy"; // Not needed, but KHTMLPart aborts the request if empty
+              url = "dummy"; // Not needed, but KHTMLPart aborts the request if empty
 #endif
-              }
+          }
 
-              if(o->classId.contains(QString::fromLatin1("D27CDB6E-AE6D-11cf-96B8-444553540000"))) {
-                  // It is ActiveX, but the nsplugin system handling
-                  // should also work, that's why we don't override the
-                  // serviceType with application/x-activex-handler
-                  // but let the KTrader in khtmlpart::createPart() detect
-                  // the user's preference: launch with activex viewer or
-                  // with nspluginviewer (Niko)
-                  serviceType = "application/x-shockwave-flash";
-              }
-              else if(o->classId.contains(QString::fromLatin1("CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA")))
-                  serviceType = "audio/x-pn-realaudio-plugin";
-              else if(o->classId.contains(QString::fromLatin1("02BF25D5-8C17-4B23-BC80-D3488ABDDC6B")))
-                  serviceType = "video/quicktime";
-              else if(o->classId.contains(QString::fromLatin1("166B1BCA-3F9C-11CF-8075-444553540000")))
-                  serviceType = "application/x-director";
-              
-              // TODO: add more plugins here
+          if(o->classId.contains(QString::fromLatin1("D27CDB6E-AE6D-11cf-96B8-444553540000"))) {
+              // It is ActiveX, but the nsplugin system handling
+              // should also work, that's why we don't override the
+              // serviceType with application/x-activex-handler
+              // but let the KTrader in khtmlpart::createPart() detect
+              // the user's preference: launch with activex viewer or
+              // with nspluginviewer (Niko)
+              serviceType = "application/x-shockwave-flash";
           }
+          else if(o->classId.contains(QString::fromLatin1("CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA")))
+              serviceType = "audio/x-pn-realaudio-plugin";
+          else if(o->classId.contains(QString::fromLatin1("02BF25D5-8C17-4B23-BC80-D3488ABDDC6B")))
+              serviceType = "video/quicktime";
+          else if(o->classId.contains(QString::fromLatin1("166B1BCA-3F9C-11CF-8075-444553540000")))
+              serviceType = "application/x-director";
+          
+          // TODO: add more plugins here
+      }
 
+      if ( !embed ) {
           if((url.isEmpty() || url.isNull())) {
               // look for a SRC attribute in the params
               NodeImpl *child = o->firstChild();
@@ -746,9 +751,6 @@ void RenderPartObject::updateWidget()
       }
       else {
           // render embed object
-          url = embed->url;
-          serviceType = embed->serviceType;
-
           if ( url.isEmpty() && serviceType.isEmpty() ) {
 #ifdef DEBUG_LAYOUT
               kdDebug() << "RenderPartObject::close - empty url and serverType" << endl;

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list