Bug 61229

Summary: REGRESSION (r70748): WebKit cannot play QuickTime movies on Mac OS X Wiki Server pages
Product: WebKit Reporter: Andy Estes <aestes>
Component: New BugsAssignee: Andy Estes <aestes>
Status: RESOLVED FIXED    
Severity: Normal CC: ademar, rniwa
Priority: P2 Keywords: InRadar, Regression
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=195607
Bug Depends on: 61329    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch ggaren: review+

Description Andy Estes 2011-05-20 17:19:00 PDT
WebKit cannot play videos created by Podcast Producer.
Comment 1 Andy Estes 2011-05-20 17:20:32 PDT
<rdar://problem/9440255>
Comment 2 Andy Estes 2011-05-20 17:32:56 PDT
Created attachment 94301 [details]
Patch
Comment 3 Darin Adler 2011-05-20 17:50:14 PDT
Comment on attachment 94301 [details]
Patch

It’s unfortunate that we need a rule that is not the same as what’s in HTML5. We should raise this issue with the HTML5 folks.
Comment 4 Andy Estes 2011-05-20 18:07:22 PDT
Committed r87007: <http://trac.webkit.org/changeset/87007>
Comment 5 Ademar Reis 2011-05-23 07:47:43 PDT
Revision r87007 cherry-picked into qtwebkit-2.2 with commit c6d8071 <http://gitorious.org/webkit/qtwebkit/commit/c6d8071>
Comment 6 Andy Estes 2011-05-23 17:46:29 PDT
In the process of drafting an email to whatwg I convinced myself that this is the wrong approach to take. By permitting object elements with classids, we can end up loading content meant for an ActiveX component in a Netscape plug-in in certain circumstances (e.g. the url happens to have a file extension that a Netscape plug-in claims to support). Preventing a plug-in from loading content not meant for it is the rationale behind falling back for non-empty classids (even falling back to nothing). I don't think we should allow this to happen in general just because we happen to know that doing so is safe for this one case.

I think a better approach for this case is to restore QuickTime's classid mapping (perhaps even wrapped with a site-specific hacks runtime guard). It seems safer to specifically permit loading QuickTime in this manner (under the assumption that content loadable in the QuickTime ActiveX component is also loadable in the NPAPI plug-in).
Comment 7 Andy Estes 2011-05-24 16:50:27 PDT
Created attachment 94714 [details]
Patch
Comment 8 Geoffrey Garen 2011-05-24 17:03:12 PDT
Comment on attachment 94714 [details]
Patch

r=me
Comment 9 Jeff Miller 2011-05-24 17:10:37 PDT
Comment on attachment 94714 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=94714&action=review

> Source/WebCore/html/HTMLObjectElement.cpp:250
> +    if (!document()->page()

Is this a problem with Mac OS X Wiki Server, or with Podcast Producer specifically?
Comment 10 Andy Estes 2011-05-24 17:17:36 PDT
(In reply to comment #9)
> (From update of attachment 94714 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=94714&action=review
> 
> > Source/WebCore/html/HTMLObjectElement.cpp:250
> > +    if (!document()->page()
> 
> Is this a problem with Mac OS X Wiki Server, or with Podcast Producer specifically?

It's a problem with any QuickTime movie hosted by Wiki Server.
Comment 11 Andy Estes 2011-05-24 17:48:06 PDT
Committed r87244: <http://trac.webkit.org/changeset/87244>
Comment 12 Ademar Reis 2011-05-25 11:36:57 PDT
Revision r87244 cherry-picked into qtwebkit-2.2 with commit f8d4988 <http://gitorious.org/webkit/qtwebkit/commit/f8d4988>
Comment 13 Ryosuke Niwa 2019-03-11 23:14:39 PDT
I think we can remove this quirk now since OS X Sever shipped with Mountain Lion and later has been emitting video element as fallback.