haikuwebkit/LayoutTests/plugins/quicktime-plugin-replacemen...

75 lines
2.1 KiB
Plaintext
Raw Permalink Normal View History

Allow the QuickTime plug-in to be replaced by script in an isolated word https://bugs.webkit.org/show_bug.cgi?id=124900 Reviewed by Dean Jackson. Source/WebCore: Test: plugins/quicktime-plugin-replacement.html * CMakeLists.txt: Add new Modules path. * DerivedSources.make: Add new files. * GNUmakefile.am: Add new Modules path. * GNUmakefile.list.am: Add new header. * WebCore.vcxproj/WebCore.vcxproj: Add new header. * WebCore.vcxproj/WebCoreCommon.props: Add new Modules path. * WebCore.xcodeproj/project.pbxproj: Add new files. * Modules/plugins: Added. * Modules/plugins/PluginReplacement.h: Added. Defines the interface for a plug-in replacement. Create a replacement for the QuickTime plug-in. * Modules/plugins/QuickTimePluginReplacement.cpp: Added. * Modules/plugins/QuickTimePluginReplacement.css: Added. * Modules/plugins/QuickTimePluginReplacement.h: Added. * Modules/plugins/QuickTimePluginReplacement.idl: Added. * Modules/plugins/QuickTimePluginReplacement.js: Added. Allow plug-in replacement to be enabled at runtime. * bindings/generic/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::setPluginReplacementEnabled): (WebCore::RuntimeEnabledFeatures::pluginReplacementEnabled): * bindings/js/JSDOMBinding.h: (WebCore::toJS): Add toJS(... const String& ...). * bindings/js/JSPluginElementFunctions.cpp: (WebCore::pluginScriptObject): Give a plug-in replacement a first shot at defining the script interface. * html/HTMLEmbedElement.cpp: (WebCore::HTMLEmbedElement::updateWidget): Call base class requestObject. * html/HTMLMediaElement.cpp: (HTMLMediaElement::fileSize): New, passthrough to media engine. * html/HTMLMediaElement.h: * html/HTMLObjectElement.cpp: (WebCore::HTMLObjectElement::updateWidget): Call base class requestObject. Moved some logic that was previously used only for creating a plug-in snapshot to the base class so it can be shared by a plug-in replacement. * html/HTMLPlugInElement.cpp: (WebCore::HTMLPlugInElement::HTMLPlugInElement): Initialize timer used to swap renderers. (WebCore::HTMLPlugInElement::createRenderer): Allow plug-in replacement to create the renderer. (WebCore::HTMLPlugInElement::swapRendererTimerFired): Create a shadow root. (WebCore::HTMLPlugInElement::setDisplayState): Set the new state, prime the swap renderer timer if necessary. (WebCore::HTMLPlugInElement::didAddUserAgentShadowRoot): Tell the plug-in replacement to install itself in the new shadow DOM. (WebCore::registeredPluginReplacements): Return vector of all registered plug-in replacements. (WebCore::registerPluginReplacement): Add a plug-in replacement. (WebCore::pluginReplacementForType): Find a plug-in replacement for a MIME type. (WebCore::HTMLPlugInElement::requestObject): If there is a plug-in replacement for the MIME type, create it and set the display state. (WebCore::HTMLPlugInElement::scriptObjectForPluginReplacement): Return the script object for the current plug-in replacement, if any. * html/HTMLPlugInElement.h: Move some plug-in snapshot code into the base class. * html/HTMLPlugInImageElement.cpp: (WebCore::HTMLPlugInImageElement::HTMLPlugInImageElement): No need to initialize timer. (WebCore::HTMLPlugInImageElement::setDisplayState): Call base class. (WebCore::HTMLPlugInImageElement::createRenderer): Ditto. (WebCore::HTMLPlugInImageElement::didAddUserAgentShadowRoot): Ditto. (WebCore::HTMLPlugInImageElement::userDidClickSnapshot): Remove unnecessary class name. (WebCore::HTMLPlugInImageElement::requestObject): New. * html/HTMLPlugInImageElement.h: * html/HTMLVideoElement.h: Make createRenderer public so the QuickTime plug-in replacement can call it. * platform/graphics/MediaPlayer.cpp: (WebCore::MediaPlayer::fileSize): New. * platform/graphics/MediaPlayer.h: * platform/graphics/MediaPlayerPrivate.h: * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp: (WebCore::MediaPlayerPrivateAVFoundation::extraMemoryCost): totalBytes returns an unsigned long long. * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h: (WebCore::MediaPlayerPrivateAVFoundation::fileSize): * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp: (WebCore::MediaPlayerPrivateAVFoundationCF::totalBytes): Return an unsigned long long. * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::MediaPlayerPrivateAVFoundationObjC::totalBytes): Ditto. * testing/InternalSettings.cpp: (WebCore::InternalSettings::Backup::Backup): Backup the plug-in replacement runtime setting. (WebCore::InternalSettings::Backup::restoreTo): Restore it. (WebCore::InternalSettings::setPluginReplacementEnabled): Set it. * testing/InternalSettings.h: * testing/InternalSettings.idl: LayoutTests: * platform/efl/TestExpectations: Skip the new test. * platform/gtk/TestExpectations: Ditto. * platform/wincairo/TestExpectations: Ditto. * plugins/quicktime-plugin-replacement.html: Added. * plugins/quicktime-plugin-replacement-expected.txt: Added. * plugins/resources/orange.mov: Replace movie compressed with ancient (and deprecated) animated gif codec with one compressed with H.264 codec. Canonical link: https://commits.webkit.org/143078@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@159827 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-11-28 01:05:35 +00:00
** Test 'qtsrc'. src = yellow.mov qtsrc = orange.mov, qtsrc should load.
Allow the QuickTime plug-in to be replaced by script in an isolated word https://bugs.webkit.org/show_bug.cgi?id=124900 Reviewed by Dean Jackson. Source/WebCore: Test: plugins/quicktime-plugin-replacement.html * CMakeLists.txt: Add new Modules path. * DerivedSources.make: Add new files. * GNUmakefile.am: Add new Modules path. * GNUmakefile.list.am: Add new header. * WebCore.vcxproj/WebCore.vcxproj: Add new header. * WebCore.vcxproj/WebCoreCommon.props: Add new Modules path. * WebCore.xcodeproj/project.pbxproj: Add new files. * Modules/plugins: Added. * Modules/plugins/PluginReplacement.h: Added. Defines the interface for a plug-in replacement. Create a replacement for the QuickTime plug-in. * Modules/plugins/QuickTimePluginReplacement.cpp: Added. * Modules/plugins/QuickTimePluginReplacement.css: Added. * Modules/plugins/QuickTimePluginReplacement.h: Added. * Modules/plugins/QuickTimePluginReplacement.idl: Added. * Modules/plugins/QuickTimePluginReplacement.js: Added. Allow plug-in replacement to be enabled at runtime. * bindings/generic/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::setPluginReplacementEnabled): (WebCore::RuntimeEnabledFeatures::pluginReplacementEnabled): * bindings/js/JSDOMBinding.h: (WebCore::toJS): Add toJS(... const String& ...). * bindings/js/JSPluginElementFunctions.cpp: (WebCore::pluginScriptObject): Give a plug-in replacement a first shot at defining the script interface. * html/HTMLEmbedElement.cpp: (WebCore::HTMLEmbedElement::updateWidget): Call base class requestObject. * html/HTMLMediaElement.cpp: (HTMLMediaElement::fileSize): New, passthrough to media engine. * html/HTMLMediaElement.h: * html/HTMLObjectElement.cpp: (WebCore::HTMLObjectElement::updateWidget): Call base class requestObject. Moved some logic that was previously used only for creating a plug-in snapshot to the base class so it can be shared by a plug-in replacement. * html/HTMLPlugInElement.cpp: (WebCore::HTMLPlugInElement::HTMLPlugInElement): Initialize timer used to swap renderers. (WebCore::HTMLPlugInElement::createRenderer): Allow plug-in replacement to create the renderer. (WebCore::HTMLPlugInElement::swapRendererTimerFired): Create a shadow root. (WebCore::HTMLPlugInElement::setDisplayState): Set the new state, prime the swap renderer timer if necessary. (WebCore::HTMLPlugInElement::didAddUserAgentShadowRoot): Tell the plug-in replacement to install itself in the new shadow DOM. (WebCore::registeredPluginReplacements): Return vector of all registered plug-in replacements. (WebCore::registerPluginReplacement): Add a plug-in replacement. (WebCore::pluginReplacementForType): Find a plug-in replacement for a MIME type. (WebCore::HTMLPlugInElement::requestObject): If there is a plug-in replacement for the MIME type, create it and set the display state. (WebCore::HTMLPlugInElement::scriptObjectForPluginReplacement): Return the script object for the current plug-in replacement, if any. * html/HTMLPlugInElement.h: Move some plug-in snapshot code into the base class. * html/HTMLPlugInImageElement.cpp: (WebCore::HTMLPlugInImageElement::HTMLPlugInImageElement): No need to initialize timer. (WebCore::HTMLPlugInImageElement::setDisplayState): Call base class. (WebCore::HTMLPlugInImageElement::createRenderer): Ditto. (WebCore::HTMLPlugInImageElement::didAddUserAgentShadowRoot): Ditto. (WebCore::HTMLPlugInImageElement::userDidClickSnapshot): Remove unnecessary class name. (WebCore::HTMLPlugInImageElement::requestObject): New. * html/HTMLPlugInImageElement.h: * html/HTMLVideoElement.h: Make createRenderer public so the QuickTime plug-in replacement can call it. * platform/graphics/MediaPlayer.cpp: (WebCore::MediaPlayer::fileSize): New. * platform/graphics/MediaPlayer.h: * platform/graphics/MediaPlayerPrivate.h: * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp: (WebCore::MediaPlayerPrivateAVFoundation::extraMemoryCost): totalBytes returns an unsigned long long. * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h: (WebCore::MediaPlayerPrivateAVFoundation::fileSize): * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp: (WebCore::MediaPlayerPrivateAVFoundationCF::totalBytes): Return an unsigned long long. * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::MediaPlayerPrivateAVFoundationObjC::totalBytes): Ditto. * testing/InternalSettings.cpp: (WebCore::InternalSettings::Backup::Backup): Backup the plug-in replacement runtime setting. (WebCore::InternalSettings::Backup::restoreTo): Restore it. (WebCore::InternalSettings::setPluginReplacementEnabled): Set it. * testing/InternalSettings.h: * testing/InternalSettings.idl: LayoutTests: * platform/efl/TestExpectations: Skip the new test. * platform/gtk/TestExpectations: Ditto. * platform/wincairo/TestExpectations: Ditto. * plugins/quicktime-plugin-replacement.html: Added. * plugins/quicktime-plugin-replacement-expected.txt: Added. * plugins/resources/orange.mov: Replace movie compressed with ancient (and deprecated) animated gif codec with one compressed with H.264 codec. Canonical link: https://commits.webkit.org/143078@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@159827 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-11-28 01:05:35 +00:00
EVENT(qt_begin)
EVENT(qt_validated)
EVENT(qt_canplay)
EVENT(qt_canplaythrough)
** Test to make sure <video> element is in the shadow DOM.
shadowElement = internals.shadowRoot(embed).firstChild
PASS shadowElement.tagName is "VIDEO"
PASS internals.shadowPseudoId(shadowElement) is "-webkit-plugin-replacement"
** Test for the presence of overridden methods.
PASS embed.SetURL is a function.
PASS embed.GetURL is a function.
PASS embed.Play is a function.
PASS embed.Stop is a function.
PASS embed.GetRate is a function.
PASS embed.SetRate is a function.
PASS embed.IsFullScreen is a function.
PASS embed.ExitFullScreen is a function.
PASS embed.GetPluginStatus is a function.
PASS embed.GetTime is a function.
PASS embed.SetTime is a function.
PASS embed.SeekToDate is a function.
PASS embed.GetDate is a function.
PASS embed.GetDuration is a function.
PASS embed.GetTimeScale is a function.
PASS embed.GetMaxTimeLoaded is a function.
PASS embed.GetMaxBytesLoaded is a function.
PASS embed.GetMovieSize is a function.
PASS embed.GetTimedMetadataUpdates is a function.
PASS embed.GetAccessLog is a function.
PASS embed.GetErrorLog is a function.
** Test overridden methods.
PASS embed.GetURL().indexOf('orange.mov') != -1 is true
Allow the QuickTime plug-in to be replaced by script in an isolated word https://bugs.webkit.org/show_bug.cgi?id=124900 Reviewed by Dean Jackson. Source/WebCore: Test: plugins/quicktime-plugin-replacement.html * CMakeLists.txt: Add new Modules path. * DerivedSources.make: Add new files. * GNUmakefile.am: Add new Modules path. * GNUmakefile.list.am: Add new header. * WebCore.vcxproj/WebCore.vcxproj: Add new header. * WebCore.vcxproj/WebCoreCommon.props: Add new Modules path. * WebCore.xcodeproj/project.pbxproj: Add new files. * Modules/plugins: Added. * Modules/plugins/PluginReplacement.h: Added. Defines the interface for a plug-in replacement. Create a replacement for the QuickTime plug-in. * Modules/plugins/QuickTimePluginReplacement.cpp: Added. * Modules/plugins/QuickTimePluginReplacement.css: Added. * Modules/plugins/QuickTimePluginReplacement.h: Added. * Modules/plugins/QuickTimePluginReplacement.idl: Added. * Modules/plugins/QuickTimePluginReplacement.js: Added. Allow plug-in replacement to be enabled at runtime. * bindings/generic/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::setPluginReplacementEnabled): (WebCore::RuntimeEnabledFeatures::pluginReplacementEnabled): * bindings/js/JSDOMBinding.h: (WebCore::toJS): Add toJS(... const String& ...). * bindings/js/JSPluginElementFunctions.cpp: (WebCore::pluginScriptObject): Give a plug-in replacement a first shot at defining the script interface. * html/HTMLEmbedElement.cpp: (WebCore::HTMLEmbedElement::updateWidget): Call base class requestObject. * html/HTMLMediaElement.cpp: (HTMLMediaElement::fileSize): New, passthrough to media engine. * html/HTMLMediaElement.h: * html/HTMLObjectElement.cpp: (WebCore::HTMLObjectElement::updateWidget): Call base class requestObject. Moved some logic that was previously used only for creating a plug-in snapshot to the base class so it can be shared by a plug-in replacement. * html/HTMLPlugInElement.cpp: (WebCore::HTMLPlugInElement::HTMLPlugInElement): Initialize timer used to swap renderers. (WebCore::HTMLPlugInElement::createRenderer): Allow plug-in replacement to create the renderer. (WebCore::HTMLPlugInElement::swapRendererTimerFired): Create a shadow root. (WebCore::HTMLPlugInElement::setDisplayState): Set the new state, prime the swap renderer timer if necessary. (WebCore::HTMLPlugInElement::didAddUserAgentShadowRoot): Tell the plug-in replacement to install itself in the new shadow DOM. (WebCore::registeredPluginReplacements): Return vector of all registered plug-in replacements. (WebCore::registerPluginReplacement): Add a plug-in replacement. (WebCore::pluginReplacementForType): Find a plug-in replacement for a MIME type. (WebCore::HTMLPlugInElement::requestObject): If there is a plug-in replacement for the MIME type, create it and set the display state. (WebCore::HTMLPlugInElement::scriptObjectForPluginReplacement): Return the script object for the current plug-in replacement, if any. * html/HTMLPlugInElement.h: Move some plug-in snapshot code into the base class. * html/HTMLPlugInImageElement.cpp: (WebCore::HTMLPlugInImageElement::HTMLPlugInImageElement): No need to initialize timer. (WebCore::HTMLPlugInImageElement::setDisplayState): Call base class. (WebCore::HTMLPlugInImageElement::createRenderer): Ditto. (WebCore::HTMLPlugInImageElement::didAddUserAgentShadowRoot): Ditto. (WebCore::HTMLPlugInImageElement::userDidClickSnapshot): Remove unnecessary class name. (WebCore::HTMLPlugInImageElement::requestObject): New. * html/HTMLPlugInImageElement.h: * html/HTMLVideoElement.h: Make createRenderer public so the QuickTime plug-in replacement can call it. * platform/graphics/MediaPlayer.cpp: (WebCore::MediaPlayer::fileSize): New. * platform/graphics/MediaPlayer.h: * platform/graphics/MediaPlayerPrivate.h: * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp: (WebCore::MediaPlayerPrivateAVFoundation::extraMemoryCost): totalBytes returns an unsigned long long. * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h: (WebCore::MediaPlayerPrivateAVFoundation::fileSize): * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp: (WebCore::MediaPlayerPrivateAVFoundationCF::totalBytes): Return an unsigned long long. * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::MediaPlayerPrivateAVFoundationObjC::totalBytes): Ditto. * testing/InternalSettings.cpp: (WebCore::InternalSettings::Backup::Backup): Backup the plug-in replacement runtime setting. (WebCore::InternalSettings::Backup::restoreTo): Restore it. (WebCore::InternalSettings::setPluginReplacementEnabled): Set it. * testing/InternalSettings.h: * testing/InternalSettings.idl: LayoutTests: * platform/efl/TestExpectations: Skip the new test. * platform/gtk/TestExpectations: Ditto. * platform/wincairo/TestExpectations: Ditto. * plugins/quicktime-plugin-replacement.html: Added. * plugins/quicktime-plugin-replacement-expected.txt: Added. * plugins/resources/orange.mov: Replace movie compressed with ancient (and deprecated) animated gif codec with one compressed with H.264 codec. Canonical link: https://commits.webkit.org/143078@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@159827 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-11-28 01:05:35 +00:00
PASS embed.GetDuration() is 300000
PASS embed.GetMovieSize() is 24962
PASS embed.GetMaxTimeLoaded() is 300000
PASS embed.GetMaxBytesLoaded() is 24962
PASS embed.GetMovieSize() is 24962
PASS embed.GetPluginStatus() is "Playable"
PASS new Date(embed.GetDate()) - new Date() is within 100 of 0
embed.SetTime(embed.GetTimeScale() * 2)
PASS embed.GetTime() is 60000
embed.Play()
EVENT(qt_play)
PASS embed.GetRate() is 1
embed.Stop()
EVENT(qt_pause)
PASS embed.GetRate() is 0
** SetURL expects a url relative to the original src, not to the document.
embed.SetURL('yellow.mov')
EVENT(qt_begin)
EVENT(qt_validated)
EVENT(qt_canplay)
EVENT(qt_canplaythrough)
PASS embed.GetURL().indexOf('yellow.mov') != -1 is true
** SetURL to an empty string should generate an error.
Allow the QuickTime plug-in to be replaced by script in an isolated word https://bugs.webkit.org/show_bug.cgi?id=124900 Reviewed by Dean Jackson. Source/WebCore: Test: plugins/quicktime-plugin-replacement.html * CMakeLists.txt: Add new Modules path. * DerivedSources.make: Add new files. * GNUmakefile.am: Add new Modules path. * GNUmakefile.list.am: Add new header. * WebCore.vcxproj/WebCore.vcxproj: Add new header. * WebCore.vcxproj/WebCoreCommon.props: Add new Modules path. * WebCore.xcodeproj/project.pbxproj: Add new files. * Modules/plugins: Added. * Modules/plugins/PluginReplacement.h: Added. Defines the interface for a plug-in replacement. Create a replacement for the QuickTime plug-in. * Modules/plugins/QuickTimePluginReplacement.cpp: Added. * Modules/plugins/QuickTimePluginReplacement.css: Added. * Modules/plugins/QuickTimePluginReplacement.h: Added. * Modules/plugins/QuickTimePluginReplacement.idl: Added. * Modules/plugins/QuickTimePluginReplacement.js: Added. Allow plug-in replacement to be enabled at runtime. * bindings/generic/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::setPluginReplacementEnabled): (WebCore::RuntimeEnabledFeatures::pluginReplacementEnabled): * bindings/js/JSDOMBinding.h: (WebCore::toJS): Add toJS(... const String& ...). * bindings/js/JSPluginElementFunctions.cpp: (WebCore::pluginScriptObject): Give a plug-in replacement a first shot at defining the script interface. * html/HTMLEmbedElement.cpp: (WebCore::HTMLEmbedElement::updateWidget): Call base class requestObject. * html/HTMLMediaElement.cpp: (HTMLMediaElement::fileSize): New, passthrough to media engine. * html/HTMLMediaElement.h: * html/HTMLObjectElement.cpp: (WebCore::HTMLObjectElement::updateWidget): Call base class requestObject. Moved some logic that was previously used only for creating a plug-in snapshot to the base class so it can be shared by a plug-in replacement. * html/HTMLPlugInElement.cpp: (WebCore::HTMLPlugInElement::HTMLPlugInElement): Initialize timer used to swap renderers. (WebCore::HTMLPlugInElement::createRenderer): Allow plug-in replacement to create the renderer. (WebCore::HTMLPlugInElement::swapRendererTimerFired): Create a shadow root. (WebCore::HTMLPlugInElement::setDisplayState): Set the new state, prime the swap renderer timer if necessary. (WebCore::HTMLPlugInElement::didAddUserAgentShadowRoot): Tell the plug-in replacement to install itself in the new shadow DOM. (WebCore::registeredPluginReplacements): Return vector of all registered plug-in replacements. (WebCore::registerPluginReplacement): Add a plug-in replacement. (WebCore::pluginReplacementForType): Find a plug-in replacement for a MIME type. (WebCore::HTMLPlugInElement::requestObject): If there is a plug-in replacement for the MIME type, create it and set the display state. (WebCore::HTMLPlugInElement::scriptObjectForPluginReplacement): Return the script object for the current plug-in replacement, if any. * html/HTMLPlugInElement.h: Move some plug-in snapshot code into the base class. * html/HTMLPlugInImageElement.cpp: (WebCore::HTMLPlugInImageElement::HTMLPlugInImageElement): No need to initialize timer. (WebCore::HTMLPlugInImageElement::setDisplayState): Call base class. (WebCore::HTMLPlugInImageElement::createRenderer): Ditto. (WebCore::HTMLPlugInImageElement::didAddUserAgentShadowRoot): Ditto. (WebCore::HTMLPlugInImageElement::userDidClickSnapshot): Remove unnecessary class name. (WebCore::HTMLPlugInImageElement::requestObject): New. * html/HTMLPlugInImageElement.h: * html/HTMLVideoElement.h: Make createRenderer public so the QuickTime plug-in replacement can call it. * platform/graphics/MediaPlayer.cpp: (WebCore::MediaPlayer::fileSize): New. * platform/graphics/MediaPlayer.h: * platform/graphics/MediaPlayerPrivate.h: * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp: (WebCore::MediaPlayerPrivateAVFoundation::extraMemoryCost): totalBytes returns an unsigned long long. * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h: (WebCore::MediaPlayerPrivateAVFoundation::fileSize): * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp: (WebCore::MediaPlayerPrivateAVFoundationCF::totalBytes): Return an unsigned long long. * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::MediaPlayerPrivateAVFoundationObjC::totalBytes): Ditto. * testing/InternalSettings.cpp: (WebCore::InternalSettings::Backup::Backup): Backup the plug-in replacement runtime setting. (WebCore::InternalSettings::Backup::restoreTo): Restore it. (WebCore::InternalSettings::setPluginReplacementEnabled): Set it. * testing/InternalSettings.h: * testing/InternalSettings.idl: LayoutTests: * platform/efl/TestExpectations: Skip the new test. * platform/gtk/TestExpectations: Ditto. * platform/wincairo/TestExpectations: Ditto. * plugins/quicktime-plugin-replacement.html: Added. * plugins/quicktime-plugin-replacement-expected.txt: Added. * plugins/resources/orange.mov: Replace movie compressed with ancient (and deprecated) animated gif codec with one compressed with H.264 codec. Canonical link: https://commits.webkit.org/143078@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@159827 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-11-28 01:05:35 +00:00
embed.SetURL('')
EVENT(qt_begin)
EVENT(qt_error)
PASS embed.GetURL() is ""
PASS embed.GetPluginStatus() is "Error"
END TEST.