[Webkit-unassigned] [Bug 16814] New: Give plugin a chance to handle ActiveX objects

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 10 00:51:19 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=16814

           Summary: Give plugin a chance to handle ActiveX objects
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: PC
               URL: http://adv.jxnews.com.cn/2007/wqlyj/video.html
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Plug-ins
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ruijiang2000 at hotmail.com


The current WebKit converts OBJECT tag with well-known classids (e.g., Windows
Media Player) to corresponding plugin-ins. e.g.: 

<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" width="280"
height="280" id="WMP">
      <param name="Name" value="WMP1" />
      <param name="autoStart" value="1" />
      <param name="defaultFrame" value="false" />
      <param name="URL"
value="http://adv.jxnews.com.cn/2007/wqlyj/videos/video.wmv" />
      <param name="stretchToFit" value="1" />
    </object>

in RenderPartObject.cpp, it will map the class id to service type:
application/x-mplayer2 then try to load the media player plugin to handle it.

However, this may not be always the way users wanted. There has been some
ActiveX plugin which could handle the ActiveX object better. If we just map the
type to application/x-oleobject and let the Activex plugin handle it, we may
have better rendering. e.g., the URL given works well in FireFox with the
npActiveX.dll plugin downloaded from
http://forums.mozine.cn/index.php?showtopic=2350. While it doesn't work in
Safari.

If we could add some #ifdef to turn on/off whether we want to do th mapping,
that would be great.

Another smaller problem I see is, it maps unknown ActiveX class id to type :
application/x-activex-handler. While usually it's application/x-oleobject in
most other places I see. Shall we make it more like others?

I have made some tentative changes and will upload the patch later.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list