2011-05-24 Andy Estes <aestes@apple.com>
authorAndy Estes <aestes@apple.com>
Wed, 25 May 2011 00:48:00 +0000 (00:48 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Wed, 25 May 2011 14:15:48 +0000 (11:15 -0300)
commitf8d4988d5aa8f5d5e3255df77164d6fea6fef787
tree52195223a25e680d055966bfd8ca4985a55bd5b7
parent49b8a1efb3e96cf1d27e99ee8d9438c8fe60b6df
2011-05-24  Andy Estes  <aestes@apple.com>

        Reviewed by Geoffrey Garen.

        REGRESSION (r70748): WebKit cannot play QuickTime movies on Mac OS X Wiki Server pages
        https://bugs.webkit.org/show_bug.cgi?id=61229

        This site-specific hack maintains compatibility with Mac OS X Wiki Server,
        which embeds QuickTime movies using an object tag containing QuickTime's
        ActiveX classid. Treat this classid as valid only if OS X Server's unique
        'generator' meta tag is present. Only apply this quirk if there is no
        fallback content, which ensures the quirk will disable itself if Wiki
        Server is updated to generate an alternate embed tag as fallback content.

        * html/HTMLObjectElement.cpp:
        (WebCore::HTMLObjectElement::shouldAllowQuickTimeClassIdQuirk): Return
        true if site-specific quirks are enabled, the object element has no
        fallback content, the classid attribute matches QuickTime's classid and
        the document has a 'generator' meta tag matching Mac OS X Web Services
        Server's unique generator string.
        (WebCore::HTMLObjectElement::hasValidClassId): Call
        shouldAllowQuickTimeClassIdQuirk()
        * html/HTMLObjectElement.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87244 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLObjectElement.cpp
Source/WebCore/html/HTMLObjectElement.h